mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
solve(): Don't generate pointers into ::empty() vector<>s.
This commit is contained in:
parent
4b6b8c0def
commit
264d8dda0c
@ -128,7 +128,7 @@ namespace Opm
|
|||||||
if (! src.empty()) { F.src = &src[0]; }
|
if (! src.empty()) { F.src = &src[0]; }
|
||||||
F.bc = bcs;
|
F.bc = bcs;
|
||||||
F.totmob = &totmob[0];
|
F.totmob = &totmob[0];
|
||||||
F.wdp = &wdp[0];
|
if (! wdp.empty()) { F.wdp = &wdp[0]; }
|
||||||
|
|
||||||
int ok = ifs_tpfa_assemble(gg, &F, &trans_[0], &gpress_omegaweighted_[0], h_);
|
int ok = ifs_tpfa_assemble(gg, &F, &trans_[0], &gpress_omegaweighted_[0], h_);
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
@ -210,7 +210,7 @@ namespace Opm
|
|||||||
if (! src.empty()) { F.src = &src[0]; }
|
if (! src.empty()) { F.src = &src[0]; }
|
||||||
F.bc = bcs;
|
F.bc = bcs;
|
||||||
F.totmob = &totmob[0];
|
F.totmob = &totmob[0];
|
||||||
F.wdp = &wdp[0];
|
if (! wdp.empty()) { F.wdp = &wdp[0]; }
|
||||||
int ok = true;
|
int ok = true;
|
||||||
if (rock_comp.empty()) {
|
if (rock_comp.empty()) {
|
||||||
ok = ifs_tpfa_assemble(gg, &F, &trans_[0], &gpress_omegaweighted_[0], h_);
|
ok = ifs_tpfa_assemble(gg, &F, &trans_[0], &gpress_omegaweighted_[0], h_);
|
||||||
@ -275,7 +275,7 @@ namespace Opm
|
|||||||
if (! src.empty()) { F.src = &src[0]; }
|
if (! src.empty()) { F.src = &src[0]; }
|
||||||
F.bc = bcs;
|
F.bc = bcs;
|
||||||
F.totmob = &totmob[0];
|
F.totmob = &totmob[0];
|
||||||
F.wdp = &wdp[0];
|
if (! wdp.empty()) { F.wdp = &wdp[0]; }
|
||||||
|
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
if (rock_comp.empty()) {
|
if (rock_comp.empty()) {
|
||||||
@ -324,7 +324,7 @@ namespace Opm
|
|||||||
if (! src.empty()) { F.src = &src[0]; }
|
if (! src.empty()) { F.src = &src[0]; }
|
||||||
F.bc = bcs;
|
F.bc = bcs;
|
||||||
F.totmob = &totmob[0];
|
F.totmob = &totmob[0];
|
||||||
F.wdp = &wdp[0];
|
if (! wdp.empty()) { F.wdp = &wdp[0]; }
|
||||||
|
|
||||||
ifs_tpfa_assemble(gg, &F, &trans_[0], &gpress_omegaweighted_[0], h_);
|
ifs_tpfa_assemble(gg, &F, &trans_[0], &gpress_omegaweighted_[0], h_);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user