Skip to content

Commit d905c06

Browse files
committed
Fix for compile errors after rebase.
1 parent f714637 commit d905c06

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

components/omega/src/infra/TimeMgr.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3717,7 +3717,6 @@ const TimeInstant *Alarm::getRingTimePrev(void) const { return &RingTimePrev; }
37173717
// Clock::Clock - default constructor
37183718
// This is a default constructor that creates a clock using the default
37193719
// TimeInstant and default TimeInterval, should only be used for testing.
3720-
#if 0
37213720
Clock::Clock(void) {
37223721

37233722
TimeInstant DefTime;
@@ -3737,7 +3736,7 @@ Clock::Clock(void) {
37373736
}
37383737

37393738
} // end Clock default constructor
3740-
#endif
3739+
37413740
// Clock::Clock - constructs a clock for tracking time within a model
37423741
// Construct a clock using a start time and time step.
37433742

components/omega/src/ocn/HorzMesh.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ HorzMesh::HorzMesh(const std::string &Name, //< [in] Name for new mesh
5757
MeshFileName = MeshDecomp->MeshFileName;
5858

5959
// Set NVertLayers
60-
NVertLayers = InNVertLayers;
60+
NVertLayers = InNVertLevels;
6161

6262
// Retrieve mesh cell/edge/vertex totals from Decomp
6363
NCellsHalo = MeshDecomp->NCellsHalo;

components/omega/src/ocn/TendencyTerms.cpp

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
#include "AuxiliaryState.h"
1313
#include "DataTypes.h"
1414
#include "HorzMesh.h"
15+
#include "HorzOperators.h"
1516
#include "OceanState.h"
1617
#include "Tracers.h"
1718
#include "VertCoord.h"
18-
#include "HorzOperators.h"
1919

2020
namespace OMEGA {
2121

@@ -64,13 +64,15 @@ TracerHighOrderHorzAdvOnCell::TracerHighOrderHorzAdvOnCell(const HorzMesh *Mesh)
6464
: HorzontalMesh(Mesh),
6565
NAdvCellsForEdge("NumberOfCellsContribToAdvectionAtEdge",
6666
Mesh->NEdgesOwned),
67-
AdvCellsForEdge("IndexOfCellsContributingToAdvection",
68-
Mesh->NEdgesOwned, Mesh->MaxEdges2 + 2),
67+
AdvCellsForEdge("IndexOfCellsContributingToAdvection", Mesh->NEdgesOwned,
68+
Mesh->MaxEdges2 + 2),
6969
AdvMaskHighOrder("MaskForHighOrderAdvectionTerms", Mesh->NEdgesAll),
70-
AdvCoefs("CommonAdvectionCoefficients", Mesh->MaxEdges2+2, Mesh->NEdgesAll),
71-
AdvCoefs3rd("CommonAdvectionCoeffsForHighOrder", Mesh->MaxEdges2+2,
70+
AdvCoefs("CommonAdvectionCoefficients", Mesh->MaxEdges2 + 2,
71+
Mesh->NEdgesAll),
72+
AdvCoefs3rd("CommonAdvectionCoeffsForHighOrder", Mesh->MaxEdges2 + 2,
7273
Mesh->NEdgesAll),
73-
HighOrderFlxHorz("HigherOrderHorizontalFlux",Tracers::getNumTracers(), Mesh->NEdgesAll,Mesh->NVertLevels/VecLength),
74+
HighOrderFlxHorz("HigherOrderHorizontalFlux", Tracers::getNumTracers(),
75+
Mesh->NEdgesAll, Mesh->NVertLayers / VecLength),
7476
NEdgesOnCell(Mesh->NEdgesOnCell), EdgesOnCell(Mesh->EdgesOnCell),
7577
CellsOnEdge(Mesh->CellsOnEdge), EdgeSignOnCell(Mesh->EdgeSignOnCell),
7678
DvEdge(Mesh->DvEdge), AreaCell(Mesh->AreaCell) {
@@ -98,7 +100,7 @@ void TracerHighOrderHorzAdvOnCell::init() {
98100
// Allocate Kokkos arrays in member data
99101

100102
SecondDerivativeOnCell secondDerivativeOnCell(Mesh);
101-
Array3DReal DerivTwo("DerivTwo", MaxEdges2+2, 2, NEdgesAll);
103+
Array3DReal DerivTwo("DerivTwo", MaxEdges2 + 2, 2, NEdgesAll);
102104
parallelFor(
103105
{NCellsOwned},
104106
KOKKOS_LAMBDA(int ICell) { secondDerivativeOnCell(DerivTwo, ICell); });

0 commit comments

Comments
 (0)