Skip to content

Commit bcd1660

Browse files
authored
Merge pull request #384 from xylar/fix-omega-manufatured-solution
Fix `omega_pr` test suite
2 parents f0a67a5 + 72b1fc0 commit bcd1660

File tree

9 files changed

+56
-19
lines changed

9 files changed

+56
-19
lines changed

docs/developers_guide/quick_start.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,13 @@ Otherwise, to build Omega,
493493
source ./load_<env_name>_<machine>_<compiler>_<mpi>.sh
494494
git submodule update --init e3sm_submodules/Omega
495495
cd e3sm_submodules/Omega
496-
git submodule update --init --recursive externals/YAKL externals/ekat \
497-
externals/scorpio cime
496+
git submodule update --init --recursive \
497+
externals/YAKL \
498+
externals/ekat \
499+
externals/scorpio \
500+
externals/cpptrace \
501+
components/omega/external \
502+
cime
498503
cd components/omega
499504
mkdir build
500505
cd build

e3sm_submodules/Omega

Submodule Omega updated 1130 files

polaris/ocean/model/mpaso_to_omega.yaml

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,26 @@ dimensions:
33
nCells: NCells
44
nEdges: NEdges
55
nVertices: NVertices
6+
nTracers: NTracers
67
maxEdges: MaxEdges
78
maxEdges2: MaxEdges2
89
TWO: MaxCellsOnEdge
910
vertexDegree: VertexDegree
10-
nVertLevels: NVertLevels
11-
nVertLevelsP1: NVertLevelsP1
11+
# Don't map nVertLevels yet -- needs Omega fix
12+
# nVertLevels: NVertLayers
13+
# nVertLevelsP1: NVertLayersP1
1214

1315
variables:
16+
# mesh
17+
cellsOnCell: CellsOnCell
18+
edgesOnCell: EdgesOnCell
19+
verticesOnCell: VerticesOnCell
20+
cellsOnEdge: CellsOnEdge
21+
edgesOnEdge: EdgesOnEdge
22+
verticesOnEdge: VerticesOnEdge
23+
cellsOnVertex: CellsOnVertex
24+
edgesOnVertex: EdgesOnVertex
25+
1426
# tracers
1527
temperature: Temperature
1628
salinity: Salinity
@@ -23,7 +35,10 @@ variables:
2335
normalVelocity: NormalVelocity
2436

2537
# auxiliary state
26-
ssh: SshCellDefault
38+
ssh: SshCell
39+
windStressZonal: WindStressZonal
40+
windStressMeridional: WindStressMeridional
41+
relativeVorticity: RelVortVertex
2742

2843
config:
2944
- section:
@@ -67,6 +82,21 @@ config:
6782
config_use_mom_del4: VelHyperDiffTendencyEnable
6883
config_mom_del4: ViscDel4
6984

85+
- section:
86+
forcing: Tendencies
87+
options:
88+
config_use_bulk_wind_stress: WindForcingTendencyEnable
89+
90+
- section:
91+
debug: Tendencies
92+
options:
93+
config_disable_vel_explicit_bottom_drag: BottomDragTendencyEnable
94+
95+
- section:
96+
bottom_drag: Tendencies
97+
options:
98+
config_explicit_bottom_drag_coeff: BottomDragCoeff
99+
70100
- section:
71101
manufactured_solution: ManufacturedSolution
72102
options:

polaris/suites/ocean/omega_pr.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
ocean/planar/manufactured_solution/convergence_both/default
2+
ocean/planar/manufactured_solution/convergence_both/del2
3+
ocean/planar/manufactured_solution/convergence_both/del4
24
ocean/spherical/icos/rotation_2d
35
ocean/spherical/icos/cosine_bell/decomp
46
ocean/spherical/icos/cosine_bell/restart

polaris/tasks/ocean/barotropic_gyre/forward.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,3 @@ Omega:
4848
Tendencies:
4949
VelDiffTendencyEnable: true
5050
VelHyperDiffTendencyEnable: false
51-
Dimension:
52-
NVertLevels: 1

polaris/tasks/ocean/cosine_bell/forward.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ Omega:
7979
TracerHorzAdvTendencyEnable : true
8080
TracerDiffTendencyEnable : false
8181
TracerHyperDiffTendencyEnable : false
82-
Dimension:
83-
NVertLevels: 1
8482
IOStreams:
83+
InitialVertCoord:
84+
Filename: init.nc
8585
InitialState:
8686
Filename: init.nc
8787
Contents:

polaris/tasks/ocean/cosine_bell/restart/forward.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ mpas-ocean:
1919

2020
Omega:
2121
IOStreams:
22+
InitialVertCoord:
23+
Filename: init.nc
2224
InitialState:
2325
FreqUnits: {{ init_freq_units }}
2426
RestartRead:

polaris/tasks/ocean/manufactured_solution/forward.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ ocean:
55
time_integration:
66
config_dt: {{ dt }}
77
config_time_integrator: {{ time_integrator }}
8+
hmix_del2:
9+
config_mom_del2: 1.5e6
10+
hmix_del4:
11+
config_mom_del4: 5.e13
812

913
mpas-ocean:
1014
bottom_drag:
1115
config_bottom_drag_mode: implicit
1216
config_implicit_bottom_drag_type: constant
1317
config_implicit_constant_bottom_drag_coeff: 0.0
14-
hmix_del2:
15-
config_mom_del2: 1.5e6
16-
hmix_del4:
17-
config_mom_del4: 5.e13
1818
manufactured_solution:
1919
config_use_manufactured_solution: true
2020
debug:
@@ -44,9 +44,9 @@ Omega:
4444
VelHyperDiffTendencyEnable: false
4545
UseCustomTendency: true
4646
ManufacturedSolutionTendency: true
47-
Dimension:
48-
NVertLevels: 1
4947
IOStreams:
48+
InitialVertCoord:
49+
Filename: init.nc
5050
InitialState:
5151
UsePointerFile: false
5252
Filename: init.nc
@@ -64,4 +64,4 @@ Omega:
6464
Contents:
6565
- NormalVelocity
6666
- LayerThickness
67-
- SshCellDefault
67+
- SshCell

polaris/tasks/ocean/sphere_transport/forward.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ Omega:
7171
TracerHorzAdvTendencyEnable : true
7272
TracerDiffTendencyEnable : false
7373
TracerHyperDiffTendencyEnable : false
74-
Dimension:
75-
NVertLevels: 1
7674
IOStreams:
75+
InitialVertCoord:
76+
Filename: init.nc
7777
InitialState:
7878
Filename: init.nc
7979
Contents:

0 commit comments

Comments
 (0)