mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
add mpi serialization for PolymerConfig
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
#include <opm/parser/eclipse/EclipseState/InitConfig/Equil.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/InitConfig/FoamConfig.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/InitConfig/InitConfig.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/InitConfig/PolymerConfig.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/IOConfig/IOConfig.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/IOConfig/RestartConfig.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Schedule/Action/ActionAST.hpp>
|
||||
@@ -806,11 +807,21 @@ BOOST_AUTO_TEST_CASE(FoamConfig)
|
||||
}
|
||||
|
||||
|
||||
BOOST_AUTO_TEST_CASE(PolymerConfig)
|
||||
{
|
||||
#if HAVE_MPI
|
||||
Opm::PolymerConfig val1(true);
|
||||
auto val2 = PackUnpack(val1);
|
||||
DO_CHECKS(PolymerConfig)
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
BOOST_AUTO_TEST_CASE(InitConfig)
|
||||
{
|
||||
#if HAVE_MPI
|
||||
Opm::InitConfig val1(Opm::Equil({getEquilRecord(), getEquilRecord()}),
|
||||
getFoamConfig(),
|
||||
getFoamConfig(), Opm::PolymerConfig(true),
|
||||
true, true, true, 20, "test1");
|
||||
auto val2 = PackUnpack(val1);
|
||||
DO_CHECKS(InitConfig)
|
||||
@@ -2275,7 +2286,7 @@ BOOST_AUTO_TEST_CASE(EclipseConfig)
|
||||
Opm::IOConfig io(true, false, true, false, false, true, "test1", true,
|
||||
"test2", true, "test3", false);
|
||||
Opm::InitConfig init(Opm::Equil({getEquilRecord(), getEquilRecord()}),
|
||||
getFoamConfig(),
|
||||
getFoamConfig(), Opm::PolymerConfig(true),
|
||||
true, true, true, 20, "test1");
|
||||
Opm::EclipseConfig val1{init, io};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user