Now the relative volume discrepancy takes std::fabs(), so max_element() will be ok.
This commit is contained in:
parent
4f78892dc4
commit
c6835bb9a7
@ -136,7 +136,7 @@ namespace Opm
|
|||||||
totphasevol[cell] = state.total_phase_volume_;
|
totphasevol[cell] = state.total_phase_volume_;
|
||||||
double pv = rock.porosity(cell)*grid.cellVolume(cell);
|
double pv = rock.porosity(cell)*grid.cellVolume(cell);
|
||||||
voldiscr[cell] = (totphasevol[cell] - pv)/dt;
|
voldiscr[cell] = (totphasevol[cell] - pv)/dt;
|
||||||
relvoldiscr[cell] = (totphasevol[cell] - pv)/pv;
|
relvoldiscr[cell] = std::fabs(totphasevol[cell] - pv)/pv;
|
||||||
saturation[cell] = state.saturation_;
|
saturation[cell] = state.saturation_;
|
||||||
rel_perm[cell] = state.relperm_;
|
rel_perm[cell] = state.relperm_;
|
||||||
viscosity[cell] = state.viscosity_;
|
viscosity[cell] = state.viscosity_;
|
||||||
|
Loading…
Reference in New Issue
Block a user