properly initialize the attributes of the SatHyst class

this caused the hysteresis saturation shifts to be initially wrong and
was probably the source of a lot of my confusion w.r.t. the saturation
scaling and hysteresis shift code. I guess this also fixes a valgrind
complaint, but I haven't checked...
This commit is contained in:
Andreas Lauser
2015-08-05 16:07:02 +02:00
parent 6ea7677a59
commit feae6e393a

View File

@@ -65,6 +65,14 @@ namespace Opm
// Hysteresis
struct SatHyst {
SatHyst() {
sg_hyst = -1.0;
sow_hyst = -1.0;
sg_shift = 0.0;
sow_shift = 0.0;
}
double sg_hyst;
double sg_shift;
double sow_hyst;