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:
Bård Skaflestad 2014-07-01 17:06:52 +02:00
parent fd606d907a
commit 464b0c3d15

View File

@ -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;
}