not adapting any variables in onephase

This commit is contained in:
hnil 2019-05-21 14:32:25 +02:00 committed by Atgeirr Flø Rasmussen
parent 8572e1d108
commit efe3313f85

View File

@ -353,6 +353,9 @@ public:
// the IntensiveQuantities). The reason is that most intensive quantities are not // the IntensiveQuantities). The reason is that most intensive quantities are not
// required to be able to decide if the primary variables needs to be switched or // required to be able to decide if the primary variables needs to be switched or
// not, so it would be a waste to compute them. // not, so it would be a waste to compute them.
if (primaryVarsMeaning() == px){
return false;
}
Scalar Sw = 0.0; Scalar Sw = 0.0;
if (waterEnabled) if (waterEnabled)
Sw = (*this)[Indices::waterSaturationIdx]; Sw = (*this)[Indices::waterSaturationIdx];