Skip to content

Commit

Permalink
fix for changed pmap
Browse files Browse the repository at this point in the history
  • Loading branch information
Thanduriel committed Nov 11, 2024
1 parent 9f3cc60 commit 096854c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dynamics/src/CGDynamicsKernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void CGDynamicsKernel<DGadvection>::initialise(
DynamicsKernel<DGadvection, DGstressComp>::initialise(coords, isSpherical, mask);

//! Initialize the parametric momentum map
pmap = std::make_unique<ParametricMomentumMap<CGdegree, DGadvection>>(*smesh);
pmap = std::make_unique<ParametricMomentumMap<CGdegree>>(*smesh);
pmap->InitializeLumpedCGMassMatrix();
pmap->InitializeDivSMatrices();

Expand Down
3 changes: 1 addition & 2 deletions dynamics/src/include/CGDynamicsKernel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class CGDynamicsKernel : public DynamicsKernel<DGadvection, DGstressComp> {

public:
CGDynamicsKernel()
: pmap(nullptr)
{
}
virtual ~CGDynamicsKernel() = default;
Expand Down Expand Up @@ -73,7 +72,7 @@ class CGDynamicsKernel : public DynamicsKernel<DGadvection, DGstressComp> {
CGVector<CGdegree> uAtmos;
CGVector<CGdegree> vAtmos;

std::unique_ptr<ParametricMomentumMap<CGdegree, DGadvection>> pmap;
std::unique_ptr<ParametricMomentumMap<CGdegree>> pmap;
};

} /* namespace Nextsim */
Expand Down

0 comments on commit 096854c

Please sign in to comment.