-
Notifications
You must be signed in to change notification settings - Fork 68
Add meshDensity
in mesh conversion if not already present
#583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
TestingI was able to convert an MPAS mesh from JIGSAW without
to a full MPAS mesh:
Without this fix, an error was thrown about
|
It would be helpful to provide a link to the documentation explaining why meshDensity is necessary and how it can be generated. |
I don't believe |
Here is the definition of meshDensity: MPAS-Tools/conda_package/mpas_tools/ocean/inject_meshDensity.py Lines 54 to 59 in 2a46cbe
|
@changliao1025 discovered that the new
MpasMeshConverter.x
(the one with NetCDF-C support) doesn't correctly handle the case wheremeshDensity
is not passed in. In the older version of the tool,meshDensity
was set to all ones if it isn't present, and I have added that here.