mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-16 12:41:54 -06:00
Simplify rhs of conditional.
This commit is contained in:
parent
5be3ae9ad6
commit
eda6899571
@ -84,7 +84,7 @@ struct HelperOps
|
|||||||
int numNNC = 0;
|
int numNNC = 0;
|
||||||
|
|
||||||
// handle non-neighboring connections
|
// handle non-neighboring connections
|
||||||
std::shared_ptr<const NNC> nnc = eclState ? eclState->getNNC() : std::make_shared<const NNC> (nullptr, nullptr);
|
std::shared_ptr<const NNC> nnc = eclState ? eclState->getNNC() : nullptr;
|
||||||
const bool has_nnc = nnc && nnc->hasNNC();
|
const bool has_nnc = nnc && nnc->hasNNC();
|
||||||
if (has_nnc) {
|
if (has_nnc) {
|
||||||
numNNC = nnc->numNNC();
|
numNNC = nnc->numNNC();
|
||||||
|
Loading…
Reference in New Issue
Block a user