From ef27c1d11052b9af3a1738daeec55c37bfb2c5a8 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Tue, 28 Jan 2020 11:16:31 +0100 Subject: [PATCH] use compressed field properties setting up ThermalLawManager --- ebos/eclproblem.hh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ebos/eclproblem.hh b/ebos/eclproblem.hh index 54033b190..9025567c7 100644 --- a/ebos/eclproblem.hh +++ b/ebos/eclproblem.hh @@ -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 compressedToCartesianElemIdx(numDof); - for (unsigned elemIdx = 0; elemIdx < numDof; ++elemIdx) - compressedToCartesianElemIdx[elemIdx] = vanguard.cartesianIndex(elemIdx); - thermalLawManager_ = std::make_shared(); - thermalLawManager_->initParamsForElements(eclState, compressedToCartesianElemIdx); + thermalLawManager_->initParamsForElements(eclState, this->model().numGridDof()); } void updateReferencePorosity_()