From 4b975357a25c757b6cf3f417a741490bc1f1b1ae Mon Sep 17 00:00:00 2001 From: Kilian Weishaupt <kilian.weishaupt@iws.uni-stuttgart.de> Date: Fri, 10 Nov 2017 16:10:07 +0100 Subject: [PATCH] [freeflow] Fix methods in local residual --- dumux/freeflow/staggered/localresidual.hh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/dumux/freeflow/staggered/localresidual.hh b/dumux/freeflow/staggered/localresidual.hh index e4557974b0..62933ed306 100644 --- a/dumux/freeflow/staggered/localresidual.hh +++ b/dumux/freeflow/staggered/localresidual.hh @@ -159,8 +159,9 @@ public: * \note The volVars can be different to allow computing * the implicit euler time derivative here */ - CellCenterPrimaryVariables computeStorageForCellCenter(const SubControlVolume& scv, - const VolumeVariables& volVars) + CellCenterPrimaryVariables computeStorageForCellCenter(const Problem& problem, + const SubControlVolume& scv, + const VolumeVariables& volVars) const { CellCenterPrimaryVariables storage; storage[0] = volVars.density(); @@ -178,12 +179,13 @@ public: * \note The volVars can be different to allow computing * the implicit euler time derivative here */ - FacePrimaryVariables computeStorageForFace(const SubControlVolumeFace& scvf, + FacePrimaryVariables computeStorageForFace(const Problem& problem, + const SubControlVolumeFace& scvf, const VolumeVariables& volVars, - const ElementFaceVariables& elementFaceVars) + const ElementFaceVariables& elementFaceVars) const { FacePrimaryVariables storage(0.0); - const Scalar velocity = elementFaceVars[scvf].velocity(); + const Scalar velocity = elementFaceVars[scvf].velocitySelf(); storage[0] = volVars.density() * velocity; return storage; } -- GitLab