Commit 20265b63 authored by Dennis Gläser's avatar Dennis Gläser Committed by Martin Schneider
Browse files

[md][stokesdarcy][box] add comments and correct formatting

parent 596f24c2
......@@ -727,7 +727,7 @@ public:
}
}
// calculate projection of pm solution needed for fluxes of pm residual
// calculate projection of pm solution needed for fluxes of the free-flow residual
template<class Function>
Scalar calculateProjection(const SubControlVolumeFace<freeFlowIdx>& stokesScvf,
const Element<porousMediumIdx>& darcyElement,
......@@ -796,11 +796,11 @@ public:
template<class CouplingFacetGeometry, class Function>
Scalar calculateFacetIntegral(const Element<porousMediumIdx>& element,
const FVElementGeometry<porousMediumIdx>& fvGeometry,
const SubControlVolumeFace<porousMediumIdx>& scvf,
const ElementVolumeVariables<porousMediumIdx>& elemVolVars,
const CouplingFacetGeometry& facetGeometry,
Function evalPriVar) const
const FVElementGeometry<porousMediumIdx>& fvGeometry,
const SubControlVolumeFace<porousMediumIdx>& scvf,
const ElementVolumeVariables<porousMediumIdx>& elemVolVars,
const CouplingFacetGeometry& facetGeometry,
Function evalPriVar) const
{
Scalar facetProjection = 0.0;
if constexpr (projectionMethod == ProjectionMethod::L2Projection)
......
......@@ -76,8 +76,9 @@ public:
else
{
it_++;
if(it_ == (*indices_)[localIdx_].end())
if (it_ == (*indices_)[localIdx_].end())
{
// search for the next non-empty set of indices
auto it = std::find_if(indices_->begin()+localIdx_+1, indices_->end(), [] (const auto& idx) { return idx.size() > 0; });
if(it != indices_->end())
......
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