From 6abcbf60e2fff4534d4ffa8951a76f701e00a3d7 Mon Sep 17 00:00:00 2001 From: Kai Bao Date: Fri, 12 Nov 2021 15:23:33 +0100 Subject: [PATCH] some small changes, not functionality change. --- tests/test_chiflash.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/test_chiflash.cpp b/tests/test_chiflash.cpp index f81f2e0a3..485e805d4 100644 --- a/tests/test_chiflash.cpp +++ b/tests/test_chiflash.cpp @@ -51,7 +51,6 @@ void testChiFlash() typedef Opm::CompositionalFluidState FluidState; // From co2-compositional branch, it uses - typename FluidSystem::template ParameterCache paramCache; // typedef typename FluidSystem::template ParameterCache ParameterCache; FluidState fs; @@ -72,10 +71,13 @@ void testChiFlash() fs.setTemperature(303); // ParameterCache paramCache; - paramCache.updatePhase(fs, FluidSystem::oilPhaseIdx); - paramCache.updatePhase(fs, FluidSystem::gasPhaseIdx); - fs.setDensity(FluidSystem::oilPhaseIdx, FluidSystem::density(fs, paramCache, FluidSystem::oilPhaseIdx)); - fs.setDensity(FluidSystem::gasPhaseIdx, FluidSystem::density(fs, paramCache, FluidSystem::gasPhaseIdx)); + { + typename FluidSystem::template ParameterCache paramCache; + paramCache.updatePhase(fs, FluidSystem::oilPhaseIdx); + paramCache.updatePhase(fs, FluidSystem::gasPhaseIdx); + fs.setDensity(FluidSystem::oilPhaseIdx, FluidSystem::density(fs, paramCache, FluidSystem::oilPhaseIdx)); + fs.setDensity(FluidSystem::gasPhaseIdx, FluidSystem::density(fs, paramCache, FluidSystem::gasPhaseIdx)); + } ComponentVector zInit(0.); // TODO; zInit needs to be normalized. {