Skip to content

add call to remove land locked cells - #49

Merged
mark-petersen merged 5 commits into
MPAS-Dev:ocean/developfrom
mark-petersen:ocean/remove_landlocked_cells_script
Jun 10, 2018
Merged

mark-petersen merged 5 commits into
MPAS-Dev:ocean/developfrom
mark-petersen:ocean/remove_landlocked_cells_script

Conversation

@mark-petersen

Copy link
Copy Markdown
Contributor

This is needed to create a V3 mesh with COMPASS. It has a matching PR in MPAS-Tools.

@mark-petersen

Copy link
Copy Markdown
Contributor Author

See MPAS-Dev/MPAS-Tools#220 for matching PR.

@mark-petersen
mark-petersen force-pushed the ocean/remove_landlocked_cells_script branch from 274400d to e168103 Compare May 29, 2018 20:12

@xylar xylar left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I do a grep on init_step.py, I see 25 test cases that use this script. But If I grep for ocean/coastline_alteration/add_land_locked_cells_to_mask.py, it only gets linked into 18 test cases. As a result, I'm getting errors in any test cases without the links, including several in the nightly regression test suite.

mesh_database = FULL_PATH_TO_LOCAL_MESH_DATABASE
initial_condition_database = FULL_PATH_TO_LOCAL_INITIAL_CONDITION_DATABASE
geometric_features = FULL_PATH_TO_LOCAL_CHECKOUT_OF_GEOMETRIC_FEATURES_DATABASE
mpas_tools = FULL_PATH_TO_MPAS_TOOLS_REPO

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mark-petersen, would it make sense to use this path for the various mesh conversion tools, too? Or do you think it makes sense to have separate links still like above? I'd lean toward making them use this new path.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could also postpone this for another time.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about that too. It depends on whether people use different executables for gnu/intel debug/optimized for testing.

Regardless, we are reorganizing the directories in MPAS-Tools, I'd like to save that for a PR after the reorg.

@xylar

xylar commented May 30, 2018

Copy link
Copy Markdown
Collaborator

Thanks for the updated version. I'm retesting now.

@xylar xylar left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, tests seem to be passing just fine now. I'd suggest running the full regression test suite before merging, but this looks good to me.

@xylar

xylar commented May 31, 2018

Copy link
Copy Markdown
Collaborator

@mark-petersen, for the sake of documentation, could you describe your last 2 commits? Namely, are critical passages widened for the v3 meshes we're already using? Or would this be something you suggest we do going forward?

@mark-petersen

Copy link
Copy Markdown
Contributor Author

Good point. So far on this PR I am able to confirm I can reproduce the correct "V3" number of grid cells for:

  • EC60to30 235160 requires critical passages
  • EC60to30wLI 236358 requires critical passages
  • RRS30to10 1445361 requires critical passages

So RRS30to10 requires --with_critical_passages otherwise the Baltic Sea disappears. I'm building the RRS30to10wLI right now, with and without critical passages, to confirm which is correct compared to the the current uploaded file.

@xylar

xylar commented May 31, 2018

Copy link
Copy Markdown
Collaborator

Great, I think this PR is really important for provenance.

@mark-petersen

Copy link
Copy Markdown
Contributor Author

Also confirmed this matches uploaded grid:

  • RRS30to10wLI 1460217 requires critical passages

For long init runs like RRS18to6, it's important to have input and
output files, rather than overwriting, because the process will often
get killed halfway through.
Also, change max number sweeps to 20 for RRS18to6.
@mark-petersen
mark-petersen merged commit 81c1b4f into MPAS-Dev:ocean/develop Jun 10, 2018
@mark-petersen
mark-petersen deleted the ocean/remove_landlocked_cells_script branch June 10, 2018 23:16
mark-petersen added a commit that referenced this pull request Jun 11, 2018
This is needed to create a V3 mesh with COMPASS. It has a matching PR in
MPAS-Tools.

NON-BFB MATCH for ocean nightly regression suite for global (QU240) cases when
tested against previous commit.  The QU240 will have a different number of
cells.

In order for new scripts to work, this version of MPAS-Model must be run with
this commit of MPAS-Tools or later:
f825edf Merge PR #220 'ocean/remove_landlocked_cells' into master
ashwathsv pushed a commit to ashwathsv/MPAS-Model that referenced this pull request Jul 21, 2020
…n/develop

This is needed to create a V3 mesh with COMPASS. It has a matching PR in
MPAS-Tools.

NON-BFB MATCH for ocean nightly regression suite for global (QU240) cases when
tested against previous commit.  The QU240 will have a different number of
cells.

In order for new scripts to work, this version of MPAS-Model must be run with
this commit of MPAS-Tools or later:
f825edf Merge PR MPAS-Dev#220 'ocean/remove_landlocked_cells' into master
caozd999 pushed a commit to caozd999/MPAS-Model that referenced this pull request Apr 28, 2021
barlage pushed a commit to barlage/MPAS-Model that referenced this pull request Sep 27, 2024
* In core_atmosphere added config_gvf_update logical parameter. If true,
then green vegetation fraction is updated from climatology, when false - the GVF value
from *init.nc is used for the length of the forecast.

* Set default value of config_gvf_update to true in Registry.xml.

* Pass config_gvf_update into physics/mpas_atmphys_update_surface.F so
that if config_gvf_update=false, the VEGFRA is not overwritten by the
climatology.

* Added security check in mpas_atmphys_initialize_real.F for the situation when nvegopt=2, but there is no
green vegetation fraction in the RAP/RRFS grib output.

* Nvegopt is not needed in mpas_init_atm_cases.F and removed.

* Removed nvegopt from subroutines in physics/mpas_atmphys_initialize_real.F where it is not used.

* In physics/mpas_atmphys_manager.F create a joint alarm for alvedo and
GVF, although it is not needed for GVF.

* modified:   core_atmosphere/physics/mpas_atmphys_initialize_real.F
modified:   core_init_atmosphere/mpas_init_atm_cases.F
Returned nveg_opt which I erroneously deleted.

* In mpas_init_atm_cases.F, a fix for the idealized case (courtesy Anders
Jensen): shdmin and shdmax are in the first guess entity now, not in
mesh.

* In mpas_atmphys_manager.F restored original spacing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants