From 729d6cf30e864c602012612a34da3ca4ed85166e Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Fri, 24 Nov 2017 10:52:57 +0100 Subject: [PATCH] Adress PR review issues 2 --- tests/test_equil.cpp | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/tests/test_equil.cpp b/tests/test_equil.cpp index 255608c3..5e33ae53 100644 --- a/tests/test_equil.cpp +++ b/tests/test_equil.cpp @@ -88,9 +88,9 @@ static void initDefaultFluidSystem() { { 6.21542e+07, 1 } }; - double rhoRefO = 700; // [kg] - double rhoRefG = 1000; // [kg] - double rhoRefW = 1000; // [kg] + double rhoRefO = 700; // [kg/m3] + double rhoRefG = 1000; // [kg/m3] + double rhoRefW = 1000; // [kg/m3] FluidSystem::initBegin(/*numPvtRegions=*/1); FluidSystem::setEnableDissolvedGas(false); @@ -125,17 +125,10 @@ static void initDefaultFluidSystem() { oilPvt->initEnd(); waterPvt->initEnd(); - typedef std::shared_ptr > GasPvtSharedPtr; - FluidSystem::setGasPvt(GasPvtSharedPtr(gasPvt)); - - typedef std::shared_ptr > OilPvtSharedPtr; - FluidSystem::setOilPvt(OilPvtSharedPtr(oilPvt)); - - typedef std::shared_ptr > WaterPvtSharedPtr; - FluidSystem::setWaterPvt(WaterPvtSharedPtr(waterPvt)); - + FluidSystem::setGasPvt(std::move(gasPvt)); + FluidSystem::setOilPvt(std::move(oilPvt)); + FluidSystem::setWaterPvt(std::move(waterPvt)); FluidSystem::initEnd(); - } }