Commit e69eaefa authored by Bernd Flemisch's avatar Bernd Flemisch
Browse files

[stokesnc] initialize flux variables with proper values

Undefined values have been accessed in the StokesncniLocalResidual.

Reviewed by Thomas.


git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@13261 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 10a4ee5e
......@@ -121,13 +121,13 @@ protected:
// loop over all components
for (int compIdx=0; compIdx<numComponents; compIdx++){
molarDensity_ = Scalar(0.0);
massFraction_[compIdx] = Scalar(0.0);
diffusionCoeff_[compIdx] = Scalar(0.0);
moleFractionGrad_[compIdx] = Scalar(0.0);
if (phaseCompIdx!=compIdx) //no transport equation parameters needed for the mass balance
{
molarDensity_ = Scalar(0.0);
massFraction_[compIdx] = Scalar(0.0);
diffusionCoeff_[compIdx] = Scalar(0.0);
moleFractionGrad_[compIdx] = Scalar(0.0);
// calculate gradients and secondary variables at IPs
for (int scvIdx = 0;
scvIdx < this->fvGeometry_.numScv;
......
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