diff --git a/test/freeflow/navierstokes/analyticalsolutionvectors.hh b/test/freeflow/navierstokes/analyticalsolutionvectors.hh index 9c1756ae9edfbf3a08ae3c19d2e556dc5777dbf1..d67b86d059df1648d29d6d863ab17ca2c9c7ccae 100644 --- a/test/freeflow/navierstokes/analyticalsolutionvectors.hh +++ b/test/freeflow/navierstokes/analyticalsolutionvectors.hh @@ -186,7 +186,8 @@ public: = momentumProblem_->analyticalSolution(scv.center(), time)[MomIndices::velocity(scv.dofAxis())]; else if constexpr (MomentumGridGeometry::discMethod == DiscretizationMethods::fcdiamond - || MomentumGridGeometry::discMethod == DiscretizationMethods::pq1bubble) + || MomentumGridGeometry::discMethod == DiscretizationMethods::pq1bubble + || MomentumGridGeometry::discMethod == DiscretizationMethods::box) for (const auto& scv : scvs(fvGeometry)) for (int dirIdx = 0; dirIdx < dimWorld; ++dirIdx) analyticalVelocityAtDofs_[scv.dofIndex()][dirIdx] diff --git a/test/freeflow/navierstokes/errors.hh b/test/freeflow/navierstokes/errors.hh index ac49f58b9c5b494fb4fcf6e46600f81a1a0fcfe9..0eacc3294c749b6d8fd47e30975dd0615ec93e80 100644 --- a/test/freeflow/navierstokes/errors.hh +++ b/test/freeflow/navierstokes/errors.hh @@ -412,7 +412,8 @@ private: sumError[velIdx] += vError * vError * Extrusion::volume(fvGeometry, scv); sumReference[velIdx] += vReference * vReference * Extrusion::volume(fvGeometry, scv); } - else if constexpr (GridGeometry::discMethod == DiscretizationMethods::fcdiamond) + else if constexpr (GridGeometry::discMethod == DiscretizationMethods::fcdiamond + || GridGeometry::discMethod == DiscretizationMethods::box) { totalVolume_ += Extrusion::volume(fvGeometry, scv); for (int dirIdx = 0; dirIdx < dim; ++dirIdx)