initialize nonTrivialBoundaryConditions inline

this way you don't have to read the code to find the
default value
This commit is contained in:
Arne Morten Kvarving 2022-10-17 11:33:50 +02:00
parent d2a720e40c
commit 95ab3427e2

View File

@ -2776,7 +2776,6 @@ private:
void readBoundaryConditions_()
{
nonTrivialBoundaryConditions_ = false;
const auto& simulator = this->simulator();
const auto& vanguard = simulator.vanguard();
const auto& bcconfig = vanguard.eclState().getSimulationConfig().bcconfig();
@ -3028,7 +3027,7 @@ private:
std::vector<bool> freebcZ_;
std::vector<bool> freebcZMinus_;
bool nonTrivialBoundaryConditions_;
bool nonTrivialBoundaryConditions_ = false;
BCData<RateVector> massratebc_;
};