mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-27 11:16:28 -06:00
changed: remove embedded 'parameters' namespace in ParamGroup
inconsistent and unnecessary. this is purely a cosmetic change, the only exception was a function with the generic name 'split', which was renamed to splitParam to avoid confusion.
This commit is contained in:
parent
ce6801df7a
commit
ca2288ac37
@ -42,7 +42,7 @@
|
||||
|
||||
namespace
|
||||
{
|
||||
void warnIfUnusedParams(const Opm::parameter::ParameterGroup& param)
|
||||
void warnIfUnusedParams(const Opm::ParameterGroup& param)
|
||||
{
|
||||
if (param.anyUnused()) {
|
||||
std::cout << "-------------------- Warning: unused parameters: --------------------\n";
|
||||
@ -61,7 +61,7 @@ try
|
||||
{
|
||||
using namespace Opm;
|
||||
|
||||
parameter::ParameterGroup param(argc, argv);
|
||||
ParameterGroup param(argc, argv);
|
||||
|
||||
// Read grid.
|
||||
GridManager grid_manager(param.get<std::string>("grid_filename"));
|
||||
|
@ -40,7 +40,7 @@
|
||||
|
||||
namespace
|
||||
{
|
||||
void warnIfUnusedParams(const Opm::parameter::ParameterGroup& param)
|
||||
void warnIfUnusedParams(const Opm::ParameterGroup& param)
|
||||
{
|
||||
if (param.anyUnused()) {
|
||||
std::cout << "-------------------- Unused parameters: --------------------\n";
|
||||
@ -84,7 +84,7 @@ try
|
||||
using namespace Opm;
|
||||
|
||||
// Setup.
|
||||
parameter::ParameterGroup param(argc, argv);
|
||||
ParameterGroup param(argc, argv);
|
||||
std::cout << "--------------- Reading parameters ---------------" << std::endl;
|
||||
const std::string deck_filename = param.get<std::string>("deck_filename");
|
||||
Opm::ParseContext parseContext;
|
||||
|
@ -58,7 +58,7 @@
|
||||
|
||||
namespace
|
||||
{
|
||||
void warnIfUnusedParams(const Opm::parameter::ParameterGroup& param)
|
||||
void warnIfUnusedParams(const Opm::ParameterGroup& param)
|
||||
{
|
||||
if (param.anyUnused()) {
|
||||
std::cout << "-------------------- Warning: unused parameters: --------------------\n";
|
||||
@ -77,7 +77,7 @@ try
|
||||
{
|
||||
using namespace Opm;
|
||||
|
||||
parameter::ParameterGroup param(argc, argv);
|
||||
ParameterGroup param(argc, argv);
|
||||
|
||||
// Read grid.
|
||||
GridManager grid_manager(param.get<std::string>("grid_filename"));
|
||||
|
@ -40,7 +40,7 @@ namespace Opm
|
||||
|
||||
/// Construct solver.
|
||||
TofDiscGalReorder::TofDiscGalReorder(const UnstructuredGrid& grid,
|
||||
const parameter::ParameterGroup& param)
|
||||
const ParameterGroup& param)
|
||||
: grid_(grid),
|
||||
use_cvi_(false),
|
||||
use_limiter_(false),
|
||||
|
@ -32,9 +32,9 @@ namespace Opm
|
||||
{
|
||||
|
||||
class IncompPropertiesInterface;
|
||||
class ParameterGroup;
|
||||
class VelocityInterpolationInterface;
|
||||
class DGBasisInterface;
|
||||
namespace parameter { class ParameterGroup; }
|
||||
template <typename T> class SparseTable;
|
||||
|
||||
/// Implements a discontinuous Galerkin solver for
|
||||
@ -72,7 +72,7 @@ namespace Opm
|
||||
/// - AsSimultaneousPostProcess -- Apply to each cell independently, using un-
|
||||
/// limited solution in neighbouring cells.
|
||||
TofDiscGalReorder(const UnstructuredGrid& grid,
|
||||
const parameter::ParameterGroup& param);
|
||||
const ParameterGroup& param);
|
||||
|
||||
|
||||
/// Solve for time-of-flight.
|
||||
|
@ -59,7 +59,7 @@ namespace Opm
|
||||
|
||||
|
||||
|
||||
LinearSolverFactory::LinearSolverFactory(const parameter::ParameterGroup& param)
|
||||
LinearSolverFactory::LinearSolverFactory(const ParameterGroup& param)
|
||||
{
|
||||
#if HAVE_SUITESPARSE_UMFPACK_H
|
||||
std::string default_solver = "umfpack";
|
||||
|
@ -27,7 +27,7 @@
|
||||
namespace Opm
|
||||
{
|
||||
|
||||
namespace parameter { class ParameterGroup; }
|
||||
class ParameterGroup;
|
||||
|
||||
|
||||
/// Concrete class encapsulating any available linear solver.
|
||||
@ -55,7 +55,7 @@ namespace Opm
|
||||
/// Any further parameters are passed on to the constructors
|
||||
/// of the actual solver used, see LinearSolverUmfpack,
|
||||
/// LinearSolverIstl and LinearSolverPetsc for details.
|
||||
LinearSolverFactory(const parameter::ParameterGroup& param);
|
||||
LinearSolverFactory(const ParameterGroup& param);
|
||||
|
||||
/// Destructor.
|
||||
virtual ~LinearSolverFactory();
|
||||
|
@ -111,7 +111,7 @@ namespace Opm
|
||||
|
||||
|
||||
|
||||
LinearSolverIstl::LinearSolverIstl(const parameter::ParameterGroup& param)
|
||||
LinearSolverIstl::LinearSolverIstl(const ParameterGroup& param)
|
||||
: linsolver_residual_tolerance_(1e-8),
|
||||
linsolver_verbosity_(0),
|
||||
linsolver_type_(CG_AMG),
|
||||
|
@ -52,7 +52,7 @@ namespace Opm
|
||||
/// Construct from parameters
|
||||
/// Accepted parameters are, with defaults, listed in the
|
||||
/// default constructor.
|
||||
LinearSolverIstl(const parameter::ParameterGroup& param);
|
||||
LinearSolverIstl(const ParameterGroup& param);
|
||||
|
||||
/// Destructor.
|
||||
virtual ~LinearSolverIstl();
|
||||
|
@ -26,7 +26,7 @@
|
||||
namespace Opm
|
||||
{
|
||||
|
||||
BlackoilPropertiesBasic::BlackoilPropertiesBasic(const parameter::ParameterGroup& param,
|
||||
BlackoilPropertiesBasic::BlackoilPropertiesBasic(const ParameterGroup& param,
|
||||
const int dim,
|
||||
const int num_cells)
|
||||
{
|
||||
|
@ -43,7 +43,7 @@ namespace Opm
|
||||
/// - mu1, mu2, mu3 (1.0) -- Viscosity in cP
|
||||
/// - porosity (1.0) -- Porosity
|
||||
/// - permeability (100.0) -- Permeability in mD
|
||||
BlackoilPropertiesBasic(const parameter::ParameterGroup& param,
|
||||
BlackoilPropertiesBasic(const ParameterGroup& param,
|
||||
const int dim,
|
||||
const int num_cells);
|
||||
|
||||
|
@ -47,7 +47,7 @@ namespace Opm
|
||||
BlackoilPropertiesFromDeck::BlackoilPropertiesFromDeck(const Opm::Deck& deck,
|
||||
const Opm::EclipseState& eclState,
|
||||
const UnstructuredGrid& grid,
|
||||
const parameter::ParameterGroup& param,
|
||||
const ParameterGroup& param,
|
||||
bool init_rock)
|
||||
{
|
||||
std::vector<int> compressedToCartesianIdx
|
||||
@ -81,7 +81,7 @@ namespace Opm
|
||||
int number_of_cells,
|
||||
const int* global_cell,
|
||||
const int* cart_dims,
|
||||
const parameter::ParameterGroup& param,
|
||||
const ParameterGroup& param,
|
||||
bool init_rock)
|
||||
{
|
||||
std::vector<int> compressedToCartesianIdx
|
||||
@ -106,7 +106,7 @@ namespace Opm
|
||||
int number_of_cells,
|
||||
const int* global_cell,
|
||||
const int* cart_dims,
|
||||
const parameter::ParameterGroup& param,
|
||||
const ParameterGroup& param,
|
||||
bool init_rock)
|
||||
{
|
||||
init(deck,
|
||||
@ -151,7 +151,7 @@ namespace Opm
|
||||
int number_of_cells,
|
||||
const int* global_cell,
|
||||
const int* cart_dims,
|
||||
const parameter::ParameterGroup& param,
|
||||
const ParameterGroup& param,
|
||||
bool init_rock)
|
||||
{
|
||||
// retrieve the cell specific PVT table index from the deck
|
||||
|
@ -68,7 +68,7 @@ namespace Opm
|
||||
BlackoilPropertiesFromDeck(const Opm::Deck& deck,
|
||||
const Opm::EclipseState& eclState,
|
||||
const UnstructuredGrid& grid,
|
||||
const parameter::ParameterGroup& param,
|
||||
const ParameterGroup& param,
|
||||
bool init_rock=true);
|
||||
|
||||
BlackoilPropertiesFromDeck(const Opm::Deck& deck,
|
||||
@ -83,7 +83,7 @@ namespace Opm
|
||||
int number_of_cells,
|
||||
const int* global_cell,
|
||||
const int* cart_dims,
|
||||
const parameter::ParameterGroup& param,
|
||||
const ParameterGroup& param,
|
||||
bool init_rock=true);
|
||||
|
||||
BlackoilPropertiesFromDeck(const Opm::Deck& deck,
|
||||
@ -92,7 +92,7 @@ namespace Opm
|
||||
int number_of_cells,
|
||||
const int* global_cell,
|
||||
const int* cart_dims,
|
||||
const parameter::ParameterGroup& param,
|
||||
const ParameterGroup& param,
|
||||
bool init_rock=true);
|
||||
|
||||
/// Destructor.
|
||||
@ -304,7 +304,7 @@ namespace Opm
|
||||
int number_of_cells,
|
||||
const int* global_cell,
|
||||
const int* cart_dims,
|
||||
const parameter::ParameterGroup& param,
|
||||
const ParameterGroup& param,
|
||||
bool init_rock);
|
||||
|
||||
RockFromDeck rock_;
|
||||
|
@ -28,7 +28,7 @@
|
||||
namespace Opm
|
||||
{
|
||||
|
||||
IncompPropertiesBasic::IncompPropertiesBasic(const parameter::ParameterGroup& param,
|
||||
IncompPropertiesBasic::IncompPropertiesBasic(const ParameterGroup& param,
|
||||
const int dim,
|
||||
const int num_cells)
|
||||
{
|
||||
|
@ -51,7 +51,7 @@ namespace Opm
|
||||
/// - \c mu1 \c mu2, \c mu3 (1.0) -- Viscosity in cP.
|
||||
/// - \c porosity (1.0) -- Porosity.
|
||||
/// - \c permeability (100.0) -- Permeability in mD.
|
||||
IncompPropertiesBasic(const parameter::ParameterGroup& param,
|
||||
IncompPropertiesBasic(const ParameterGroup& param,
|
||||
const int dim,
|
||||
const int num_cells);
|
||||
|
||||
|
@ -33,7 +33,7 @@ namespace Opm
|
||||
}
|
||||
|
||||
|
||||
void PvtPropertiesBasic::init(const parameter::ParameterGroup& param)
|
||||
void PvtPropertiesBasic::init(const ParameterGroup& param)
|
||||
{
|
||||
int num_phases = param.getDefault("num_phases", 2);
|
||||
if (num_phases > 3 || num_phases < 1) {
|
||||
|
@ -44,7 +44,7 @@ namespace Opm
|
||||
/// - num_phases (2) -- Must be 1, 2 or 3.
|
||||
/// - rho1, rho2, rho3 (1.0e3) -- Density in kg/m^3
|
||||
/// - mu1, mu2, mu3 (1.0) -- Viscosity in cP
|
||||
void init(const parameter::ParameterGroup& param);
|
||||
void init(const ParameterGroup& param);
|
||||
|
||||
/// Initialize from arguments.
|
||||
/// Basic multi phase fluid pvt properties.
|
||||
|
@ -33,7 +33,7 @@
|
||||
namespace Opm
|
||||
{
|
||||
|
||||
RockCompressibility::RockCompressibility(const parameter::ParameterGroup& param)
|
||||
RockCompressibility::RockCompressibility(const ParameterGroup& param)
|
||||
: pref_(0.0),
|
||||
rock_comp_(0.0)
|
||||
{
|
||||
|
@ -27,7 +27,7 @@
|
||||
namespace Opm
|
||||
{
|
||||
|
||||
namespace parameter { class ParameterGroup; }
|
||||
class ParameterGroup;
|
||||
|
||||
class RockCompressibility
|
||||
{
|
||||
@ -41,7 +41,7 @@ namespace Opm
|
||||
/// Accepts the following parameters (with defaults).
|
||||
/// rock_compressibility_pref (100.0) [given in bar]
|
||||
/// rock_compressibility (0.0) [given in bar^{-1}]
|
||||
RockCompressibility(const parameter::ParameterGroup& param);
|
||||
RockCompressibility(const ParameterGroup& param);
|
||||
|
||||
/// Returns true if there are compressibility effects.
|
||||
bool isActive() const;
|
||||
|
@ -108,7 +108,7 @@ namespace Opm
|
||||
|
||||
|
||||
/// Initialize from parameters.
|
||||
void SaturationPropsBasic::init(const parameter::ParameterGroup& param)
|
||||
void SaturationPropsBasic::init(const ParameterGroup& param)
|
||||
{
|
||||
int num_phases = param.getDefault("num_phases", 2);
|
||||
if (num_phases > 2 || num_phases < 1) {
|
||||
|
@ -43,7 +43,7 @@ namespace Opm
|
||||
/// The following parameters are accepted (defaults):
|
||||
/// - num_phases (2) -- Must be 1 or 2.
|
||||
/// - relperm_func ("Linear") -- Must be "Constant", "Linear" or "Quadratic".
|
||||
void init(const parameter::ParameterGroup& param);
|
||||
void init(const ParameterGroup& param);
|
||||
|
||||
enum RelPermFunc { Constant, Linear, Quadratic };
|
||||
|
||||
|
@ -27,7 +27,7 @@ struct UnstructuredGrid;
|
||||
namespace Opm
|
||||
{
|
||||
|
||||
namespace parameter { class ParameterGroup; }
|
||||
class ParameterGroup;
|
||||
class IncompPropertiesInterface;
|
||||
class BlackoilPropertiesInterface;
|
||||
class SimulationDataContainer;
|
||||
@ -75,7 +75,7 @@ namespace Opm
|
||||
template <class State>
|
||||
void initStateBasic(const UnstructuredGrid& grid,
|
||||
const IncompPropertiesInterface& props,
|
||||
const parameter::ParameterGroup& param,
|
||||
const ParameterGroup& param,
|
||||
const double gravity,
|
||||
State& state);
|
||||
|
||||
@ -113,7 +113,7 @@ namespace Opm
|
||||
CCI begin_cell_centroids,
|
||||
int dimensions,
|
||||
const IncompPropertiesInterface& props,
|
||||
const parameter::ParameterGroup& param,
|
||||
const ParameterGroup& param,
|
||||
const double gravity,
|
||||
State& state);
|
||||
|
||||
@ -136,7 +136,7 @@ namespace Opm
|
||||
template <class State>
|
||||
void initStateBasic(const UnstructuredGrid& grid,
|
||||
const BlackoilPropertiesInterface& props,
|
||||
const parameter::ParameterGroup& param,
|
||||
const ParameterGroup& param,
|
||||
const double gravity,
|
||||
State& state);
|
||||
|
||||
@ -166,7 +166,7 @@ namespace Opm
|
||||
CCI begin_cell_centroids,
|
||||
int dimensions,
|
||||
const BlackoilPropertiesInterface& props,
|
||||
const parameter::ParameterGroup& param,
|
||||
const ParameterGroup& param,
|
||||
const double gravity,
|
||||
State& state);
|
||||
|
||||
|
@ -411,7 +411,7 @@ namespace Opm
|
||||
template <class State>
|
||||
void initStateBasic(const UnstructuredGrid& grid,
|
||||
const IncompPropertiesInterface& props,
|
||||
const parameter::ParameterGroup& param,
|
||||
const ParameterGroup& param,
|
||||
const double gravity,
|
||||
State& state)
|
||||
{
|
||||
@ -432,7 +432,7 @@ namespace Opm
|
||||
CCI begin_cell_centroids,
|
||||
int dimensions,
|
||||
const IncompPropertiesInterface& props,
|
||||
const parameter::ParameterGroup& param,
|
||||
const ParameterGroup& param,
|
||||
const double gravity,
|
||||
State& state)
|
||||
{
|
||||
@ -535,7 +535,7 @@ namespace Opm
|
||||
template <class State>
|
||||
void initStateBasic(const UnstructuredGrid& grid,
|
||||
const BlackoilPropertiesInterface& props,
|
||||
const parameter::ParameterGroup& param,
|
||||
const ParameterGroup& param,
|
||||
const double gravity,
|
||||
State& state)
|
||||
{
|
||||
@ -555,7 +555,7 @@ namespace Opm
|
||||
CCI begin_cell_centroids,
|
||||
int dimensions,
|
||||
const BlackoilPropertiesInterface& props,
|
||||
const parameter::ParameterGroup& param,
|
||||
const ParameterGroup& param,
|
||||
const double gravity,
|
||||
State& state)
|
||||
{
|
||||
|
@ -123,7 +123,7 @@ BOOST_AUTO_TEST_CASE (PhasePressure)
|
||||
std::shared_ptr<UnstructuredGrid>
|
||||
G(create_grid_cart3d(10, 1, 10), destroy_grid);
|
||||
|
||||
Opm::parameter::ParameterGroup param;
|
||||
Opm::ParameterGroup param;
|
||||
{
|
||||
using Opm::unit::kilogram;
|
||||
using Opm::unit::meter;
|
||||
@ -169,7 +169,7 @@ BOOST_AUTO_TEST_CASE (CellSubset)
|
||||
std::shared_ptr<UnstructuredGrid>
|
||||
G(create_grid_cart3d(10, 1, 10), destroy_grid);
|
||||
|
||||
Opm::parameter::ParameterGroup param;
|
||||
Opm::ParameterGroup param;
|
||||
{
|
||||
using Opm::unit::kilogram;
|
||||
using Opm::unit::meter;
|
||||
@ -272,7 +272,7 @@ BOOST_AUTO_TEST_CASE (RegMapping)
|
||||
std::shared_ptr<UnstructuredGrid>
|
||||
G(create_grid_cart3d(10, 1, 10), destroy_grid);
|
||||
|
||||
Opm::parameter::ParameterGroup param;
|
||||
Opm::ParameterGroup param;
|
||||
{
|
||||
using Opm::unit::kilogram;
|
||||
using Opm::unit::meter;
|
||||
|
@ -109,7 +109,7 @@ void createRandomVectors(int NN, std::vector<double>& x, std::vector<double>& b,
|
||||
}
|
||||
}
|
||||
|
||||
void run_test(const Opm::parameter::ParameterGroup& param)
|
||||
void run_test(const Opm::ParameterGroup& param)
|
||||
{
|
||||
int N=4;
|
||||
auto mat = createLaplacian(N);
|
||||
@ -126,7 +126,7 @@ void run_test(const Opm::parameter::ParameterGroup& param)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(DefaultTest)
|
||||
{
|
||||
Opm::parameter::ParameterGroup param;
|
||||
Opm::ParameterGroup param;
|
||||
param.insertParameter(std::string("linsolver_max_iterations"), std::string("200"));
|
||||
param.insertParameter(std::string("linsolver_verbosity"), std::string("2"));
|
||||
run_test(param);
|
||||
@ -135,7 +135,7 @@ BOOST_AUTO_TEST_CASE(DefaultTest)
|
||||
#ifdef HAVE_DUNE_ISTL
|
||||
BOOST_AUTO_TEST_CASE(CGAMGTest)
|
||||
{
|
||||
Opm::parameter::ParameterGroup param;
|
||||
Opm::ParameterGroup param;
|
||||
param.insertParameter(std::string("linsolver"), std::string("istl"));
|
||||
param.insertParameter(std::string("linsolver_type"), std::string("1"));
|
||||
param.insertParameter(std::string("linsolver_max_iterations"), std::string("200"));
|
||||
@ -145,7 +145,7 @@ BOOST_AUTO_TEST_CASE(CGAMGTest)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(CGILUTest)
|
||||
{
|
||||
Opm::parameter::ParameterGroup param;
|
||||
Opm::ParameterGroup param;
|
||||
param.insertParameter(std::string("linsolver"), std::string("istl"));
|
||||
param.insertParameter(std::string("linsolver_type"), std::string("0"));
|
||||
param.insertParameter(std::string("linsolver_max_iterations"), std::string("200"));
|
||||
@ -155,7 +155,7 @@ BOOST_AUTO_TEST_CASE(CGILUTest)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(BiCGILUTest)
|
||||
{
|
||||
Opm::parameter::ParameterGroup param;
|
||||
Opm::ParameterGroup param;
|
||||
param.insertParameter(std::string("linsolver"), std::string("istl"));
|
||||
param.insertParameter(std::string("linsolver_type"), std::string("2"));
|
||||
param.insertParameter(std::string("linsolver_max_iterations"), std::string("200"));
|
||||
@ -166,7 +166,7 @@ BOOST_AUTO_TEST_CASE(BiCGILUTest)
|
||||
#if defined(HAS_DUNE_FAST_AMG) || DUNE_VERSION_NEWER(DUNE_ISTL, 2, 3)
|
||||
BOOST_AUTO_TEST_CASE(FastAMGTest)
|
||||
{
|
||||
Opm::parameter::ParameterGroup param;
|
||||
Opm::ParameterGroup param;
|
||||
param.insertParameter(std::string("linsolver"), std::string("istl"));
|
||||
param.insertParameter(std::string("linsolver_type"), std::string("3"));
|
||||
param.insertParameter(std::string("linsolver_max_iterations"), std::string("200"));
|
||||
@ -176,7 +176,7 @@ BOOST_AUTO_TEST_CASE(FastAMGTest)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(KAMGTest)
|
||||
{
|
||||
Opm::parameter::ParameterGroup param;
|
||||
Opm::ParameterGroup param;
|
||||
param.insertParameter(std::string("linsolver"), std::string("istl"));
|
||||
param.insertParameter(std::string("linsolver_type"), std::string("4"));
|
||||
param.insertParameter(std::string("linsolver_max_iterations"), std::string("200"));
|
||||
@ -188,7 +188,7 @@ BOOST_AUTO_TEST_CASE(KAMGTest)
|
||||
#if HAVE_PETSC
|
||||
BOOST_AUTO_TEST_CASE(PETScTest)
|
||||
{
|
||||
Opm::parameter::ParameterGroup param;
|
||||
Opm::ParameterGroup param;
|
||||
param.insertParameter(std::string("linsolver"), std::string("petsc"));
|
||||
param.insertParameter(std::string("ksp_type"), std::string("cg"));
|
||||
param.insertParameter(std::string("pc_type"), std::string("jacobi"));
|
||||
|
@ -42,7 +42,7 @@
|
||||
#include <cstdlib>
|
||||
#include <string>
|
||||
|
||||
void run_test(const Opm::parameter::ParameterGroup& param)
|
||||
void run_test(const Opm::ParameterGroup& param)
|
||||
{
|
||||
int N=100;
|
||||
int start, end, istart, iend;
|
||||
@ -63,7 +63,7 @@ void run_test(const Opm::parameter::ParameterGroup& param)
|
||||
#ifdef HAVE_DUNE_ISTL
|
||||
BOOST_AUTO_TEST_CASE(CGAMGTest)
|
||||
{
|
||||
Opm::parameter::ParameterGroup param;
|
||||
Opm::ParameterGroup param;
|
||||
param.insertParameter(std::string("linsolver"), std::string("istl"));
|
||||
param.insertParameter(std::string("linsolver_type"), std::string("1"));
|
||||
param.insertParameter(std::string("linsolver_max_iterations"), std::string("200"));
|
||||
@ -72,7 +72,7 @@ BOOST_AUTO_TEST_CASE(CGAMGTest)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(CGILUTest)
|
||||
{
|
||||
Opm::parameter::ParameterGroup param;
|
||||
Opm::ParameterGroup param;
|
||||
param.insertParameter(std::string("linsolver"), std::string("istl"));
|
||||
param.insertParameter(std::string("linsolver_type"), std::string("0"));
|
||||
param.insertParameter(std::string("linsolver_max_iterations"), std::string("200"));
|
||||
@ -81,7 +81,7 @@ BOOST_AUTO_TEST_CASE(CGILUTest)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(BiCGILUTest)
|
||||
{
|
||||
Opm::parameter::ParameterGroup param;
|
||||
Opm::ParameterGroup param;
|
||||
param.insertParameter(std::string("linsolver"), std::string("istl"));
|
||||
param.insertParameter(std::string("linsolver_type"), std::string("2"));
|
||||
param.insertParameter(std::string("linsolver_max_iterations"), std::string("200"));
|
||||
|
@ -62,7 +62,7 @@ BOOST_AUTO_TEST_CASE (GwsegStandard)
|
||||
|
||||
//std::cout << "==================================== GwsegStandard ====================================" << std::endl;
|
||||
|
||||
Opm::parameter::ParameterGroup param;
|
||||
Opm::ParameterGroup param;
|
||||
|
||||
Opm::GridManager gm(1, 1, 10, 1.0, 1.0, 5.0);
|
||||
const UnstructuredGrid& grid = *(gm.c_grid());
|
||||
@ -148,7 +148,7 @@ BOOST_AUTO_TEST_CASE (GwsegEPSBase)
|
||||
|
||||
//std::cout << "==================================== GwsegEPSBase ====================================" << std::endl;
|
||||
|
||||
Opm::parameter::ParameterGroup param;
|
||||
Opm::ParameterGroup param;
|
||||
|
||||
Opm::GridManager gm(1, 1, 10, 1.0, 1.0, 5.0);
|
||||
const UnstructuredGrid& grid = *(gm.c_grid());
|
||||
@ -234,7 +234,7 @@ BOOST_AUTO_TEST_CASE (GwsegEPS_A)
|
||||
|
||||
//std::cout << "==================================== GwsegEPS_A ====================================" << std::endl;
|
||||
|
||||
Opm::parameter::ParameterGroup param;
|
||||
Opm::ParameterGroup param;
|
||||
|
||||
Opm::GridManager gm(1, 1, 10, 1.0, 1.0, 5.0);
|
||||
const UnstructuredGrid& grid = *(gm.c_grid());
|
||||
@ -486,7 +486,7 @@ BOOST_AUTO_TEST_CASE (GwsegEPS_C)
|
||||
|
||||
//std::cout << "==================================== GwsegEPS_C ====================================" << std::endl;
|
||||
|
||||
Opm::parameter::ParameterGroup param;
|
||||
Opm::ParameterGroup param;
|
||||
|
||||
Opm::GridManager gm(1, 1, 10, 1.0, 1.0, 5.0);
|
||||
const UnstructuredGrid& grid = *(gm.c_grid());
|
||||
@ -589,7 +589,7 @@ BOOST_AUTO_TEST_CASE (GwsegEPS_D)
|
||||
|
||||
//std::cout << "==================================== GwsegEPS_D ====================================" << std::endl;
|
||||
|
||||
Opm::parameter::ParameterGroup param;
|
||||
Opm::ParameterGroup param;
|
||||
|
||||
Opm::GridManager gm(1, 1, 10, 1.0, 1.0, 5.0);
|
||||
const UnstructuredGrid& grid = *(gm.c_grid());
|
||||
|
@ -23,7 +23,7 @@ BOOST_AUTO_TEST_CASE(shadowPorosity)
|
||||
const double defaultPorosity = 1.0;
|
||||
const double newPorosity = 0.5;
|
||||
|
||||
parameter::ParameterGroup param;
|
||||
ParameterGroup param;
|
||||
IncompPropertiesBasic basic (param, 2, 1);
|
||||
IncompPropertiesShadow shadow (basic);
|
||||
BOOST_CHECK_CLOSE (*(shadow.porosity()), defaultPorosity, 0.001);
|
||||
|
Loading…
Reference in New Issue
Block a user