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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user