2015-06-18 06:47:07 -05:00
|
|
|
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
|
|
// vi: set et ts=4 sw=4 sts=4:
|
2013-12-02 09:31:53 -06:00
|
|
|
/*
|
|
|
|
This file is part of the Open Porous Media project (OPM).
|
|
|
|
|
|
|
|
OPM is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
OPM is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with OPM. If not, see <http://www.gnu.org/licenses/>.
|
2016-03-14 08:11:22 -05:00
|
|
|
|
|
|
|
Consult the COPYING file in the top-level source directory of this
|
|
|
|
module for the precise wording of the license and the list of
|
|
|
|
copyright holders.
|
2013-12-02 09:31:53 -06:00
|
|
|
*/
|
2013-05-30 11:44:10 -05:00
|
|
|
/*!
|
|
|
|
* \file
|
|
|
|
*
|
|
|
|
* \brief This test makes sure that the programming interface is
|
2013-12-03 04:56:45 -06:00
|
|
|
* observed by all fluid systems
|
2013-05-30 11:44:10 -05:00
|
|
|
*/
|
|
|
|
#include "config.h"
|
|
|
|
|
2016-01-29 04:55:12 -06:00
|
|
|
#include <opm/material/checkFluidSystem.hpp>
|
2016-06-02 11:20:16 -05:00
|
|
|
#include <opm/material/densead/Evaluation.hpp>
|
|
|
|
#include <opm/material/densead/Math.hpp>
|
2015-05-21 08:33:16 -05:00
|
|
|
|
2013-05-30 11:44:10 -05:00
|
|
|
// include all fluid systems in opm-material
|
2014-05-08 09:53:53 -05:00
|
|
|
#include <opm/material/fluidsystems/SinglePhaseFluidSystem.hpp>
|
|
|
|
#include <opm/material/fluidsystems/TwoPhaseImmiscibleFluidSystem.hpp>
|
2013-09-10 07:55:59 -05:00
|
|
|
#include <opm/material/fluidsystems/BlackOilFluidSystem.hpp>
|
|
|
|
#include <opm/material/fluidsystems/BrineCO2FluidSystem.hpp>
|
|
|
|
#include <opm/material/fluidsystems/H2ON2FluidSystem.hpp>
|
|
|
|
#include <opm/material/fluidsystems/H2ON2LiquidPhaseFluidSystem.hpp>
|
|
|
|
#include <opm/material/fluidsystems/H2OAirFluidSystem.hpp>
|
|
|
|
#include <opm/material/fluidsystems/H2OAirMesityleneFluidSystem.hpp>
|
|
|
|
#include <opm/material/fluidsystems/H2OAirXyleneFluidSystem.hpp>
|
2013-05-30 11:44:10 -05:00
|
|
|
|
2018-01-04 08:25:11 -06:00
|
|
|
#include <opm/material/thermal/FluidThermalConductionLaw.hpp>
|
2017-12-11 07:06:53 -06:00
|
|
|
|
2013-05-30 11:44:10 -05:00
|
|
|
// include all fluid states
|
2013-09-10 07:55:59 -05:00
|
|
|
#include <opm/material/fluidstates/PressureOverlayFluidState.hpp>
|
|
|
|
#include <opm/material/fluidstates/SaturationOverlayFluidState.hpp>
|
|
|
|
#include <opm/material/fluidstates/TemperatureOverlayFluidState.hpp>
|
|
|
|
#include <opm/material/fluidstates/CompositionalFluidState.hpp>
|
|
|
|
#include <opm/material/fluidstates/NonEquilibriumFluidState.hpp>
|
|
|
|
#include <opm/material/fluidstates/ImmiscibleFluidState.hpp>
|
2015-07-28 10:24:27 -05:00
|
|
|
#include <opm/material/fluidstates/SimpleModularFluidState.hpp>
|
2020-07-02 06:42:58 -05:00
|
|
|
#include <opm/material/fluidstates/BlackOilFluidState.hpp>
|
2013-05-30 11:44:10 -05:00
|
|
|
|
2015-05-21 08:33:16 -05:00
|
|
|
// include the tables for CO2 which are delivered with opm-material by default
|
2015-04-27 09:34:36 -05:00
|
|
|
#include <opm/material/common/UniformTabulated2DFunction.hpp>
|
2013-09-10 07:55:59 -05:00
|
|
|
|
2020-03-25 12:32:46 -05:00
|
|
|
#include <opm/parser/eclipse/Python/Python.hpp>
|
|
|
|
|
2015-09-22 04:20:55 -05:00
|
|
|
#include <dune/common/parallel/mpihelper.hh>
|
2015-11-10 04:11:24 -06:00
|
|
|
|
2015-11-18 05:44:33 -06:00
|
|
|
// check that the blackoil fluid system implements all non-standard functions
|
|
|
|
template <class Evaluation, class FluidSystem>
|
|
|
|
void ensureBlackoilApi()
|
|
|
|
{
|
|
|
|
// here we don't want to call these methods at runtime, we just want to make sure
|
|
|
|
// that they compile
|
|
|
|
while (false) {
|
2018-03-05 05:48:09 -06:00
|
|
|
#if HAVE_ECL_INPUT
|
2020-03-31 03:46:17 -05:00
|
|
|
auto python = std::make_shared<Opm::Python>();
|
2016-10-13 07:49:48 -05:00
|
|
|
Opm::Deck deck;
|
|
|
|
Opm::EclipseState eclState(deck);
|
2020-03-25 12:32:46 -05:00
|
|
|
Opm::Schedule schedule(deck, eclState, python);
|
2020-03-03 06:58:03 -06:00
|
|
|
FluidSystem::initFromState(eclState, schedule);
|
2015-11-18 05:44:33 -06:00
|
|
|
#endif
|
|
|
|
|
2016-01-04 08:31:30 -06:00
|
|
|
typedef typename FluidSystem::Scalar Scalar;
|
2020-07-02 06:42:58 -05:00
|
|
|
typedef Opm::BlackOilFluidState<Evaluation, FluidSystem> FluidState;
|
2016-01-04 08:31:30 -06:00
|
|
|
FluidState fluidState;
|
|
|
|
Evaluation XoG = 0.0;
|
|
|
|
Evaluation XgO = 0.0;
|
|
|
|
Evaluation Rs = 0.0;
|
|
|
|
Evaluation Rv = 0.0;
|
2016-01-04 08:31:43 -06:00
|
|
|
Evaluation dummy;
|
2015-11-18 05:44:33 -06:00
|
|
|
|
2016-01-04 08:31:28 -06:00
|
|
|
// some additional typedefs
|
|
|
|
typedef typename FluidSystem::OilPvt OilPvt;
|
|
|
|
typedef typename FluidSystem::GasPvt GasPvt;
|
|
|
|
typedef typename FluidSystem::WaterPvt WaterPvt;
|
|
|
|
|
2016-01-04 08:31:30 -06:00
|
|
|
// check the black-oil specific enums
|
|
|
|
static_assert(FluidSystem::numPhases == 3, "");
|
|
|
|
static_assert(FluidSystem::numComponents == 3, "");
|
|
|
|
|
|
|
|
static_assert(0 <= FluidSystem::oilPhaseIdx && FluidSystem::oilPhaseIdx < 3, "");
|
|
|
|
static_assert(0 <= FluidSystem::gasPhaseIdx && FluidSystem::gasPhaseIdx < 3, "");
|
|
|
|
static_assert(0 <= FluidSystem::waterPhaseIdx && FluidSystem::waterPhaseIdx < 3, "");
|
|
|
|
|
|
|
|
static_assert(0 <= FluidSystem::oilCompIdx && FluidSystem::oilCompIdx < 3, "");
|
|
|
|
static_assert(0 <= FluidSystem::gasCompIdx && FluidSystem::gasCompIdx < 3, "");
|
|
|
|
static_assert(0 <= FluidSystem::waterCompIdx && FluidSystem::waterCompIdx < 3, "");
|
|
|
|
|
2015-11-18 05:44:33 -06:00
|
|
|
// check the non-parser initialization
|
2016-01-04 08:31:28 -06:00
|
|
|
std::shared_ptr<OilPvt> oilPvt;
|
|
|
|
std::shared_ptr<GasPvt> gasPvt;
|
|
|
|
std::shared_ptr<WaterPvt> waterPvt;
|
2015-11-18 05:44:33 -06:00
|
|
|
|
|
|
|
unsigned numPvtRegions = 2;
|
|
|
|
FluidSystem::initBegin(numPvtRegions);
|
|
|
|
FluidSystem::setEnableDissolvedGas(true);
|
|
|
|
FluidSystem::setEnableVaporizedOil(true);
|
|
|
|
FluidSystem::setGasPvt(gasPvt);
|
|
|
|
FluidSystem::setOilPvt(oilPvt);
|
|
|
|
FluidSystem::setWaterPvt(waterPvt);
|
|
|
|
FluidSystem::setReferenceDensities(/*oil=*/600.0,
|
|
|
|
/*water=*/1000.0,
|
|
|
|
/*gas=*/1.0,
|
|
|
|
/*regionIdx=*/0);
|
|
|
|
FluidSystem::initEnd();
|
|
|
|
|
|
|
|
// the molarMass() method has an optional argument for the PVT region
|
2017-01-18 09:53:58 -06:00
|
|
|
unsigned numRegions OPM_UNUSED = FluidSystem::numRegions();
|
|
|
|
Scalar Mg OPM_UNUSED = FluidSystem::molarMass(FluidSystem::gasCompIdx,
|
2016-01-04 08:31:30 -06:00
|
|
|
/*regionIdx=*/0);
|
2017-01-18 09:53:58 -06:00
|
|
|
bool b1 OPM_UNUSED = FluidSystem::enableDissolvedGas();
|
|
|
|
bool b2 OPM_UNUSED = FluidSystem::enableVaporizedOil();
|
|
|
|
Scalar rhoRefOil OPM_UNUSED = FluidSystem::referenceDensity(FluidSystem::oilPhaseIdx,
|
2016-01-04 08:31:30 -06:00
|
|
|
/*regionIdx=*/0);
|
2015-11-18 05:44:33 -06:00
|
|
|
dummy = FluidSystem::convertXoGToRs(XoG, /*regionIdx=*/0);
|
|
|
|
dummy = FluidSystem::convertXgOToRv(XgO, /*regionIdx=*/0);
|
2016-01-04 08:31:28 -06:00
|
|
|
dummy = FluidSystem::convertXoGToxoG(XoG, /*regionIdx=*/0);
|
|
|
|
dummy = FluidSystem::convertXgOToxgO(XgO, /*regionIdx=*/0);
|
|
|
|
dummy = FluidSystem::convertRsToXoG(Rs, /*regionIdx=*/0);
|
|
|
|
dummy = FluidSystem::convertRvToXgO(Rv, /*regionIdx=*/0);
|
2016-01-04 08:31:30 -06:00
|
|
|
|
|
|
|
for (unsigned phaseIdx = 0; phaseIdx < FluidSystem::numPhases; ++ phaseIdx) {
|
|
|
|
dummy = FluidSystem::density(fluidState, phaseIdx, /*regionIdx=*/0);
|
|
|
|
dummy = FluidSystem::saturatedDensity(fluidState, phaseIdx, /*regionIdx=*/0);
|
2016-01-29 04:55:20 -06:00
|
|
|
dummy = FluidSystem::inverseFormationVolumeFactor(fluidState, phaseIdx, /*regionIdx=*/0);
|
|
|
|
dummy = FluidSystem::saturatedInverseFormationVolumeFactor(fluidState, phaseIdx, /*regionIdx=*/0);
|
2016-01-04 08:31:30 -06:00
|
|
|
dummy = FluidSystem::viscosity(fluidState, phaseIdx, /*regionIdx=*/0);
|
|
|
|
dummy = FluidSystem::saturatedDissolutionFactor(fluidState, phaseIdx, /*regionIdx=*/0);
|
2016-06-29 04:22:35 -05:00
|
|
|
dummy = FluidSystem::saturatedDissolutionFactor(fluidState, phaseIdx, /*regionIdx=*/0, /*maxSo=*/1.0);
|
2016-01-04 08:31:30 -06:00
|
|
|
dummy = FluidSystem::saturationPressure(fluidState, phaseIdx, /*regionIdx=*/0);
|
2016-06-29 04:22:35 -05:00
|
|
|
for (unsigned compIdx = 0; compIdx < FluidSystem::numComponents; ++ compIdx)
|
2016-01-04 08:31:30 -06:00
|
|
|
dummy = FluidSystem::fugacityCoefficient(fluidState, phaseIdx, compIdx, /*regionIdx=*/0);
|
|
|
|
}
|
|
|
|
|
2016-01-04 08:31:43 -06:00
|
|
|
// prevent GCC from producing a "variable assigned but unused" warning
|
|
|
|
dummy = 2.0*dummy;
|
|
|
|
|
|
|
|
|
2016-01-04 08:31:30 -06:00
|
|
|
// the "not considered safe to use directly" API
|
2017-01-18 10:04:59 -06:00
|
|
|
const OilPvt& oilPvt2 OPM_UNUSED = FluidSystem::oilPvt();
|
|
|
|
const GasPvt& gasPvt2 OPM_UNUSED = FluidSystem::gasPvt();
|
|
|
|
const WaterPvt& waterPvt2 OPM_UNUSED = FluidSystem::waterPvt();
|
2015-11-18 05:44:33 -06:00
|
|
|
}
|
|
|
|
}
|
2015-11-10 04:11:24 -06:00
|
|
|
|
2015-05-21 08:33:16 -05:00
|
|
|
// check the API of all fluid states
|
|
|
|
template <class Scalar>
|
|
|
|
void testAllFluidStates()
|
2013-05-30 11:44:10 -05:00
|
|
|
{
|
2018-07-27 05:45:59 -05:00
|
|
|
typedef Opm::H2ON2FluidSystem<Scalar> FluidSystem;
|
2013-05-30 11:44:10 -05:00
|
|
|
|
2015-07-28 10:24:27 -05:00
|
|
|
// SimpleModularFluidState
|
|
|
|
{ Opm::SimpleModularFluidState<Scalar,
|
|
|
|
/*numPhases=*/2,
|
|
|
|
/*numComponents=*/0,
|
|
|
|
/*FluidSystem=*/void,
|
|
|
|
/*storePressure=*/false,
|
|
|
|
/*storeTemperature=*/false,
|
|
|
|
/*storeComposition=*/false,
|
|
|
|
/*storeFugacity=*/false,
|
|
|
|
/*storeSaturation=*/false,
|
|
|
|
/*storeDensity=*/false,
|
|
|
|
/*storeViscosity=*/false,
|
|
|
|
/*storeEnthalpy=*/false> fs;
|
|
|
|
|
|
|
|
checkFluidState<Scalar>(fs); }
|
|
|
|
|
|
|
|
{ Opm::SimpleModularFluidState<Scalar,
|
|
|
|
/*numPhases=*/2,
|
|
|
|
/*numComponents=*/2,
|
|
|
|
FluidSystem,
|
|
|
|
/*storePressure=*/true,
|
|
|
|
/*storeTemperature=*/true,
|
|
|
|
/*storeComposition=*/true,
|
|
|
|
/*storeFugacity=*/true,
|
|
|
|
/*storeSaturation=*/true,
|
|
|
|
/*storeDensity=*/true,
|
|
|
|
/*storeViscosity=*/true,
|
|
|
|
/*storeEnthalpy=*/true> fs;
|
|
|
|
|
|
|
|
checkFluidState<Scalar>(fs); }
|
|
|
|
|
2015-05-21 08:33:16 -05:00
|
|
|
// CompositionalFluidState
|
|
|
|
{ Opm::CompositionalFluidState<Scalar, FluidSystem> fs;
|
|
|
|
checkFluidState<Scalar>(fs); }
|
2013-05-30 11:44:10 -05:00
|
|
|
|
2015-05-21 08:33:16 -05:00
|
|
|
// NonEquilibriumFluidState
|
|
|
|
{ Opm::NonEquilibriumFluidState<Scalar, FluidSystem> fs;
|
|
|
|
checkFluidState<Scalar>(fs); }
|
2013-05-30 11:44:10 -05:00
|
|
|
|
2015-05-21 08:33:16 -05:00
|
|
|
// ImmiscibleFluidState
|
|
|
|
{ Opm::ImmiscibleFluidState<Scalar, FluidSystem> fs;
|
|
|
|
checkFluidState<Scalar>(fs); }
|
2013-05-30 11:44:10 -05:00
|
|
|
|
2015-05-21 08:33:16 -05:00
|
|
|
typedef Opm::CompositionalFluidState<Scalar, FluidSystem> BaseFluidState;
|
|
|
|
BaseFluidState baseFs;
|
2013-05-30 11:44:10 -05:00
|
|
|
|
2015-05-21 08:33:16 -05:00
|
|
|
// TemperatureOverlayFluidState
|
|
|
|
{ Opm::TemperatureOverlayFluidState<BaseFluidState> fs(baseFs);
|
|
|
|
checkFluidState<Scalar>(fs); }
|
2013-05-30 11:44:10 -05:00
|
|
|
|
2015-05-21 08:33:16 -05:00
|
|
|
// PressureOverlayFluidState
|
|
|
|
{ Opm::PressureOverlayFluidState<BaseFluidState> fs(baseFs);
|
|
|
|
checkFluidState<Scalar>(fs); }
|
2013-05-30 11:44:10 -05:00
|
|
|
|
2015-05-21 08:33:16 -05:00
|
|
|
// SaturationOverlayFluidState
|
|
|
|
{ Opm::SaturationOverlayFluidState<BaseFluidState> fs(baseFs);
|
|
|
|
checkFluidState<Scalar>(fs); }
|
|
|
|
}
|
2013-05-30 11:44:10 -05:00
|
|
|
|
2016-02-12 10:26:59 -06:00
|
|
|
template <class Scalar, class FluidStateEval, class LhsEval>
|
2015-05-21 08:33:16 -05:00
|
|
|
void testAllFluidSystems()
|
|
|
|
{
|
2015-09-22 09:44:28 -05:00
|
|
|
typedef Opm::LiquidPhase<Scalar, Opm::H2O<Scalar>> Liquid;
|
|
|
|
typedef Opm::GasPhase<Scalar, Opm::N2<Scalar>> Gas;
|
2013-05-30 11:44:10 -05:00
|
|
|
|
|
|
|
// black-oil
|
2015-11-18 05:44:33 -06:00
|
|
|
{
|
2018-07-27 05:45:59 -05:00
|
|
|
typedef Opm::BlackOilFluidSystem<Scalar> FluidSystem;
|
2016-02-12 10:26:59 -06:00
|
|
|
if (false) checkFluidSystem<Scalar, FluidSystem, FluidStateEval, LhsEval>();
|
2015-11-18 05:44:33 -06:00
|
|
|
|
2016-06-02 11:20:16 -05:00
|
|
|
typedef Opm::DenseAd::Evaluation<Scalar, 1> BlackoilDummyEval;
|
2015-11-18 05:44:33 -06:00
|
|
|
ensureBlackoilApi<Scalar, FluidSystem>();
|
|
|
|
ensureBlackoilApi<BlackoilDummyEval, FluidSystem>();
|
|
|
|
}
|
2013-05-30 11:44:10 -05:00
|
|
|
|
|
|
|
// Brine -- CO2
|
2020-09-07 04:26:22 -05:00
|
|
|
{ typedef Opm::BrineCO2FluidSystem<Scalar, CO2Tables> FluidSystem;
|
2016-02-12 10:26:59 -06:00
|
|
|
checkFluidSystem<Scalar, FluidSystem, FluidStateEval, LhsEval>(); }
|
2013-05-30 11:44:10 -05:00
|
|
|
|
|
|
|
// H2O -- N2
|
2018-07-27 05:45:59 -05:00
|
|
|
{ typedef Opm::H2ON2FluidSystem<Scalar> FluidSystem;
|
2016-02-12 10:26:59 -06:00
|
|
|
checkFluidSystem<Scalar, FluidSystem, FluidStateEval, LhsEval>(); }
|
2013-05-30 11:44:10 -05:00
|
|
|
|
|
|
|
// H2O -- N2 -- liquid phase
|
2018-07-27 05:45:59 -05:00
|
|
|
{ typedef Opm::H2ON2LiquidPhaseFluidSystem<Scalar> FluidSystem;
|
2016-02-12 10:26:59 -06:00
|
|
|
checkFluidSystem<Scalar, FluidSystem, FluidStateEval, LhsEval>(); }
|
2013-05-30 11:44:10 -05:00
|
|
|
|
|
|
|
// H2O -- Air
|
|
|
|
{ typedef Opm::SimpleH2O<Scalar> H2O;
|
2018-07-27 05:45:59 -05:00
|
|
|
typedef Opm::H2OAirFluidSystem<Scalar, H2O> FluidSystem;
|
2016-02-12 10:26:59 -06:00
|
|
|
checkFluidSystem<Scalar, FluidSystem, FluidStateEval, LhsEval>(); }
|
2013-05-30 11:44:10 -05:00
|
|
|
|
|
|
|
// H2O -- Air -- Mesitylene
|
2018-07-27 05:45:59 -05:00
|
|
|
{ typedef Opm::H2OAirMesityleneFluidSystem<Scalar> FluidSystem;
|
2016-02-12 10:26:59 -06:00
|
|
|
checkFluidSystem<Scalar, FluidSystem, FluidStateEval, LhsEval>(); }
|
2013-05-30 11:44:10 -05:00
|
|
|
|
|
|
|
// H2O -- Air -- Xylene
|
2018-07-27 05:45:59 -05:00
|
|
|
{ typedef Opm::H2OAirXyleneFluidSystem<Scalar> FluidSystem;
|
2016-02-12 10:26:59 -06:00
|
|
|
checkFluidSystem<Scalar, FluidSystem, FluidStateEval, LhsEval>(); }
|
2013-05-30 11:44:10 -05:00
|
|
|
|
|
|
|
// 2p-immiscible
|
2018-07-27 05:45:59 -05:00
|
|
|
{ typedef Opm::TwoPhaseImmiscibleFluidSystem<Scalar, Liquid, Liquid> FluidSystem;
|
2016-02-12 10:26:59 -06:00
|
|
|
checkFluidSystem<Scalar, FluidSystem, FluidStateEval, LhsEval>(); }
|
2013-05-30 11:44:10 -05:00
|
|
|
|
2018-07-27 05:45:59 -05:00
|
|
|
{ typedef Opm::TwoPhaseImmiscibleFluidSystem<Scalar, Liquid, Gas> FluidSystem;
|
2016-02-12 10:26:59 -06:00
|
|
|
checkFluidSystem<Scalar, FluidSystem, FluidStateEval, LhsEval>(); }
|
2013-05-30 11:44:10 -05:00
|
|
|
|
2018-07-27 05:45:59 -05:00
|
|
|
{ typedef Opm::TwoPhaseImmiscibleFluidSystem<Scalar, Gas, Liquid> FluidSystem;
|
2016-02-12 10:26:59 -06:00
|
|
|
checkFluidSystem<Scalar, FluidSystem, FluidStateEval, LhsEval>(); }
|
2013-05-30 11:44:10 -05:00
|
|
|
|
|
|
|
// 1p
|
2018-07-27 05:45:59 -05:00
|
|
|
{ typedef Opm::SinglePhaseFluidSystem<Scalar, Liquid> FluidSystem;
|
2016-02-12 10:26:59 -06:00
|
|
|
checkFluidSystem<Scalar, FluidSystem, FluidStateEval, LhsEval>(); }
|
2013-05-30 11:44:10 -05:00
|
|
|
|
2018-07-27 05:45:59 -05:00
|
|
|
{ typedef Opm::SinglePhaseFluidSystem<Scalar, Gas> FluidSystem;
|
2016-02-12 10:26:59 -06:00
|
|
|
checkFluidSystem<Scalar, FluidSystem, FluidStateEval, LhsEval>(); }
|
2015-05-21 08:33:16 -05:00
|
|
|
}
|
|
|
|
|
2016-01-14 18:28:07 -06:00
|
|
|
template <class Scalar>
|
|
|
|
inline void testAll()
|
2015-05-21 08:33:16 -05:00
|
|
|
{
|
2016-06-02 11:20:16 -05:00
|
|
|
typedef Opm::DenseAd::Evaluation<Scalar, 3> Evaluation;
|
2015-05-21 08:33:16 -05:00
|
|
|
|
|
|
|
// ensure that all fluid states are API-compliant
|
|
|
|
testAllFluidStates<Scalar>();
|
|
|
|
testAllFluidStates<Evaluation>();
|
|
|
|
|
|
|
|
// ensure that all fluid systems are API-compliant: Each fluid system must be usable
|
|
|
|
// for both, scalars and function evaluations. The fluid systems for function
|
|
|
|
// evaluations must also be usable for scalars.
|
2016-02-12 10:26:59 -06:00
|
|
|
testAllFluidSystems<Scalar, /*FluidStateEval=*/Scalar, /*LhsEval=*/Scalar>();
|
|
|
|
testAllFluidSystems<Scalar, /*FluidStateEval=*/Evaluation, /*LhsEval=*/Evaluation>();
|
|
|
|
testAllFluidSystems<Scalar, /*FluidStateEval=*/Evaluation, /*LhsEval=*/Scalar>();
|
2016-01-14 18:28:07 -06:00
|
|
|
}
|
2013-05-30 11:44:10 -05:00
|
|
|
|
2016-01-14 18:28:07 -06:00
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
Dune::MPIHelper::instance(argc, argv);
|
2016-04-17 04:28:06 -05:00
|
|
|
|
|
|
|
testAll<double>();
|
|
|
|
testAll<float>();
|
|
|
|
|
2013-05-30 11:44:10 -05:00
|
|
|
return 0;
|
|
|
|
}
|