diff --git a/dumux/multidomain/2cstokes2p2c/stokesnccouplinglocalresidual.hh b/dumux/multidomain/2cstokes2p2c/stokesnccouplinglocalresidual.hh index bfa130aa15ac3711b16c41530e6517aa81a2f78d..06448f6f05c92c62485a4c8b18f5985869128f89 100644 --- a/dumux/multidomain/2cstokes2p2c/stokesnccouplinglocalresidual.hh +++ b/dumux/multidomain/2cstokes2p2c/stokesnccouplinglocalresidual.hh @@ -137,12 +137,13 @@ public: continue; const int boundaryFaceIdx = this->fvGeometry_().boundaryFaceIndex(fIdx, faceVertexIdx); - const FluxVariables boundaryVars(this->problem_(), - this->element_(), - this->fvGeometry_(), - boundaryFaceIdx, - this->curVolVars_(), - true); + FluxVariables boundaryVars; + boundaryVars.update(this->problem_(), + this->element_(), + this->fvGeometry_(), + boundaryFaceIdx, + this->curVolVars_(), + true); const VolumeVariables &volVars = this->curVolVars_()[scvIdx]; // set velocity normal to the interface