Commit 5326a5d8 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[cc][localres] remove bcTypes from computeFlux_ interface

The bc types were not used anywhere and are removed from the interface.
Now they don't have to be instantiated anymore in the evalFlux_ routine which is called
by the cclocaljacobian during assembly. This commit removes this call as well.
parent 276f1699
......@@ -77,7 +77,7 @@ protected:
// calculate the mass flux over the scv faces
for (auto&& scvf : scvfs(fvGeometry))
{
this->residual_[0] += this->asImp_().computeFlux_(element, fvGeometry, elemVolVars, scvf, bcTypes, elemFluxVarsCache);
this->residual_[0] += this->asImp_().computeFlux_(element, fvGeometry, elemVolVars, scvf, elemFluxVarsCache);
}
}
......@@ -85,7 +85,6 @@ protected:
const FVElementGeometry& fvGeometry,
const ElementVolumeVariables& elemVolVars,
const SubControlVolumeFace &scvf,
const ElementBoundaryTypes& bcTypes,
const ElementFluxVariablesCache& elemFluxVarsCache)
{
if (!scvf.boundary())
......
......@@ -77,7 +77,6 @@ protected:
const FVElementGeometry& fvGeometry,
const ElementVolumeVariables& elemVolVars,
const SubControlVolumeFace &scvf,
const ElementBoundaryTypes& bcTypes,
const ElementFluxVariablesCache& elemFluxVarsCache)
{
if (!scvf.boundary() || !useTpfaBoundary)
......@@ -93,14 +92,8 @@ protected:
const SubControlVolumeFace& scvf,
const ElementFluxVariablesCache& elemFluxVarsCache)
{
ElementBoundaryTypes bcTypes;
bcTypes.update(this->problem(), element, fvGeometry);
this->residual_.resize(fvGeometry.numScv());
this->residual_ = 0;
if (!scvf.boundary() || !useTpfaBoundary)
return this->asImp_().computeFlux_(element, fvGeometry, elemVolVars, scvf, bcTypes, elemFluxVarsCache);
return this->asImp_().computeFlux_(element, fvGeometry, elemVolVars, scvf, elemFluxVarsCache);
else
{
auto bcTypes = this->problem().boundaryTypes(element, scvf);
......
......@@ -295,13 +295,7 @@ protected:
const SubControlVolumeFace& scvf,
const ElementFluxVariablesCache& elemFluxVarsCache)
{
ElementBoundaryTypes bcTypes;
bcTypes.update(problem(), element, fvGeometry);
residual_.resize(fvGeometry.numScv());
residual_ = 0;
return asImp_().computeFlux_(element, fvGeometry, elemVolVars, scvf, bcTypes, elemFluxVarsCache);
return asImp_().computeFlux_(element, fvGeometry, elemVolVars, scvf, elemFluxVarsCache);
}
/*!
......
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