Compensate for matrix adjustment in rock comp case.
This commit is contained in:
parent
f91ec88df6
commit
a99cccf2fc
@ -178,7 +178,13 @@ namespace Opm
|
|||||||
|
|
||||||
ifs_tpfa_assemble(gg, &F, &trans_[0], &gpress_omegaweighted_[0], h_);
|
ifs_tpfa_assemble(gg, &F, &trans_[0], &gpress_omegaweighted_[0], h_);
|
||||||
|
|
||||||
|
// TODO: this is a hack, it would be better to handle this in a
|
||||||
|
// (variant of) ifs_tpfa_assemble().
|
||||||
if (!rock_comp.empty()) {
|
if (!rock_comp.empty()) {
|
||||||
|
// We must compensate for adjustment made in ifs_tpfa_assemble()
|
||||||
|
// to make the system nonsingular.
|
||||||
|
h_->A->sa[0] *= 0.5;
|
||||||
|
|
||||||
// The extra term of the equation is
|
// The extra term of the equation is
|
||||||
//
|
//
|
||||||
// porevol*rock_comp*(p - p0)/dt.
|
// porevol*rock_comp*(p - p0)/dt.
|
||||||
|
Loading…
Reference in New Issue
Block a user