diff --git a/dumux/flux/cctpfa/fickslaw.hh b/dumux/flux/cctpfa/fickslaw.hh index c4d9eecc1006023fadd8cef5632fe2906c5e270f..29c1aa8ea5641f7dd2b87f67145a32fd81616952 100644 --- a/dumux/flux/cctpfa/fickslaw.hh +++ b/dumux/flux/cctpfa/fickslaw.hh @@ -204,8 +204,8 @@ public: { if constexpr (isMixedDimensional_) { - scvf.numOutsideScvs() == 1 ? 0.5*(rhoInside + rhoOutside) - : branchingFacetDensity_(elemVolVars, scvf, phaseIdx, rhoInside); + return scvf.numOutsideScvs() == 1 ? 0.5*(rhoInside + rhoOutside) + : branchingFacetDensity_(elemVolVars, scvf, phaseIdx, rhoInside); } else return 0.5*(rhoInside + rhoOutside);