Skip to content

Bathymetry from JIGSAW being used in base_mesh.nc #176

@xylar

Description

@xylar

In COMPASS global_ocean test cases there is a step in build_mesh.py:
https://github.com/MPAS-Dev/MPAS-Model/blob/ocean/develop/testing_and_setup/compass/ocean/jigsaw_to_MPAS/build_mesh.py#L60-L64
where we "inject" the bathymetry from a topography file into the mesh. This topography appears to come from JIGSAW:
https://github.com/MPAS-Dev/MPAS-Model/blob/ocean/develop/testing_and_setup/compass/ocean/global_ocean/config_files/config_base_mesh.xml#L15
so it's not clear to me why this is a topography we would trust or want to be using.

The critical bug is that not only do we use it to set a variable called bathymetry (never used again as far as I can tell), but we also set cullCell based on where this is above 20. (How was this threshold chosen?!)

This cullCell field propagates to the cull_mesh stage and is treated as the starting land mask onto which other land masks are added ("maxed" as it were). I had to dig into the cell-culler code to reming myself that this was another possible source of land masking.

Anyway, long story short, the solution is to skip the inject_bathymetry.py stage of build_mesh.py. I don't see any reason to do this stage and am curious how this crept into the workflow.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions