E3SM-Project / polaris

Testing and analysis for OMEGA, MPAS-Ocean, MALI and MPAS-Seaice
BSD 3-Clause "New" or "Revised" License
6 stars 13 forks source link

Adjust ny for baroclinic channel to give 500 km domain #37

Closed xylar closed 1 year ago

xylar commented 1 year ago

This is a port of https://github.com/MPAS-Dev/compass/pull/605

The following description is copied from there.

This PR adjusts the number of cells used in meshes for the baroclinic channel test case to ensure the 'standard' 160x500km domain is defined. Previously, the channel has had a shorter y-length of sqrt(3)/2 * 500 => 433km.

The channel is a standard community test case, and use of the 160x500km domain enables model intercomparison, e.g.:

Checklist

xylar commented 1 year ago

Actually, it looks like only the spherical meshes are described in developers_guide/framework/mesh so we should probably add a new planar mesh section, here or in a separate PR.

I think that should be a separate PR. At the moment developers_guide/framework/mesh describes what's literally in the framework (polaris.mesh) but I think it would be okay to expand it to cover functions from mpas_tools like make_planar_hex_mesh that could typically be used in test cases, and what the proper usage is (including this issue).

xylar commented 1 year ago

Hmm, thinking about it some more, I think it belongs in a "Mesh" section in "Organization".

xylar commented 1 year ago

Testing

I successfully ran all baroclinic_channel test cases on Chrysalis with this branch. The results can be found at:

/lcrc/group/e3sm/ac.xylar/polaris_0.1/chrysalis/test_20230415/bcn_chan_fix_ny
xylar commented 1 year ago

@dengwirda, could you have a look at the code change here and see if you agree that they are equivalent to https://github.com/MPAS-Dev/compass/pull/605?

I verified that I get exactly the same values for ny as you have prescribed in compass for the 3 standard resolutions.

xylar commented 1 year ago

Thanks @alicebarthel! I'll fix that here.

xylar commented 1 year ago

Thanks @alicebarthel, @dengwirda and @cbegeman!

I'll merge in just a moment when CI finishes.

xylar commented 1 year ago

Retroactive testing (bad form!)

I changed the resolution to 0.1 for the test cases that are currently at 10 km. Then, I did polaris list and go:

   0: ocean/baroclinic_channel/100m/default
   1: ocean/baroclinic_channel/100m/decomp_test
   2: ocean/baroclinic_channel/100m/restart_test
   3: ocean/baroclinic_channel/100m/threads_test

as expected.