diff --git a/dumux/material/fluidsystems/brineco2.hh b/dumux/material/fluidsystems/brineco2.hh index b0c4798bb7ee1016b156997a7dcccb7def8c9611..6adc767dc064908cc9c7406b4ae14650a48de3e1 100644 --- a/dumux/material/fluidsystems/brineco2.hh +++ b/dumux/material/fluidsystems/brineco2.hh @@ -452,8 +452,9 @@ public: Scalar T = fluidState.temperature(phaseIdx); Scalar pl = fluidState.pressure(liquidPhaseIdx); Scalar pg = fluidState.pressure(gasPhaseIdx); - assert(temperature > 0); - assert(pressure > 0); + + assert(T > 0); + assert(pl > 0 && pg > 0); // calulate the equilibrium composition for given T & p Scalar xlH2O, xgH2O; @@ -500,8 +501,9 @@ public: { Scalar T = fluidState.temperature(phaseIdx); Scalar p = fluidState.pressure(phaseIdx); - assert(temperature > 0); - assert(pressure > 0); + + assert(T > 0); + assert(p > 0); Scalar xgH2O; Scalar xlCO2;