mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-18 21:43:27 -06:00
well_controls_equal(): Don't compare set capacities
The 'cpty' field is for internal memory management purposes only. No client can know of its existence, let alone inspect or directly change the value, so it should not be used to adjudicate control set equality. This was useful during the refactoring work to introduce the opm-parser support, but its utility has since ceased. Okay'ed by: [at] atgeirr and [at] joakim-hove
This commit is contained in:
parent
fd606d907a
commit
464b0c3d15
@ -340,7 +340,6 @@ well_controls_equal(const struct WellControls *ctrls1, const struct WellControls
|
||||
if (verbose)
|
||||
printf("The ->target vectors are different \n");
|
||||
}
|
||||
are_equal = are_equal && (ctrls1->cpty == ctrls2->cpty);
|
||||
|
||||
return are_equal;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user