mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-28 02:00:59 -06:00
Simplify rhs of conditional.
This commit is contained in:
parent
5be3ae9ad6
commit
eda6899571
@ -84,7 +84,7 @@ struct HelperOps
|
||||
int numNNC = 0;
|
||||
|
||||
// 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();
|
||||
if (has_nnc) {
|
||||
numNNC = nnc->numNNC();
|
||||
|
Loading…
Reference in New Issue
Block a user