diff --git a/dumux/freeflow/stokes/stokeslocalresidual.hh b/dumux/freeflow/stokes/stokeslocalresidual.hh index 09be6ae4792b8b0deff23400a603862fc8684c8c..10c565e82140dc4b461c48331a896023e9386e59 100644 --- a/dumux/freeflow/stokes/stokeslocalresidual.hh +++ b/dumux/freeflow/stokes/stokeslocalresidual.hh @@ -176,9 +176,11 @@ protected: { // if the momentum balance has a dirichlet b.c., the mass balance // is replaced, thus we do not need to calculate outflow fluxes here - if (fluxVars.onBoundary()) - if (momentumBalanceDirichlet_(this->bcTypes_(fluxVars.upstreamIdx()))) - return; + if (fluxVars.onBoundary() && + momentumBalanceDirichlet_(this->bcTypes_(fluxVars.upstreamIdx()))) + { + return; + } // data attached to upstream and the downstream vertices const VolumeVariables &up = this->curVolVars_(fluxVars.upstreamIdx());