mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Re-install zero-level enforcement, but only for incompressible problems.
This commit is contained in:
parent
eb30bcb049
commit
b8fd9a5516
@ -675,6 +675,21 @@ compute_wflux(well_t *W,
|
||||
}
|
||||
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
static int
|
||||
is_incompr(int nc, struct compr_quantities *cq)
|
||||
/* ---------------------------------------------------------------------- */
|
||||
{
|
||||
int c, incompr;
|
||||
|
||||
for (c = 0, incompr = 1; (c < nc) && incompr; ++c) {
|
||||
incompr = cq->totcompr[c] == 0.0;
|
||||
}
|
||||
|
||||
return incompr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* ======================================================================
|
||||
* Public interface below separator.
|
||||
@ -750,6 +765,11 @@ cfs_tpfa_assemble(grid_t *G,
|
||||
} else {
|
||||
well_is_neumann = 1;
|
||||
}
|
||||
|
||||
if (res_is_neumann && well_is_neumann &&
|
||||
is_incompr(G->number_of_cells, cq)) {
|
||||
h->A->sa[0] *= 2;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user