Skip to content

Commit

Permalink
Add ARM10to60 mesh
Browse files Browse the repository at this point in the history
The mesh resolution has been ported from legacy COMPASS.
  • Loading branch information
xylar committed Jun 24, 2022
1 parent e3056b8 commit a42b390
Show file tree
Hide file tree
Showing 10 changed files with 780 additions and 2 deletions.
25 changes: 25 additions & 0 deletions compass/ocean/tests/global_ocean/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
QU240DynamicAdjustment
from compass.ocean.tests.global_ocean.mesh.ec30to60.dynamic_adjustment import \
EC30to60DynamicAdjustment
from compass.ocean.tests.global_ocean.mesh.arm10to60.dynamic_adjustment \
import ARM10to60DynamicAdjustment
from compass.ocean.tests.global_ocean.mesh.so12to60.dynamic_adjustment import \
SO12to60DynamicAdjustment
from compass.ocean.tests.global_ocean.mesh.wc14.dynamic_adjustment import \
Expand Down Expand Up @@ -149,6 +151,29 @@ def __init__(self, mpas_core):
test_group=self, mesh=mesh, init=init,
dynamic_adjustment=dynamic_adjustment))

# ARM10to60: just the version without cavities
for mesh_name in ['ARM10to60']:
mesh = Mesh(test_group=self, mesh_name=mesh_name)
self.add_test_case(mesh)

init = Init(test_group=self, mesh=mesh,
initial_condition='PHC',
with_bgc=False)
self.add_test_case(init)
time_integrator = 'split_explicit'
self.add_test_case(
PerformanceTest(
test_group=self, mesh=mesh, init=init,
time_integrator=time_integrator))
dynamic_adjustment = ARM10to60DynamicAdjustment(
test_group=self, mesh=mesh, init=init,
time_integrator=time_integrator)
self.add_test_case(dynamic_adjustment)
self.add_test_case(
FilesForE3SM(
test_group=self, mesh=mesh, init=init,
dynamic_adjustment=dynamic_adjustment))

# SOwISC12to60: just the version with cavities for now
for mesh_name in ['SOwISC12to60']:
mesh = Mesh(test_group=self, mesh_name=mesh_name)
Expand Down
8 changes: 6 additions & 2 deletions compass/ocean/tests/global_ocean/mesh/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from compass.testcase import TestCase
from compass.ocean.tests.global_ocean.mesh.qu240 import QU240Mesh
from compass.ocean.tests.global_ocean.mesh.ec30to60 import EC30to60Mesh
from compass.ocean.tests.global_ocean.mesh.arm10to60 import ARM10to60Mesh
from compass.ocean.tests.global_ocean.mesh.so12to60 import SO12to60Mesh
from compass.ocean.tests.global_ocean.mesh.wc14 import WC14Mesh
from compass.ocean.tests.global_ocean.configure import configure_global_ocean
Expand Down Expand Up @@ -32,7 +33,7 @@ def __init__(self, test_group, mesh_name):
The name of the mesh
"""
name = 'mesh'
subdir = '{}/{}'.format(mesh_name, name)
subdir = f'{mesh_name}/{name}'
super().__init__(test_group=test_group, name=name, subdir=subdir)
if mesh_name in 'QU240':
self.mesh_step = QU240Mesh(self, mesh_name,
Expand All @@ -46,14 +47,17 @@ def __init__(self, test_group, mesh_name):
elif mesh_name in 'ECwISC30to60':
self.mesh_step = EC30to60Mesh(self, mesh_name,
with_ice_shelf_cavities=True)
elif mesh_name in 'ARM10to60':
self.mesh_step = ARM10to60Mesh(self, mesh_name,
with_ice_shelf_cavities=False)
elif mesh_name in 'SOwISC12to60':
self.mesh_step = SO12to60Mesh(self, mesh_name,
with_ice_shelf_cavities=True)
elif mesh_name in 'WC14':
self.mesh_step = WC14Mesh(self, mesh_name,
with_ice_shelf_cavities=False)
else:
raise ValueError('Unknown mesh name {}'.format(mesh_name))
raise ValueError(f'Unknown mesh name {mesh_name}')

self.add_step(self.mesh_step)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"name": "Americas land mask",
"component": "ocean",
"object": "region",
"author": "Mark Petersen"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-38.67187499999999,
-55.578344672182055
],
[
-24.960937499999996,
-55.578344672182055
],
[
-34.453125,
53.12040528310657
],
[
-59.765625,
53.12040528310657
],
[
-131.8359375,
49.15296965617042
],
[
-132.1875,
-56.55948248376223
],
[
-38.67187499999999,
-55.578344672182055
]
]
]
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"name": "Atlantic region",
"component": "ocean",
"object": "region",
"author": "Mark Petersen"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-68.203125,
-78.1344931829381
],
[
26.015625,
-77.8418477505252
],
[
23.5546875,
-26.431228064506424
],
[
21.4453125,
26.745610382199022
],
[
34.80468749999999,
30.14512718337613
],
[
40.078125,
33.7243396617476
],
[
37.6171875,
39.36827914916014
],
[
28.4765625,
40.17887331434696
],
[
25.3125,
43.58039085560784
],
[
28.828124999999996,
54.77534585936447
],
[
41.8359375,
64.01449619484472
],
[
65.7421875,
76.434603583513
],
[
67.8515625,
84.95930495623836
],
[
-70.3125,
84.89714695160268
],
[
-126.21093749999999,
75.05035357407698
],
[
-112.5,
60.58696734225869
],
[
-104.4140625,
51.39920565355378
],
[
-101.953125,
29.38217507514529
],
[
-97.734375,
18.145851771694467
],
[
-93.515625,
16.97274101999902
],
[
-88.24218749999999,
14.604847155053898
],
[
-85.25390625,
11.695272733029402
],
[
-82.6171875,
9.44906182688142
],
[
-80.5078125,
8.407168163601076
],
[
-79.1015625,
8.928487062665504
],
[
-76.9921875,
7.536764322084078
],
[
-62.22656249999999,
-2.108898659243126
],
[
-70.6640625,
-52.696361078274464
],
[
-64.3359375,
-67.60922060496382
],
[
-68.203125,
-78.1344931829381
]
]
]
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"name": "Europe Africa land mask",
"component": "ocean",
"object": "region",
"author": "Mark Petersen"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
15.1171875,
58.07787626787517
],
[
8.4375,
49.61070993807422
],
[
0.703125,
43.068887774169625
],
[
-5.2734375,
39.095962936305476
],
[
-3.1640625,
20.96143961409684
],
[
2.109375,
-33.43144133557529
],
[
55.54687499999999,
-31.653381399663985
],
[
53.0859375,
60.58696734225869
],
[
33.046875,
63.704722429433225
],
[
24.2578125,
68.00757101804004
],
[
17.2265625,
65.07213008560697
],
[
15.1171875,
58.07787626787517
]
]
]
}
}
]
}
Loading

0 comments on commit a42b390

Please sign in to comment.