Skip to content

Commit 4efecfc

Browse files
committed
Add test for non-periodic planar-hex meshes
1 parent bde3e5d commit 4efecfc

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

conda_package/mpas_tools/planar_hex.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,11 @@ def main():
444444
help='Cells in y direction')
445445
parser.add_argument('--dc', dest='dc', type=float, required=True,
446446
help='Distance between cell centers in meters')
447-
parser.add_argument('--npx', '--nonperiodic_x', action="store_true",
447+
parser.add_argument('--npx', '--nonperiodic_x', dest='nonperiodic_x',
448+
action="store_true",
448449
help='non-periodic in x direction')
449-
parser.add_argument('--npy', '--nonperiodic_y', action="store_true",
450+
parser.add_argument('--npy', '--nonperiodic_y', dest='nonperiodic_y',
451+
action="store_true",
450452
help='non-periodic in y direction')
451453
parser.add_argument('-o', '--outFileName', dest='outFileName', type=str,
452454
required=False, default='grid.nc',

conda_package/recipe/meta.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ test:
5252
- MpasMeshConverter.x mesh_tools/mesh_conversion_tools/test/mesh.QU.1920km.151026.nc mesh.nc
5353
- MpasCellCuller.x mesh.nc culled_mesh.nc -m mesh_tools/mesh_conversion_tools/test/land_mask_final.nc
5454
- MpasMaskCreator.x mesh.nc arctic_mask.nc -f mesh_tools/mesh_conversion_tools/test/Arctic_Ocean.geojson
55+
- planar_hex --nx=30 --ny=20 --dc=1000. --npx --npy --outFileName='nonperiodic_mesh_30x20_1km.nc'
56+
- MpasCellCuller.x nonperiodic_mesh_30x20_1km.nc culled_nonperiodic_mesh_30x20_1km.nc
5557
- python -m pytest conda_package/mpas_tools/tests
5658
- mark_horns_for_culling.py --help
5759
- create_landice_grid_from_generic_MPAS_grid.py --help

0 commit comments

Comments
 (0)