mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
ECL problem: fix "unused variable" warnings for optimized builds
This commit is contained in:
parent
8b6a68f8fd
commit
6f9eb5a29c
@ -674,8 +674,6 @@ private:
|
||||
const auto &grid = this->simulator().gridManager().grid();
|
||||
|
||||
size_t numDof = this->model().numDof();
|
||||
const auto &cartSize = grid.logicalCartesianSize();
|
||||
size_t numCartesianCells = cartSize[0] * cartSize[1] * cartSize[2];
|
||||
|
||||
initialFluidStates_.resize(numDof);
|
||||
|
||||
@ -714,10 +712,14 @@ private:
|
||||
deck->getKeyword("RS")->getSIDoubleData();
|
||||
|
||||
// make sure that the size of the data arrays is correct
|
||||
#ifndef NDEBUG
|
||||
const auto &cartSize = grid.logicalCartesianSize();
|
||||
size_t numCartesianCells = cartSize[0] * cartSize[1] * cartSize[2];
|
||||
assert(waterSaturationData.size() == numCartesianCells);
|
||||
assert(gasSaturationData.size() == numCartesianCells);
|
||||
assert(pressureData.size() == numCartesianCells);
|
||||
assert(rsData.size() == numCartesianCells);
|
||||
#endif
|
||||
|
||||
// calculate the initial fluid states
|
||||
for (size_t dofIdx = 0; dofIdx < numDof; ++dofIdx) {
|
||||
|
Loading…
Reference in New Issue
Block a user