mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
remove old serialization support for Equil, EquilRecord
This commit is contained in:
parent
847910c444
commit
542a10e426
@ -25,7 +25,6 @@
|
||||
#include <opm/common/OpmLog/Location.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/EclipseConfig.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Runspec.hpp>
|
||||
#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/IOConfig/IOConfig.hpp>
|
||||
@ -541,11 +540,6 @@ std::size_t packSize(const TableContainer& data, Dune::MPIHelper::MPICommunicato
|
||||
return res;
|
||||
}
|
||||
|
||||
std::size_t packSize(const Equil& data, Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
return packSize(data.records(), comm);
|
||||
}
|
||||
|
||||
std::size_t packSize(const FoamConfig& data, Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
return packSize(data.records(), comm) +
|
||||
@ -1447,20 +1441,6 @@ std::size_t packSize(const PvtwsaltTable& data,
|
||||
packSize(data.getTableValues(), comm);
|
||||
}
|
||||
|
||||
std::size_t packSize(const EquilRecord& data,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
return packSize(data.datumDepth(), comm) +
|
||||
packSize(data.datumDepthPressure(), comm) +
|
||||
packSize(data.waterOilContactDepth(), comm) +
|
||||
packSize(data.waterOilContactCapillaryPressure(), comm) +
|
||||
packSize(data.gasOilContactDepth(), comm) +
|
||||
packSize(data.gasOilContactCapillaryPressure(), comm) +
|
||||
packSize(data.liveOilInitConstantRs(), comm) +
|
||||
packSize(data.wetGasInitConstantRv(), comm) +
|
||||
packSize(data.initializationTargetAccuracy(), comm);
|
||||
}
|
||||
|
||||
std::size_t packSize(const FoamData& data,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
@ -2001,12 +1981,6 @@ void pack(const TableContainer& data, std::vector<char>& buffer, int& position,
|
||||
}
|
||||
}
|
||||
|
||||
void pack(const Equil& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
pack(data.records(), buffer, position, comm);
|
||||
}
|
||||
|
||||
void pack(const FoamConfig& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
@ -2936,21 +2910,6 @@ void pack(const PvtwsaltTable& data,
|
||||
pack(data.getTableValues(), buffer, position, comm);
|
||||
}
|
||||
|
||||
void pack(const EquilRecord& data,
|
||||
std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
pack(data.datumDepth(), buffer, position, comm);
|
||||
pack(data.datumDepthPressure(), buffer, position, comm);
|
||||
pack(data.waterOilContactDepth(), buffer, position, comm);
|
||||
pack(data.waterOilContactCapillaryPressure(), buffer, position, comm);
|
||||
pack(data.gasOilContactDepth(), buffer, position, comm);
|
||||
pack(data.gasOilContactCapillaryPressure(), buffer, position, comm);
|
||||
pack(data.liveOilInitConstantRs(), buffer, position, comm);
|
||||
pack(data.wetGasInitConstantRv(), buffer, position, comm);
|
||||
pack(data.initializationTargetAccuracy(), buffer, position, comm);
|
||||
}
|
||||
|
||||
void pack(const FoamData& data,
|
||||
std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
@ -3607,14 +3566,6 @@ void unpack(TableContainer& data, std::vector<char>& buffer, int& position,
|
||||
}
|
||||
}
|
||||
|
||||
void unpack(Equil& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
std::vector<EquilRecord> records;
|
||||
unpack(records, buffer, position, comm);
|
||||
data = Equil(records);
|
||||
}
|
||||
|
||||
void unpack(FoamConfig& data, std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
@ -5022,31 +4973,6 @@ void unpack(PvtwsaltTable& data, std::vector<char>& buffer, int& position,
|
||||
data = PvtwsaltTable(refPressValue, refSaltConValue, tableValues);
|
||||
}
|
||||
|
||||
void unpack(EquilRecord& data,
|
||||
std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
double datumDepth, datumDepthPressure, waterOilContactDepth;
|
||||
double waterOilContactCapillaryPressure, gasOilContactDepth;
|
||||
double gasOilContactCapillaryPressure;
|
||||
bool liveOilInitConstantRs, wetGasInitConstantRv;
|
||||
int initializationTargetAccuracy;
|
||||
|
||||
unpack(datumDepth, buffer, position, comm);
|
||||
unpack(datumDepthPressure, buffer, position, comm);
|
||||
unpack(waterOilContactDepth, buffer, position, comm);
|
||||
unpack(waterOilContactCapillaryPressure, buffer, position, comm);
|
||||
unpack(gasOilContactDepth, buffer, position, comm);
|
||||
unpack(gasOilContactCapillaryPressure, buffer, position, comm);
|
||||
unpack(liveOilInitConstantRs, buffer, position, comm);
|
||||
unpack(wetGasInitConstantRv, buffer, position, comm);
|
||||
unpack(initializationTargetAccuracy, buffer, position, comm);
|
||||
data = EquilRecord(datumDepth, datumDepthPressure, waterOilContactDepth,
|
||||
waterOilContactCapillaryPressure, gasOilContactDepth,
|
||||
gasOilContactCapillaryPressure, liveOilInitConstantRs,
|
||||
wetGasInitConstantRv, initializationTargetAccuracy);
|
||||
}
|
||||
|
||||
void unpack(FoamData& data,
|
||||
std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
|
@ -79,8 +79,6 @@ class EclHysterConfig;
|
||||
class EclipseConfig;
|
||||
class Eqldims;
|
||||
class EndpointScaling;
|
||||
class Equil;
|
||||
class EquilRecord;
|
||||
class Events;
|
||||
class FoamConfig;
|
||||
class FoamData;
|
||||
@ -519,9 +517,7 @@ ADD_PACK_PROTOTYPES(Dimension)
|
||||
ADD_PACK_PROTOTYPES(EclHysterConfig)
|
||||
ADD_PACK_PROTOTYPES(EclipseConfig)
|
||||
ADD_PACK_PROTOTYPES(EndpointScaling)
|
||||
ADD_PACK_PROTOTYPES(Equil)
|
||||
ADD_PACK_PROTOTYPES(Eqldims)
|
||||
ADD_PACK_PROTOTYPES(EquilRecord)
|
||||
ADD_PACK_PROTOTYPES(Events)
|
||||
ADD_PACK_PROTOTYPES(FoamConfig)
|
||||
ADD_PACK_PROTOTYPES(FoamData)
|
||||
|
@ -793,7 +793,7 @@ BOOST_AUTO_TEST_CASE(EquilRecord)
|
||||
{
|
||||
#if HAVE_MPI
|
||||
Opm::EquilRecord val1 = getEquilRecord();
|
||||
auto val2 = PackUnpack(val1);
|
||||
auto val2 = PackUnpack2(val1);
|
||||
DO_CHECKS(EquilRecord)
|
||||
#endif
|
||||
}
|
||||
@ -803,7 +803,7 @@ BOOST_AUTO_TEST_CASE(Equil)
|
||||
{
|
||||
#if HAVE_MPI
|
||||
Opm::Equil val1({getEquilRecord(), getEquilRecord()});
|
||||
auto val2 = PackUnpack(val1);
|
||||
auto val2 = PackUnpack2(val1);
|
||||
DO_CHECKS(Equil)
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user