Commit 00a3900d authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

[staggered][localresidual] Minor cleanup

parent fd2985e8
......@@ -51,7 +51,6 @@ class StaggeredLocalResidual
using SubControlVolume = typename FVElementGeometry::SubControlVolume;
using SubControlVolumeFace = typename FVElementGeometry::SubControlVolumeFace;
using CellCenterPrimaryVariables = GetPropType<TypeTag, Properties::CellCenterPrimaryVariables>;
using SolutionVector = GetPropType<TypeTag, Properties::SolutionVector>;
using CellCenterResidual = GetPropType<TypeTag, Properties::CellCenterPrimaryVariables>;
using FaceResidual = GetPropType<TypeTag, Properties::FacePrimaryVariables>;
......@@ -99,11 +98,11 @@ public:
const FVElementGeometry& fvGeometry,
const ElementVolumeVariables& elemVolVars,
const ElementFaceVariables& elemFaceVars,
const ElementBoundaryTypes& bcTypes,
const ElementBoundaryTypes& elemBcTypes,
const ElementFluxVariablesCache& elemFluxVarsCache,
const SubControlVolumeFace& scvf) const
{
if(!scvf.boundary())
if (!scvf.boundary())
residual += asImp_().computeFluxForCellCenter(problem, element, fvGeometry, elemVolVars, elemFaceVars, scvf, elemFluxVarsCache);
}
......@@ -229,11 +228,11 @@ public:
const FVElementGeometry& fvGeometry,
const ElementVolumeVariables& elemVolVars,
const ElementFaceVariables& elemFaceVars,
const ElementBoundaryTypes& bcTypes,
const ElementBoundaryTypes& elemBcTypes,
const ElementFluxVariablesCache& elemFluxVarsCache,
const SubControlVolumeFace& scvf) const
{
if(!scvf.boundary())
if (!scvf.boundary())
residual += asImp_().computeFluxForFace(problem, element, scvf, fvGeometry, elemVolVars, elemFaceVars, elemFluxVarsCache);
}
......
......@@ -78,9 +78,6 @@ class NavierStokesResidualImpl<TypeTag, DiscretizationMethod::staggered>
using ModelTraits = GetPropType<TypeTag, Properties::ModelTraits>;
static constexpr bool enableEnergyBalance = ModelTraits::enableEnergyBalance();
static constexpr bool isCompositional = ModelTraits::numFluidComponents() > 1;
public:
using EnergyLocalResidual = FreeFlowEnergyLocalResidual<FVGridGeometry, FluxVariables, ModelTraits::enableEnergyBalance(), (ModelTraits::numFluidComponents() > 1)>;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment