updates in EclMpiSerializer to avoid explicit instances in serializer

now the serializer is 'standard', as in we only require basic types
+ stl containers. this should make the actual implementation pretty
pluggable. will ease replacing our serialization routines
with those in Dune 2.7 later.
This commit is contained in:
Arne Morten Kvarving
2020-03-18 15:43:27 +01:00
parent 9b545e58a4
commit 59d1ff9b88
3 changed files with 25 additions and 20 deletions

View File

@@ -483,7 +483,8 @@ Opm::Action::ActionX getActionX()
}
Opm::AquiferCT getAquiferCT() {
Opm::AquiferCT getAquiferCT()
{
Opm::AquiferCT::AQUCT_data data;
data.aquiferID = 1;
data.inftableID = 2;
@@ -504,7 +505,9 @@ Opm::AquiferCT getAquiferCT() {
return Opm::AquiferCT( { data } );
}
Opm::Aquifetp getAquifetp() {
Opm::Aquifetp getAquifetp()
{
Opm::Aquifetp::AQUFETP_data data;
data.aquiferID = 1;
@@ -518,8 +521,8 @@ Opm::Aquifetp getAquifetp() {
}
Opm::Aquancon getAquancon() {
Opm::Aquancon getAquancon()
{
Opm::Aquancon::AquancCell cell(1, 100, std::make_pair(false, 0), 100, Opm::FaceDir::XPlus);
return Opm::Aquancon( std::unordered_map<int, std::vector<Opm::Aquancon::AquancCell>>{{1, {cell}}});
}