mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Bugfix: do not call method on pointer that can be null.
This commit is contained in:
parent
eda6899571
commit
61b1a67140
@ -154,7 +154,7 @@ struct HelperOps
|
||||
}
|
||||
}
|
||||
// add contribution from NNC
|
||||
if (nnc->hasNNC()) {
|
||||
if (has_nnc) {
|
||||
for (int i = 0; i < numNNC; ++i) {
|
||||
fullngrad_tri.emplace_back(i+nf, nnc_cells(i,0), 1.0);
|
||||
fullngrad_tri.emplace_back(i+nf, nnc_cells(i,1), -1.0);
|
||||
|
Loading…
Reference in New Issue
Block a user