Implement total rate constraint for wells.

Untested.
This commit is contained in:
Bård Skaflestad
2011-02-16 10:41:43 +01:00
parent c0114c52d2
commit 8bd7d89d00

View File

@@ -715,6 +715,11 @@ assemble_well_contrib(size_t nc,
}
is_neumann = is_neumann && (! is_bhp);
if (! is_bhp) {
/* Enforce total (reservoir volume) rate constraint. */
h->b[nc + w] += wctrl->target[w];
}
}
return is_neumann;