Skip to content

Commit 8605f34

Browse files
committed
moves density0 to vertcoord in config.yml
1 parent 6398a74 commit 8605f34

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

components/omega/configs/Default.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Omega:
2828
WindStress:
2929
InterpType: Isotropic
3030
VertCoord:
31+
Density0: 1026.0
3132
MovementWeightType: Uniform
3233
Tendencies:
3334
ThicknessFluxTendencyEnable: true
@@ -40,7 +41,6 @@ Omega:
4041
ViscDel4: 1.2e11
4142
DivFactor: 1.0
4243
WindForcingTendencyEnable: false
43-
Density0: 1026.0
4444
BottomDragTendencyEnable: false
4545
BottomDragCoeff: 0.0
4646
TracerHorzAdvTendencyEnable: true

components/omega/src/ocn/VertCoord.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -217,14 +217,14 @@ void VertCoord::completeSetup(Config *Options //< [in] configuration options
217217
MinLayerCellH = createHostMirrorCopy(MinLayerCell);
218218
BottomDepthH = createHostMirrorCopy(BottomDepth);
219219

220-
// Fetch reference desnity from Config
221-
Config TendConfig("Tendencies");
220+
// Fetch reference density from Config
221+
Config VCoordConfig("VertCoord");
222222
Err.reset();
223-
Err += Options->get(TendConfig);
224-
CHECK_ERROR_ABORT(Err, "VertCoord: Tendencies group not found in Config");
223+
Err += Options->get(VCoordConfig);
224+
CHECK_ERROR_ABORT(Err, "VertCoord: VertCoord group not found in Config");
225225

226-
Err += TendConfig.get("Density0", Rho0);
227-
CHECK_ERROR_ABORT(Err, "VertCoord: Density0 not found in TendConfig");
226+
Err += VCoordConfig.get("Density0", Rho0);
227+
CHECK_ERROR_ABORT(Err, "VertCoord: Density0 not found in VertCoord");
228228

229229
} // end completeSetup
230230

0 commit comments

Comments
 (0)