-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create docs, generalize cfg file values
- Loading branch information
1 parent
9a635f6
commit 499f9b4
Showing
6 changed files
with
132 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,5 +21,6 @@ Test groups | |
ismip6_run | ||
kangerlussuaq | ||
koge_bugt_s | ||
mesh_modifications | ||
mismipplus | ||
thwaites |
48 changes: 48 additions & 0 deletions
48
docs/developers_guide/landice/test_groups/mesh_modifications.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
.. _mesh_modifications: | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
mesh_modifications | ||
================== | ||
|
||
The ``mesh_modifications`` test group includes test cases for modifying | ||
existing meshes. | ||
(see :ref:`mesh_modifications`). | ||
|
||
It currently contains one test case for extracting a subdomain from an | ||
existing larger domain. | ||
|
||
framework | ||
--------- | ||
|
||
There is no shared framework for this test group. | ||
|
||
subdomain_extractor | ||
------------------- | ||
|
||
The class :py:class:`compass.landice.tests.mesh_modifications.subdomain_extractor.SubdomainExtractor` | ||
extracts a subdomain from a larger domain. It simply calls the class | ||
:py:class:`compass.landice.tests.mesh_modifications.subdomain_extractor.extract_region.ExtractRegion`. | ||
|
||
extract_region | ||
-------------- | ||
|
||
The :py:class:`compass.landice.tests.mesh_modifications.subdomain_extractor.extract_region.ExtractRegion` | ||
class performs the operations to extract a region subdomain from a larger | ||
domain. Using user-supplied config information, it performs the following | ||
steps: | ||
|
||
* create a cull mask | ||
|
||
* optionally extend culling mask a certain number of cells into the ocean | ||
along the ice-shelf front | ||
|
||
* cull mesh, convert mesh, mark horns for culling, cull again | ||
|
||
* create a landice mesh from base MPAS mesh | ||
|
||
* set lat/lon fields in mesh based on specified projection | ||
|
||
* interpolate data fields from source mesh to subdomain mesh | ||
|
||
* mark domain boundary cells as Dirichlet velocity conditions | ||
|
||
* create a graph file for the subdomain mesh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
docs/users_guide/landice/test_groups/mesh_modifications.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
.. _mesh_modifications: | ||
|
||
mesh_modifications | ||
================== | ||
|
||
The ``mesh_modifications`` test group includes test cases for modifying | ||
existing meshes. | ||
|
||
It currently contains one test case for extracting a subdomain from an | ||
existing larger domain. | ||
|
||
subdomain_extractor | ||
------------------- | ||
|
||
``landice/mesh_modifications/subdomain_extractor`` extracts a subdomain from a | ||
larger domain. The extraction is defined by a specified region in a | ||
regionCellMask file. In the future, this test could be extended to optionally | ||
use a GeoJSON file for defining the culling mask instead. | ||
The user should modify the default config for their application. | ||
|
||
In the future, the ability to apply the extractor to forcing files as well may | ||
be added. | ||
|
||
config options | ||
~~~~~~~~~~~~~~ | ||
|
||
The ``subdomain_extractor`` test case uses the following default config | ||
options. They should be adjusted by the user before setting up and running | ||
the test case. | ||
|
||
.. code-block:: cfg | ||
[subdomain] | ||
# path to file from which to extract subdomain | ||
source_file = TO BE SUPPLIED BY USER | ||
# path to region mask file for source_file | ||
region_mask_file = TO BE SUPPLIED BY USER | ||
# region number to extract | ||
region_number = 1 | ||
# filename for the subdomain to be generated | ||
dest_file_name = subdomain.nc | ||
# mesh projection to be used for setting lat/lon values | ||
# Should match the projection used in the source_file | ||
# Likely one of 'ais-bedmap2' or 'gis-gimp' | ||
mesh_projection = ais-bedmap2 | ||
# whether to extend mesh into the open ocean along the ice-shelf margin | ||
# This is necessary if the region mask ends right along the ice-shelf edge, | ||
# or if the ice-shelf is covered by two regions. | ||
# It is recommended to try extracting a subdomain with this False, and if the | ||
# ocean buffer is inadequate, trying again with this True. | ||
extend_ocean_buffer = False | ||
# number of iterations to grow open ocean buffer along ice-shelf margin | ||
# Only used if extend_ocean_buffer is True | ||
# Should be equal to approximately the number of ocean buffer cells in the | ||
# source_file | ||
grow_iters = 15 |
@matthewhoffman, this should have been named
dev_mesh_modifications
. It has the same name as the section in the user's guide, which is producing warnings when building the documentation. Could you open a small PR to fix this when you have time?