use compressed field properties setting up ThermalLawManager

This commit is contained in:
Arne Morten Kvarving 2020-01-28 11:16:31 +01:00
parent 3c050f4dda
commit ef27c1d110

View File

@ -2347,13 +2347,8 @@ private:
const auto& eclState = vanguard.eclState();
// fluid-matrix interactions (saturation functions; relperm/capillary pressure)
size_t numDof = this->model().numGridDof();
std::vector<int> compressedToCartesianElemIdx(numDof);
for (unsigned elemIdx = 0; elemIdx < numDof; ++elemIdx)
compressedToCartesianElemIdx[elemIdx] = vanguard.cartesianIndex(elemIdx);
thermalLawManager_ = std::make_shared<EclThermalLawManager>();
thermalLawManager_->initParamsForElements(eclState, compressedToCartesianElemIdx);
thermalLawManager_->initParamsForElements(eclState, this->model().numGridDof());
}
void updateReferencePorosity_()