Merge pull request #3166 from akva2/rename_serialize_object
changed: rename serializeObject to serializationTestObject
This commit is contained in:
commit
77676000f7
@ -53,7 +53,7 @@ public:
|
||||
|
||||
std::string format(const std::string& msg_fmt) const;
|
||||
|
||||
static KeywordLocation serializeObject()
|
||||
static KeywordLocation serializationTestObject()
|
||||
{
|
||||
KeywordLocation result;
|
||||
result.keyword = "KW";
|
||||
|
@ -69,7 +69,7 @@ namespace Opm {
|
||||
Deck( const Deck& );
|
||||
Deck( Deck&& );
|
||||
|
||||
static Deck serializeObject();
|
||||
static Deck serializationTestObject();
|
||||
|
||||
Deck& operator=(const Deck& rhs);
|
||||
bool operator==(const Deck& data) const;
|
||||
|
@ -46,7 +46,7 @@ namespace Opm {
|
||||
DeckItem( const std::string&, UDAValue, const std::vector<Dimension>& active_dim, const std::vector<Dimension>& default_dim);
|
||||
DeckItem( const std::string&, double, const std::vector<Dimension>& active_dim, const std::vector<Dimension>& default_dim);
|
||||
|
||||
static DeckItem serializeObject();
|
||||
static DeckItem serializationTestObject();
|
||||
|
||||
const std::string& name() const;
|
||||
|
||||
|
@ -46,7 +46,7 @@ namespace Opm {
|
||||
DeckKeyword(const ParserKeyword& parserKeyword, const std::vector<int>& data);
|
||||
DeckKeyword(const ParserKeyword& parserKeyword, const std::vector<double>& data, const UnitSystem& system_active, const UnitSystem& system_default);
|
||||
|
||||
static DeckKeyword serializeObject();
|
||||
static DeckKeyword serializationTestObject();
|
||||
|
||||
const std::string& name() const;
|
||||
void setFixedSize();
|
||||
|
@ -36,7 +36,7 @@ namespace Opm {
|
||||
DeckRecord() = default;
|
||||
DeckRecord( std::vector< DeckItem >&& items, const bool check_for_duplicate_names = true );
|
||||
|
||||
static DeckRecord serializeObject();
|
||||
static DeckRecord serializationTestObject();
|
||||
|
||||
size_t size() const;
|
||||
void addItem( DeckItem deckItem );
|
||||
|
@ -51,7 +51,7 @@ public:
|
||||
void update(const std::string& s);
|
||||
void update_value(const UDAValue& other);
|
||||
|
||||
static UDAValue serializeObject();
|
||||
static UDAValue serializationTestObject();
|
||||
|
||||
/*
|
||||
The get<double>() and get<std::string>() methods will throw an
|
||||
|
@ -93,7 +93,7 @@ namespace Opm {
|
||||
void pruneDeactivatedAquiferConnections(const std::vector<std::size_t>& deactivated_cells);
|
||||
void loadFromRestart(const RestartIO::RstAquifer& rst_aquifers);
|
||||
|
||||
static Aquancon serializeObject();
|
||||
static Aquancon serializationTestObject();
|
||||
|
||||
const std::unordered_map<int, std::vector<Aquancon::AquancCell>>& data() const;
|
||||
bool operator==(const Aquancon& other) const;
|
||||
|
@ -81,7 +81,7 @@ namespace Opm {
|
||||
std::vector<double> dimensionless_time{};
|
||||
std::vector<double> dimensionless_pressure{};
|
||||
|
||||
static AQUCT_data serializeObject();
|
||||
static AQUCT_data serializationTestObject();
|
||||
|
||||
double timeConstant() const { return this->time_constant_; }
|
||||
double influxConstant() const { return this->influx_constant_; }
|
||||
@ -129,7 +129,7 @@ namespace Opm {
|
||||
void loadFromRestart(const RestartIO::RstAquifer& rst,
|
||||
const TableManager& tables);
|
||||
|
||||
static AquiferCT serializeObject();
|
||||
static AquiferCT serializationTestObject();
|
||||
|
||||
std::size_t size() const;
|
||||
std::vector<AquiferCT::AQUCT_data>::const_iterator begin() const;
|
||||
|
@ -53,7 +53,7 @@ public:
|
||||
void loadFromRestart(const RestartIO::RstAquifer& aquifers,
|
||||
const TableManager& tables);
|
||||
|
||||
static AquiferConfig serializeObject();
|
||||
static AquiferConfig serializationTestObject();
|
||||
|
||||
bool active() const;
|
||||
const AquiferCT& ct() const;
|
||||
|
@ -71,7 +71,7 @@ class Aquifetp {
|
||||
std::optional<double> initial_pressure{};
|
||||
std::optional<double> initial_temperature{};
|
||||
|
||||
static AQUFETP_data serializeObject();
|
||||
static AQUFETP_data serializationTestObject();
|
||||
|
||||
double timeConstant() const { return this->time_constant_; }
|
||||
double waterDensity() const { return this->water_density_; }
|
||||
@ -110,7 +110,7 @@ class Aquifetp {
|
||||
void loadFromRestart(const RestartIO::RstAquifer& rst,
|
||||
const TableManager& tables);
|
||||
|
||||
static Aquifetp serializeObject();
|
||||
static Aquifetp serializationTestObject();
|
||||
|
||||
const std::vector<Aquifetp::AQUFETP_data>& data() const;
|
||||
|
||||
|
@ -57,7 +57,7 @@ namespace Opm {
|
||||
void initConnections(const Deck& deck, const EclipseGrid& grid);
|
||||
void postProcessConnections(const EclipseGrid& grid, const std::vector<int>& actnum);
|
||||
|
||||
static NumericalAquifers serializeObject();
|
||||
static NumericalAquifers serializationTestObject();
|
||||
template <class Serializer>
|
||||
void serializeOp(Serializer& serializer)
|
||||
{
|
||||
|
@ -34,7 +34,7 @@ namespace Opm {
|
||||
explicit EclipseConfig(const Deck& deck);
|
||||
EclipseConfig(const InitConfig& initConfig, const IOConfig& io_conf);
|
||||
|
||||
static EclipseConfig serializeObject();
|
||||
static EclipseConfig serializationTestObject();
|
||||
|
||||
InitConfig& init();
|
||||
IOConfig& io();
|
||||
|
@ -30,7 +30,7 @@ class EndpointScaling {
|
||||
EndpointScaling() noexcept = default;
|
||||
explicit EndpointScaling( const Deck& );
|
||||
|
||||
static EndpointScaling serializeObject();
|
||||
static EndpointScaling serializationTestObject();
|
||||
|
||||
/* true if endpoint scaling is enabled, otherwise false */
|
||||
operator bool() const noexcept;
|
||||
|
@ -35,7 +35,7 @@ public:
|
||||
Fault() = default;
|
||||
explicit Fault(const std::string& faultName);
|
||||
|
||||
static Fault serializeObject();
|
||||
static Fault serializationTestObject();
|
||||
|
||||
const std::string& getName() const;
|
||||
void setTransMult(double transMult);
|
||||
|
@ -37,7 +37,7 @@ public:
|
||||
FaultCollection();
|
||||
FaultCollection(const GRIDSection& gridSection, const GridDims& grid);
|
||||
|
||||
static FaultCollection serializeObject();
|
||||
static FaultCollection serializationTestObject();
|
||||
|
||||
size_t size() const;
|
||||
bool hasFault(const std::string& faultName) const;
|
||||
|
@ -36,7 +36,7 @@ public:
|
||||
size_t K1 , size_t K2,
|
||||
FaceDir::DirEnum faceDir);
|
||||
|
||||
static FaultFace serializeObject();
|
||||
static FaultFace serializationTestObject();
|
||||
|
||||
std::vector<size_t>::const_iterator begin() const;
|
||||
std::vector<size_t>::const_iterator end() const;
|
||||
|
@ -34,7 +34,7 @@ namespace Opm {
|
||||
explicit GridDims(const std::array<int, 3>& xyz);
|
||||
GridDims(std::size_t nx, std::size_t ny, std::size_t nz);
|
||||
|
||||
static GridDims serializeObject();
|
||||
static GridDims serializationTestObject();
|
||||
|
||||
explicit GridDims(const Deck& deck);
|
||||
|
||||
|
@ -92,7 +92,7 @@ namespace Opm {
|
||||
const FieldPropsManager* fp_arg,
|
||||
const std::vector< const DeckKeyword* >& keywords);
|
||||
|
||||
static MULTREGTScanner serializeObject();
|
||||
static MULTREGTScanner serializationTestObject();
|
||||
|
||||
double getRegionMultiplier(size_t globalCellIdx1, size_t globalCellIdx2, FaceDir::DirEnum faceDir) const;
|
||||
|
||||
|
@ -106,7 +106,7 @@ public:
|
||||
/// Construct from input deck.
|
||||
NNC(const EclipseGrid& grid, const Deck& deck);
|
||||
|
||||
static NNC serializeObject();
|
||||
static NNC serializationTestObject();
|
||||
|
||||
bool addNNC(const size_t cell1, const size_t cell2, const double trans);
|
||||
const std::vector<NNCdata>& input() const { return m_input; }
|
||||
|
@ -105,7 +105,7 @@ public:
|
||||
serializer(actions);
|
||||
}
|
||||
|
||||
static TranCalculator serializeObject()
|
||||
static TranCalculator serializationTestObject()
|
||||
{
|
||||
TranCalculator tran("test");
|
||||
tran.add_action(ScalarOperation::MIN, "FGOP");
|
||||
|
@ -50,7 +50,7 @@ namespace Opm {
|
||||
TransMult() = default;
|
||||
TransMult(const GridDims& dims, const Deck& deck, const FieldPropsManager& fp);
|
||||
|
||||
static TransMult serializeObject();
|
||||
static TransMult serializationTestObject();
|
||||
|
||||
double getMultiplier(size_t globalIndex, FaceDir::DirEnum faceDir) const;
|
||||
double getMultiplier(size_t i , size_t j , size_t k, FaceDir::DirEnum faceDir) const;
|
||||
|
@ -152,7 +152,7 @@ namespace Opm {
|
||||
explicit IOConfig( const Deck& );
|
||||
explicit IOConfig( const std::string& input_path );
|
||||
|
||||
static IOConfig serializeObject();
|
||||
static IOConfig serializationTestObject();
|
||||
|
||||
void setEclCompatibleRST(bool ecl_rst);
|
||||
bool getEclCompatibleRST() const;
|
||||
|
@ -62,7 +62,7 @@ namespace Opm {
|
||||
Equil() = default;
|
||||
explicit Equil( const DeckKeyword& );
|
||||
|
||||
static Equil serializeObject();
|
||||
static Equil serializationTestObject();
|
||||
|
||||
const EquilRecord& getRecord( size_t id ) const;
|
||||
|
||||
|
@ -39,7 +39,7 @@ public:
|
||||
FoamData(const DeckRecord& FOAMFSC_record, const DeckRecord& FOAMROCK_record);
|
||||
explicit FoamData(const DeckRecord& FOAMROCK_record);
|
||||
|
||||
static FoamData serializeObject();
|
||||
static FoamData serializationTestObject();
|
||||
|
||||
double referenceSurfactantConcentration() const;
|
||||
double exponent() const;
|
||||
@ -80,7 +80,7 @@ public:
|
||||
FoamConfig() = default;
|
||||
explicit FoamConfig(const Deck&);
|
||||
|
||||
static FoamConfig serializeObject();
|
||||
static FoamConfig serializationTestObject();
|
||||
|
||||
const FoamData& getRecord(std::size_t index) const;
|
||||
|
||||
|
@ -35,7 +35,7 @@ namespace Opm {
|
||||
InitConfig();
|
||||
explicit InitConfig(const Deck& deck);
|
||||
|
||||
static InitConfig serializeObject();
|
||||
static InitConfig serializationTestObject();
|
||||
|
||||
void setRestart( const std::string& root, int step);
|
||||
bool restartRequested() const;
|
||||
|
@ -31,7 +31,7 @@ class Deck;
|
||||
explicit MICPpara(const Deck& deck);
|
||||
|
||||
|
||||
static MICPpara serializeObject()
|
||||
static MICPpara serializationTestObject()
|
||||
{
|
||||
MICPpara mp;
|
||||
mp.m_density_biofilm = 100;
|
||||
|
@ -60,7 +60,7 @@ class Phases {
|
||||
Phases( bool oil, bool gas, bool wat, bool solvent = false, bool polymer = false, bool energy = false,
|
||||
bool polymw = false, bool foam = false, bool brine = false, bool zfraction = false ) noexcept;
|
||||
|
||||
static Phases serializeObject();
|
||||
static Phases serializationTestObject();
|
||||
|
||||
bool active( Phase ) const noexcept;
|
||||
size_t size() const noexcept;
|
||||
@ -83,7 +83,7 @@ public:
|
||||
Welldims() = default;
|
||||
explicit Welldims(const Deck& deck);
|
||||
|
||||
static Welldims serializeObject();
|
||||
static Welldims serializationTestObject();
|
||||
|
||||
int maxConnPerWell() const
|
||||
{
|
||||
@ -161,7 +161,7 @@ public:
|
||||
WellSegmentDims();
|
||||
explicit WellSegmentDims(const Deck& deck);
|
||||
|
||||
static WellSegmentDims serializeObject();
|
||||
static WellSegmentDims serializationTestObject();
|
||||
|
||||
|
||||
int maxSegmentedWells() const
|
||||
@ -200,7 +200,7 @@ public:
|
||||
NetworkDims();
|
||||
explicit NetworkDims(const Deck& deck);
|
||||
|
||||
static NetworkDims serializeObject();
|
||||
static NetworkDims serializationTestObject();
|
||||
|
||||
int maxNONodes() const
|
||||
{
|
||||
@ -240,7 +240,7 @@ public:
|
||||
AquiferDimensions();
|
||||
explicit AquiferDimensions(const Deck& deck);
|
||||
|
||||
static AquiferDimensions serializeObject();
|
||||
static AquiferDimensions serializationTestObject();
|
||||
|
||||
int maxAnalyticAquifers() const
|
||||
{
|
||||
@ -272,7 +272,7 @@ public:
|
||||
EclHysterConfig() = default;
|
||||
explicit EclHysterConfig(const Deck& deck);
|
||||
|
||||
static EclHysterConfig serializeObject();
|
||||
static EclHysterConfig serializationTestObject();
|
||||
|
||||
/*!
|
||||
* \brief Specify whether hysteresis is enabled or not.
|
||||
@ -339,7 +339,7 @@ public:
|
||||
const ThreePhaseOilKrModel model,
|
||||
const KeywordFamily family);
|
||||
|
||||
static SatFuncControls serializeObject();
|
||||
static SatFuncControls serializationTestObject();
|
||||
|
||||
double minimumRelpermMobilityThreshold() const
|
||||
{
|
||||
@ -380,7 +380,7 @@ public:
|
||||
void update(int value);
|
||||
int value() const;
|
||||
|
||||
static Nupcol serializeObject();
|
||||
static Nupcol serializationTestObject();
|
||||
bool operator==(const Nupcol& data) const;
|
||||
|
||||
template<class Serializer>
|
||||
@ -414,7 +414,7 @@ public:
|
||||
serializer(this->min_iter);
|
||||
}
|
||||
|
||||
static Tracers serializeObject();
|
||||
static Tracers serializationTestObject();
|
||||
bool operator==(const Tracers& data) const;
|
||||
|
||||
private:
|
||||
@ -435,7 +435,7 @@ public:
|
||||
Runspec() = default;
|
||||
explicit Runspec( const Deck& );
|
||||
|
||||
static Runspec serializeObject();
|
||||
static Runspec serializationTestObject();
|
||||
|
||||
std::time_t start_time() const noexcept;
|
||||
const UDQParams& udqParams() const noexcept;
|
||||
|
@ -61,7 +61,7 @@ public:
|
||||
BCFace() = default;
|
||||
explicit BCFace(const DeckRecord& record);
|
||||
|
||||
static BCFace serializeObject();
|
||||
static BCFace serializationTestObject();
|
||||
|
||||
bool operator==(const BCFace& other) const;
|
||||
|
||||
@ -85,7 +85,7 @@ public:
|
||||
BCConfig() = default;
|
||||
explicit BCConfig(const Deck& deck);
|
||||
|
||||
static BCConfig serializeObject();
|
||||
static BCConfig serializationTestObject();
|
||||
|
||||
std::size_t size() const;
|
||||
std::vector<BCFace>::const_iterator begin() const;
|
||||
|
@ -61,7 +61,7 @@ struct RockComp {
|
||||
RockConfig();
|
||||
RockConfig(const Deck& deck, const FieldPropsManager& fp);
|
||||
|
||||
static RockConfig serializeObject();
|
||||
static RockConfig serializationTestObject();
|
||||
|
||||
bool active() const;
|
||||
const std::vector<RockConfig::RockComp>& comp() const;
|
||||
|
@ -38,7 +38,7 @@ namespace Opm {
|
||||
const Deck& deck,
|
||||
const FieldPropsManager& fp);
|
||||
|
||||
static SimulationConfig serializeObject();
|
||||
static SimulationConfig serializationTestObject();
|
||||
|
||||
const RockConfig& rock_config() const;
|
||||
const ThresholdPressure& getThresholdPressure() const;
|
||||
|
@ -46,7 +46,7 @@ namespace Opm {
|
||||
{}
|
||||
|
||||
//! \brief Returns an instance for serialization tests.
|
||||
static ThresholdPressure serializeObject();
|
||||
static ThresholdPressure serializationTestObject();
|
||||
|
||||
/*
|
||||
The hasRegionBarrier() method checks if a threshold pressure
|
||||
|
@ -48,7 +48,7 @@ namespace Opm {
|
||||
SummaryConfigNode() = default;
|
||||
explicit SummaryConfigNode(std::string keyword, const Category cat, KeywordLocation loc_arg);
|
||||
|
||||
static SummaryConfigNode serializeObject();
|
||||
static SummaryConfigNode serializationTestObject();
|
||||
|
||||
SummaryConfigNode& parameterType(const Type type);
|
||||
SummaryConfigNode& namedEntity(std::string name);
|
||||
@ -160,7 +160,7 @@ namespace Opm {
|
||||
const std::set<std::string>& shortKwds,
|
||||
const std::set<std::string>& smryKwds);
|
||||
|
||||
static SummaryConfig serializeObject();
|
||||
static SummaryConfig serializationTestObject();
|
||||
|
||||
const_iterator begin() const;
|
||||
const_iterator end() const;
|
||||
|
@ -38,7 +38,7 @@ namespace Opm {
|
||||
|
||||
explicit Aqudims(const Deck& deck);
|
||||
|
||||
static Aqudims serializeObject()
|
||||
static Aqudims serializationTestObject()
|
||||
{
|
||||
Aqudims result;
|
||||
result.m_mxnaqn = 1;
|
||||
|
@ -26,7 +26,7 @@ namespace Opm {
|
||||
|
||||
class BrineDensityTable {
|
||||
public:
|
||||
static BrineDensityTable serializeObject();
|
||||
static BrineDensityTable serializationTestObject();
|
||||
|
||||
void init(const Opm::DeckRecord& record);
|
||||
const std::vector<double>& getBrineDensityColumn() const;
|
||||
|
@ -34,7 +34,7 @@ namespace Opm {
|
||||
ColumnSchema(const std::string& name , Table::ColumnOrderEnum order, Table::DefaultAction defaultAction);
|
||||
ColumnSchema(const std::string& name , Table::ColumnOrderEnum order, double defaultValue);
|
||||
|
||||
static ColumnSchema serializeObject();
|
||||
static ColumnSchema serializationTestObject();
|
||||
|
||||
const std::string& name() const;
|
||||
bool validOrder( double value1 , double value2) const;
|
||||
|
@ -52,7 +52,7 @@ namespace Opm {
|
||||
DenT() = default;
|
||||
explicit DenT(const DeckKeyword& keyword);
|
||||
|
||||
static DenT serializeObject();
|
||||
static DenT serializationTestObject();
|
||||
|
||||
const entry& operator[](const std::size_t index) const;
|
||||
bool operator==(const DenT& other) const;
|
||||
|
@ -42,7 +42,7 @@ namespace Opm {
|
||||
m_nstrvd( nstrvd )
|
||||
{ }
|
||||
|
||||
static Eqldims serializeObject()
|
||||
static Eqldims serializationTestObject()
|
||||
{
|
||||
return Eqldims(1, 2, 3, 4, 5);
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ struct GravityTable : public FlatTableWithCopy<GRAVITYRecord>
|
||||
explicit GravityTable(const DeckKeyword& kw);
|
||||
explicit GravityTable(std::initializer_list<GRAVITYRecord> records);
|
||||
|
||||
static GravityTable serializeObject()
|
||||
static GravityTable serializationTestObject()
|
||||
{
|
||||
return GravityTable({{1.0, 2.0, 3.0}});
|
||||
}
|
||||
@ -133,7 +133,7 @@ struct DensityTable : public FlatTableWithCopy<DENSITYRecord>
|
||||
explicit DensityTable(const GravityTable& gravity);
|
||||
explicit DensityTable(std::initializer_list<DENSITYRecord> records);
|
||||
|
||||
static DensityTable serializeObject()
|
||||
static DensityTable serializationTestObject()
|
||||
{
|
||||
return DensityTable({{1.0, 2.0, 3.0}});
|
||||
}
|
||||
@ -185,7 +185,7 @@ struct DiffCoeffRecord {
|
||||
struct DiffCoeffTable : public FlatTable< DiffCoeffRecord > {
|
||||
using FlatTable< DiffCoeffRecord >::FlatTable;
|
||||
|
||||
static DiffCoeffTable serializeObject()
|
||||
static DiffCoeffTable serializationTestObject()
|
||||
{
|
||||
return DiffCoeffTable({{1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0}});
|
||||
}
|
||||
@ -225,7 +225,7 @@ struct PvtwTable : public FlatTableWithCopy<PVTWRecord>
|
||||
explicit PvtwTable(const DeckKeyword& kw);
|
||||
explicit PvtwTable(std::initializer_list<PVTWRecord> records);
|
||||
|
||||
static PvtwTable serializeObject()
|
||||
static PvtwTable serializationTestObject()
|
||||
{
|
||||
return PvtwTable({{1.0, 2.0, 3.0, 4.0, 5.0}});
|
||||
}
|
||||
@ -259,7 +259,7 @@ struct ROCKRecord {
|
||||
struct RockTable : public FlatTable< ROCKRecord > {
|
||||
using FlatTable< ROCKRecord >::FlatTable;
|
||||
|
||||
static RockTable serializeObject()
|
||||
static RockTable serializationTestObject()
|
||||
{
|
||||
return RockTable({{1.0, 2.0}});
|
||||
}
|
||||
@ -296,7 +296,7 @@ struct PVCDORecord {
|
||||
struct PvcdoTable : public FlatTable< PVCDORecord > {
|
||||
using FlatTable< PVCDORecord >::FlatTable;
|
||||
|
||||
static PvcdoTable serializeObject()
|
||||
static PvcdoTable serializationTestObject()
|
||||
{
|
||||
return PvcdoTable({{1.0, 2.0, 3.0, 4.0, 5.0}});
|
||||
}
|
||||
@ -321,7 +321,7 @@ struct PlmixparRecord {
|
||||
struct PlmixparTable : public FlatTable< PlmixparRecord> {
|
||||
using FlatTable< PlmixparRecord >::FlatTable;
|
||||
|
||||
static PlmixparTable serializeObject()
|
||||
static PlmixparTable serializationTestObject()
|
||||
{
|
||||
return PlmixparTable({PlmixparRecord{1.0}});
|
||||
}
|
||||
@ -355,7 +355,7 @@ struct PlyvmhRecord {
|
||||
struct PlyvmhTable : public FlatTable<PlyvmhRecord> {
|
||||
using FlatTable< PlyvmhRecord >::FlatTable;
|
||||
|
||||
static PlyvmhTable serializeObject()
|
||||
static PlyvmhTable serializationTestObject()
|
||||
{
|
||||
return PlyvmhTable({{1.0, 2.0, 3.0, 4.0}});
|
||||
}
|
||||
@ -380,7 +380,7 @@ struct ShrateRecord {
|
||||
struct ShrateTable : public FlatTable<ShrateRecord> {
|
||||
using FlatTable< ShrateRecord >::FlatTable;
|
||||
|
||||
static ShrateTable serializeObject()
|
||||
static ShrateTable serializationTestObject()
|
||||
{
|
||||
return ShrateTable({ShrateRecord{1.0}});
|
||||
}
|
||||
@ -405,7 +405,7 @@ struct Stone1exRecord {
|
||||
struct Stone1exTable : public FlatTable<Stone1exRecord> {
|
||||
using FlatTable< Stone1exRecord >::FlatTable;
|
||||
|
||||
static Stone1exTable serializeObject()
|
||||
static Stone1exTable serializationTestObject()
|
||||
{
|
||||
return Stone1exTable({Stone1exRecord{1.0}});
|
||||
}
|
||||
@ -433,7 +433,7 @@ struct TlmixparRecord {
|
||||
struct TlmixparTable : public FlatTable< TlmixparRecord> {
|
||||
using FlatTable< TlmixparRecord >::FlatTable;
|
||||
|
||||
static TlmixparTable serializeObject()
|
||||
static TlmixparTable serializationTestObject()
|
||||
{
|
||||
return TlmixparTable({{1.0, 2.0}});
|
||||
}
|
||||
@ -461,7 +461,7 @@ struct VISCREFRecord {
|
||||
struct ViscrefTable : public FlatTable< VISCREFRecord > {
|
||||
using FlatTable< VISCREFRecord >::FlatTable;
|
||||
|
||||
static ViscrefTable serializeObject()
|
||||
static ViscrefTable serializationTestObject()
|
||||
{
|
||||
return ViscrefTable({{1.0, 2.0}});
|
||||
}
|
||||
@ -492,7 +492,7 @@ struct WATDENTRecord {
|
||||
struct WatdentTable : public FlatTable< WATDENTRecord > {
|
||||
using FlatTable< WATDENTRecord >::FlatTable;
|
||||
|
||||
static WatdentTable serializeObject()
|
||||
static WatdentTable serializationTestObject()
|
||||
{
|
||||
return WatdentTable({{1.0, 2.0, 3.0}});
|
||||
}
|
||||
@ -565,7 +565,7 @@ struct SatFuncLETRecord {
|
||||
struct SwofletTable : public FlatTable< SatFuncLETRecord > {
|
||||
using FlatTable< SatFuncLETRecord >::FlatTable;
|
||||
|
||||
static SwofletTable serializeObject()
|
||||
static SwofletTable serializationTestObject()
|
||||
{
|
||||
return SwofletTable({{1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0}});
|
||||
}
|
||||
@ -575,7 +575,7 @@ struct SwofletTable : public FlatTable< SatFuncLETRecord > {
|
||||
struct SgofletTable : public FlatTable< SatFuncLETRecord > {
|
||||
using FlatTable< SatFuncLETRecord >::FlatTable;
|
||||
|
||||
static SgofletTable serializeObject()
|
||||
static SgofletTable serializationTestObject()
|
||||
{
|
||||
return SgofletTable({{1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0}});
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ public:
|
||||
JFunc();
|
||||
explicit JFunc(const Deck& deck);
|
||||
|
||||
static JFunc serializeObject();
|
||||
static JFunc serializationTestObject();
|
||||
|
||||
double alphaFactor() const;
|
||||
double betaFactor() const;
|
||||
|
@ -50,7 +50,7 @@ namespace Opm {
|
||||
JouleThomson() = default;
|
||||
explicit JouleThomson(const DeckKeyword& keyword);
|
||||
|
||||
static JouleThomson serializeObject();
|
||||
static JouleThomson serializationTestObject();
|
||||
|
||||
const entry& operator[](const std::size_t index) const;
|
||||
bool operator==(const JouleThomson& other) const;
|
||||
|
@ -30,7 +30,7 @@ namespace Opm {
|
||||
PlymwinjTable() = default;
|
||||
explicit PlymwinjTable(const DeckKeyword& table);
|
||||
|
||||
static PlymwinjTable serializeObject();
|
||||
static PlymwinjTable serializationTestObject();
|
||||
|
||||
const std::vector<std::vector<double>>& getMoleWeights() const;
|
||||
bool operator==(const PlymwinjTable& data) const;
|
||||
|
@ -34,7 +34,7 @@ namespace Opm {
|
||||
PlyshlogTable() = default;
|
||||
PlyshlogTable(const DeckRecord& indexRecord, const DeckRecord& dataRecord);
|
||||
|
||||
static PlyshlogTable serializeObject();
|
||||
static PlyshlogTable serializationTestObject();
|
||||
|
||||
double getRefPolymerConcentration() const;
|
||||
double getRefSalinity() const;
|
||||
|
@ -43,7 +43,7 @@ namespace Opm {
|
||||
|
||||
class PolyInjTable {
|
||||
public:
|
||||
static PolyInjTable serializeObject();
|
||||
static PolyInjTable serializationTestObject();
|
||||
|
||||
int getTableNumber() const;
|
||||
|
||||
|
@ -30,7 +30,7 @@ namespace Opm {
|
||||
PvtgTable() = default;
|
||||
PvtgTable( const DeckKeyword& keyword, size_t tableIdx);
|
||||
|
||||
static PvtgTable serializeObject();
|
||||
static PvtgTable serializationTestObject();
|
||||
|
||||
bool operator==(const PvtgTable& data) const;
|
||||
};
|
||||
|
@ -31,7 +31,7 @@ namespace Opm {
|
||||
PvtgwTable() = default;
|
||||
PvtgwTable( const DeckKeyword& keyword, size_t tableIdx);
|
||||
|
||||
static PvtgwTable serializeObject();
|
||||
static PvtgwTable serializationTestObject();
|
||||
|
||||
bool operator==(const PvtgwTable& data) const;
|
||||
};
|
||||
|
@ -31,7 +31,7 @@ namespace Opm {
|
||||
PvtgwoTable() = default;
|
||||
PvtgwoTable( const DeckKeyword& keyword, size_t tableIdx);
|
||||
|
||||
static PvtgwoTable serializeObject();
|
||||
static PvtgwoTable serializationTestObject();
|
||||
|
||||
bool operator==(const PvtgwoTable& data) const;
|
||||
};
|
||||
|
@ -40,7 +40,7 @@ namespace Opm {
|
||||
PvtoTable() = default;
|
||||
PvtoTable(const DeckKeyword& keyword, size_t tableIdx);
|
||||
|
||||
static PvtoTable serializeObject();
|
||||
static PvtoTable serializationTestObject();
|
||||
|
||||
bool operator==(const PvtoTable& data) const;
|
||||
|
||||
|
@ -29,7 +29,7 @@ namespace Opm {
|
||||
public:
|
||||
PvtsolTable() = default;
|
||||
PvtsolTable(const DeckKeyword& keyword, size_t tableIdx);
|
||||
static PvtsolTable serializeObject();
|
||||
static PvtsolTable serializationTestObject();
|
||||
bool operator==(const PvtsolTable& data) const;
|
||||
};
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ namespace Opm {
|
||||
public:
|
||||
PvtwsaltTable();
|
||||
|
||||
static PvtwsaltTable serializeObject();
|
||||
static PvtwsaltTable serializationTestObject();
|
||||
|
||||
void init(const Opm::DeckRecord& record0, const Opm::DeckRecord& record1);
|
||||
size_t size() const;
|
||||
|
@ -118,7 +118,7 @@ The first row actually corresponds to saturated values.
|
||||
PvtxTable() = default;
|
||||
explicit PvtxTable(const std::string& columnName);
|
||||
|
||||
static PvtxTable serializeObject();
|
||||
static PvtxTable serializationTestObject();
|
||||
|
||||
const SimpleTable& getUnderSaturatedTable(size_t tableNumber) const;
|
||||
void init(const DeckKeyword& keyword, size_t tableIdx);
|
||||
|
@ -48,7 +48,7 @@ namespace Opm {
|
||||
m_NPLMIX( nplmix )
|
||||
{}
|
||||
|
||||
static Regdims serializeObject()
|
||||
static Regdims serializationTestObject()
|
||||
{
|
||||
return Regdims(1, 2, 3, 4, 5);
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ namespace Opm {
|
||||
public:
|
||||
Rock2dTable();
|
||||
|
||||
static Rock2dTable serializeObject();
|
||||
static Rock2dTable serializationTestObject();
|
||||
|
||||
void init(const Opm::DeckRecord& record, size_t tableIdx);
|
||||
size_t size() const;
|
||||
|
@ -29,7 +29,7 @@ namespace Opm {
|
||||
public:
|
||||
Rock2dtrTable();
|
||||
|
||||
static Rock2dtrTable serializeObject();
|
||||
static Rock2dtrTable serializationTestObject();
|
||||
|
||||
void init(const Opm::DeckRecord& record, size_t tableIdx);
|
||||
size_t size() const;
|
||||
|
@ -33,7 +33,7 @@ namespace Opm {
|
||||
bool hasStressOption,
|
||||
const int tableID);
|
||||
|
||||
static RocktabTable serializeObject();
|
||||
static RocktabTable serializationTestObject();
|
||||
|
||||
const TableColumn& getPressureColumn() const;
|
||||
const TableColumn& getPoreVolumeMultiplierColumn() const;
|
||||
|
@ -30,7 +30,7 @@ namespace Opm {
|
||||
public:
|
||||
RwgsaltTable();
|
||||
|
||||
static RwgsaltTable serializeObject();
|
||||
static RwgsaltTable serializationTestObject();
|
||||
|
||||
void init(const Opm::DeckRecord& record1);
|
||||
size_t size() const;
|
||||
|
@ -39,7 +39,7 @@ namespace Opm {
|
||||
SimpleTable(TableSchema, const DeckItem& deckItem, const int tableID);
|
||||
explicit SimpleTable( TableSchema );
|
||||
|
||||
static SimpleTable serializeObject();
|
||||
static SimpleTable serializationTestObject();
|
||||
|
||||
void addColumns();
|
||||
//! \brief Initialize deck item.
|
||||
|
@ -30,7 +30,7 @@ namespace Opm {
|
||||
SkprpolyTable() = default;
|
||||
explicit SkprpolyTable(const DeckKeyword& table);
|
||||
|
||||
static SkprpolyTable serializeObject();
|
||||
static SkprpolyTable serializationTestObject();
|
||||
|
||||
double referenceConcentration() const;
|
||||
|
||||
|
@ -30,7 +30,7 @@ namespace Opm {
|
||||
SkprwatTable() = default;
|
||||
explicit SkprwatTable(const DeckKeyword& table);
|
||||
|
||||
static SkprwatTable serializeObject();
|
||||
static SkprwatTable serializationTestObject();
|
||||
|
||||
const std::vector<std::vector<double>>& getSkinPressures() const;
|
||||
|
||||
|
@ -25,7 +25,7 @@ namespace Opm {
|
||||
|
||||
class SolventDensityTable {
|
||||
public:
|
||||
static SolventDensityTable serializeObject();
|
||||
static SolventDensityTable serializationTestObject();
|
||||
|
||||
void init(const Opm::DeckRecord& record);
|
||||
const std::vector<double>& getSolventDensityColumn() const;
|
||||
|
@ -24,7 +24,7 @@ namespace Opm {
|
||||
struct StandardCond {
|
||||
StandardCond();
|
||||
|
||||
static StandardCond serializeObject();
|
||||
static StandardCond serializationTestObject();
|
||||
|
||||
bool operator==(const StandardCond& data) const {
|
||||
return temperature == data.temperature &&
|
||||
|
@ -57,7 +57,7 @@ public:
|
||||
|
||||
TLMixpar() = default;
|
||||
explicit TLMixpar(const Deck& deck);
|
||||
static TLMixpar serializeObject();
|
||||
static TLMixpar serializationTestObject();
|
||||
std::size_t size() const;
|
||||
bool empty() const;
|
||||
const TLMixRecord& operator[](const std::size_t index) const;
|
||||
|
@ -45,7 +45,7 @@ namespace Opm {
|
||||
|
||||
explicit Tabdims(const Deck& deck);
|
||||
|
||||
static Tabdims serializeObject()
|
||||
static Tabdims serializationTestObject()
|
||||
{
|
||||
Tabdims result;
|
||||
result.m_ntsfun = 1;
|
||||
|
@ -36,7 +36,7 @@ namespace Opm {
|
||||
|
||||
TableColumn(const TableColumn& c2) { *this = c2; }
|
||||
|
||||
static TableColumn serializeObject();
|
||||
static TableColumn serializationTestObject();
|
||||
|
||||
size_t size( ) const;
|
||||
const std::string& name() const;
|
||||
|
@ -64,7 +64,7 @@ namespace Opm {
|
||||
TableContainer();
|
||||
explicit TableContainer( size_t maxTables );
|
||||
|
||||
static TableContainer serializeObject();
|
||||
static TableContainer serializationTestObject();
|
||||
|
||||
bool empty() const;
|
||||
|
||||
|
@ -67,7 +67,7 @@ namespace Opm {
|
||||
explicit TableManager( const Deck& deck );
|
||||
TableManager() = default;
|
||||
|
||||
static TableManager serializeObject();
|
||||
static TableManager serializationTestObject();
|
||||
|
||||
const TableContainer& getTables( const std::string& tableName ) const;
|
||||
const TableContainer& operator[](const std::string& tableName) const;
|
||||
|
@ -30,7 +30,7 @@ namespace Opm {
|
||||
|
||||
class TableSchema {
|
||||
public:
|
||||
static TableSchema serializeObject();
|
||||
static TableSchema serializationTestObject();
|
||||
|
||||
void addColumn( ColumnSchema );
|
||||
const ColumnSchema& getColumn( const std::string& name ) const;
|
||||
|
@ -110,7 +110,7 @@ public:
|
||||
TracerConfig() = default;
|
||||
TracerConfig(const UnitSystem& unit_system, const Deck& deck);
|
||||
|
||||
static TracerConfig serializeObject();
|
||||
static TracerConfig serializationTestObject();
|
||||
|
||||
size_t size() const;
|
||||
bool empty() const;
|
||||
|
@ -20,7 +20,7 @@ public:
|
||||
ASTNode(double value);
|
||||
ASTNode(TokenType type_arg, FuncType func_type_arg, const std::string& func_arg, const std::vector<std::string>& arg_list_arg);
|
||||
|
||||
static ASTNode serializeObject();
|
||||
static ASTNode serializationTestObject();
|
||||
|
||||
Action::Result eval(const Action::Context& context) const;
|
||||
Action::Value value(const Action::Context& context) const;
|
||||
|
@ -32,7 +32,7 @@ public:
|
||||
Actdims();
|
||||
explicit Actdims(const Deck& deck);
|
||||
|
||||
static Actdims serializeObject();
|
||||
static Actdims serializationTestObject();
|
||||
|
||||
std::size_t max_keywords() const;
|
||||
std::size_t max_line_count() const;
|
||||
|
@ -46,7 +46,7 @@ public:
|
||||
AST() = default;
|
||||
explicit AST(const std::vector<std::string>& tokens);
|
||||
|
||||
static AST serializeObject();
|
||||
static AST serializationTestObject();
|
||||
|
||||
Result eval(const Context& context) const;
|
||||
|
||||
|
@ -88,7 +88,7 @@ public:
|
||||
serializer(this->well_set);
|
||||
}
|
||||
|
||||
static WellSet serializeObject();
|
||||
static WellSet serializationTestObject();
|
||||
|
||||
private:
|
||||
std::unordered_set<std::string> well_set;
|
||||
@ -121,7 +121,7 @@ public:
|
||||
serializer(this->matching_wells);
|
||||
}
|
||||
|
||||
static Result serializeObject();
|
||||
static Result serializationTestObject();
|
||||
|
||||
private:
|
||||
void assign(bool value);
|
||||
|
@ -79,7 +79,7 @@ public:
|
||||
ActionX(const DeckRecord& record, std::time_t start_time);
|
||||
explicit ActionX(const RestartIO::RstAction& rst_action);
|
||||
|
||||
static ActionX serializeObject();
|
||||
static ActionX serializationTestObject();
|
||||
|
||||
void addKeyword(const DeckKeyword& kw);
|
||||
bool ready(const State& state, std::time_t sim_time) const;
|
||||
|
@ -43,7 +43,7 @@ public:
|
||||
Actions() = default;
|
||||
Actions(const std::vector<ActionX>& action, const std::vector<PyAction>& pyactions);
|
||||
|
||||
static Actions serializeObject();
|
||||
static Actions serializationTestObject();
|
||||
|
||||
std::size_t py_size() const;
|
||||
std::size_t ecl_size() const;
|
||||
|
@ -48,7 +48,7 @@ public:
|
||||
|
||||
|
||||
static RunCount from_string(std::string run_count);
|
||||
static PyAction serializeObject();
|
||||
static PyAction serializationTestObject();
|
||||
PyAction() = default;
|
||||
PyAction(std::shared_ptr<const Python> python, const std::string& name, RunCount run_count, const std::string& module_file);
|
||||
bool run(EclipseState& ecl_state, Schedule& schedule, std::size_t report_step, SummaryState& st,
|
||||
|
@ -52,7 +52,7 @@ struct RunState {
|
||||
this->run_count += 1;
|
||||
}
|
||||
|
||||
static RunState serializeObject()
|
||||
static RunState serializationTestObject()
|
||||
{
|
||||
RunState rs;
|
||||
rs.run_count = 100;
|
||||
@ -97,7 +97,7 @@ public:
|
||||
}
|
||||
|
||||
|
||||
static State serializeObject();
|
||||
static State serializationTestObject();
|
||||
bool operator==(const State& other) const;
|
||||
|
||||
private:
|
||||
|
@ -34,7 +34,7 @@ public:
|
||||
|
||||
bool has_well(const std::string& wname) const;
|
||||
bool has_group(const std::string& gname) const;
|
||||
static WGNames serializeObject();
|
||||
static WGNames serializationTestObject();
|
||||
bool operator==(const WGNames& other) const;
|
||||
|
||||
template<class Serializer>
|
||||
|
@ -62,7 +62,7 @@ public:
|
||||
serializer(this->ntg);
|
||||
}
|
||||
|
||||
static Props serializeObject(){
|
||||
static Props serializationTestObject(){
|
||||
Props props;
|
||||
props.permx = 10.0;
|
||||
props.permy = 78.0;
|
||||
@ -91,7 +91,7 @@ public:
|
||||
this->props == other.props;
|
||||
}
|
||||
|
||||
static Cell serializeObject() {
|
||||
static Cell serializationTestObject() {
|
||||
Cell cell(0,1,1,1);
|
||||
cell.depth = 12345;
|
||||
cell.dimensions = {1.0,2.0,3.0};
|
||||
@ -127,7 +127,7 @@ public:
|
||||
std::pair<bool, Cell&> try_get(std::size_t i, std::size_t j, std::size_t k);
|
||||
|
||||
bool operator==(const CompletedCells& other) const;
|
||||
static CompletedCells serializeObject();
|
||||
static CompletedCells serializationTestObject();
|
||||
|
||||
template<class Serializer>
|
||||
void serializeOp(Serializer& serializer)
|
||||
|
@ -146,7 +146,7 @@ namespace Opm
|
||||
|
||||
class Events {
|
||||
public:
|
||||
static Events serializeObject();
|
||||
static Events serializationTestObject();
|
||||
|
||||
void addEvent(ScheduleEvents::Events event);
|
||||
bool hasEvent(uint64_t eventMask) const;
|
||||
@ -168,7 +168,7 @@ namespace Opm
|
||||
|
||||
class WellGroupEvents {
|
||||
public:
|
||||
static WellGroupEvents serializeObject();
|
||||
static WellGroupEvents serializationTestObject();
|
||||
|
||||
void addWell(const std::string& wname);
|
||||
void addGroup(const std::string& gname);
|
||||
|
@ -82,7 +82,7 @@ public:
|
||||
}
|
||||
|
||||
|
||||
static Group serializeObject() {
|
||||
static Group serializationTestObject() {
|
||||
Group group;
|
||||
group.m_name = "GR";
|
||||
group.m_max_lift_gas = 100;
|
||||
@ -217,7 +217,7 @@ public:
|
||||
serializer(m_alloc_extra_gas);
|
||||
}
|
||||
|
||||
static Well serializeObject() {
|
||||
static Well serializationTestObject() {
|
||||
Well well;
|
||||
well.m_name = "WELL";
|
||||
well.m_max_rate = 2000;
|
||||
@ -269,7 +269,7 @@ public:
|
||||
bool has_group(const std::string& group) const;
|
||||
std::size_t num_wells() const;
|
||||
|
||||
static GasLiftOpt serializeObject();
|
||||
static GasLiftOpt serializationTestObject();
|
||||
bool operator==(const GasLiftOpt& other) const;
|
||||
|
||||
template<class Serializer>
|
||||
|
@ -73,7 +73,7 @@ namespace Opm {
|
||||
MaxProcedure max_proc;
|
||||
};
|
||||
|
||||
static GConSale serializeObject();
|
||||
static GConSale serializationTestObject();
|
||||
|
||||
bool has(const std::string& name) const;
|
||||
const GCONSALEGroup& get(const std::string& name) const;
|
||||
|
@ -64,7 +64,7 @@ namespace Opm {
|
||||
std::string network_node;
|
||||
};
|
||||
|
||||
static GConSump serializeObject();
|
||||
static GConSump serializationTestObject();
|
||||
|
||||
bool has(const std::string& name) const;
|
||||
const GCONSUMPGroup& get(const std::string& name) const;
|
||||
|
@ -51,7 +51,7 @@ friend class GPMaint;
|
||||
|
||||
GPMaint() = default;
|
||||
GPMaint(std::size_t report_step, const DeckRecord& record);
|
||||
static GPMaint serializeObject();
|
||||
static GPMaint serializationTestObject();
|
||||
|
||||
double pressure_target() const;
|
||||
double prop_constant() const;
|
||||
|
@ -146,7 +146,7 @@ struct GroupInjectionProperties {
|
||||
double guide_rate = 0;
|
||||
GuideRateInjTarget guide_rate_def = GuideRateInjTarget::NO_GUIDE_RATE;
|
||||
|
||||
static GroupInjectionProperties serializeObject();
|
||||
static GroupInjectionProperties serializationTestObject();
|
||||
|
||||
int injection_controls = 0;
|
||||
bool operator==(const GroupInjectionProperties& other) const;
|
||||
@ -203,7 +203,7 @@ struct GroupProductionProperties {
|
||||
GuideRateProdTarget guide_rate_def = GuideRateProdTarget::NO_GUIDE_RATE;
|
||||
double resv_target = 0;
|
||||
bool available_group_control = true;
|
||||
static GroupProductionProperties serializeObject();
|
||||
static GroupProductionProperties serializationTestObject();
|
||||
|
||||
int production_controls = 0;
|
||||
bool operator==(const GroupProductionProperties& other) const;
|
||||
@ -248,7 +248,7 @@ struct ProductionControls {
|
||||
Group(const std::string& group_name, std::size_t insert_index_arg, double udq_undefined_arg, const UnitSystem& unit_system);
|
||||
Group(const RestartIO::RstGroup& rst_group, std::size_t insert_index_arg, double udq_undefined_arg, const UnitSystem& unit_system);
|
||||
|
||||
static Group serializeObject();
|
||||
static Group serializationTestObject();
|
||||
|
||||
std::size_t insert_index() const;
|
||||
const std::string& name() const;
|
||||
|
@ -89,7 +89,7 @@ struct GroupInjTarget {
|
||||
}
|
||||
};
|
||||
|
||||
static GuideRateConfig serializeObject();
|
||||
static GuideRateConfig serializationTestObject();
|
||||
|
||||
const GuideRateModel& model() const;
|
||||
bool has_model() const;
|
||||
|
@ -65,7 +65,7 @@ public:
|
||||
double damping_factor);
|
||||
|
||||
|
||||
static GuideRateModel serializeObject();
|
||||
static GuideRateModel serializationTestObject();
|
||||
|
||||
double eval(double oil_pot, double gas_pot, double wat_pot) const;
|
||||
bool updateLINCOM(const UDAValue& alpha, const UDAValue& beta, const UDAValue& gamma) const;
|
||||
|
@ -37,7 +37,7 @@ namespace Opm {
|
||||
AutoICD() = default;
|
||||
AutoICD(const DeckRecord& record);
|
||||
|
||||
static AutoICD serializeObject();
|
||||
static AutoICD serializationTestObject();
|
||||
|
||||
// the function will return a map
|
||||
// [
|
||||
|
@ -51,7 +51,7 @@ namespace Opm {
|
||||
ICDStatus status,
|
||||
double scalingFactor);
|
||||
|
||||
static SICD serializeObject();
|
||||
static SICD serializationTestObject();
|
||||
|
||||
// the function will return a map
|
||||
// [
|
||||
|
@ -49,7 +49,7 @@ namespace Opm {
|
||||
void serializeOp(Serializer&) {
|
||||
}
|
||||
|
||||
static RegularSegment serializeObject() {
|
||||
static RegularSegment serializationTestObject() {
|
||||
return RegularSegment();
|
||||
}
|
||||
|
||||
@ -79,7 +79,7 @@ namespace Opm {
|
||||
double internal_diameter_in, double roughness_in, double cross_area_in, double volume_in, bool data_ready_in);
|
||||
Segment(const RestartIO::RstSegment& rst_segment);
|
||||
|
||||
static Segment serializeObject();
|
||||
static Segment serializationTestObject();
|
||||
|
||||
int segmentNumber() const;
|
||||
int branchNumber() const;
|
||||
|
@ -48,7 +48,7 @@ namespace Opm {
|
||||
double pipeCrossA,
|
||||
ICDStatus stat);
|
||||
|
||||
static Valve serializeObject();
|
||||
static Valve serializationTestObject();
|
||||
|
||||
// the function will return a map
|
||||
// [
|
||||
|
@ -71,7 +71,7 @@ namespace Opm {
|
||||
explicit WellSegments(const DeckKeyword& keyword);
|
||||
void loadWELSEGS( const DeckKeyword& welsegsKeyword);
|
||||
|
||||
static WellSegments serializeObject();
|
||||
static WellSegments serializationTestObject();
|
||||
|
||||
std::size_t size() const;
|
||||
double depthTopSegment() const;
|
||||
|
@ -30,7 +30,7 @@ namespace Opm {
|
||||
MessageLimits();
|
||||
explicit MessageLimits(const Deck& deck);
|
||||
|
||||
static MessageLimits serializeObject();
|
||||
static MessageLimits serializationTestObject();
|
||||
|
||||
///Get all the value from MESSAGES keyword.
|
||||
int getMessagePrintLimit() const;
|
||||
|
@ -49,7 +49,7 @@ public:
|
||||
explicit Balance(bool network_active);
|
||||
explicit Balance(const RestartIO::RstNetbalan& netbalan);
|
||||
|
||||
static Balance serializeObject();
|
||||
static Balance serializationTestObject();
|
||||
|
||||
CalcMode mode() const;
|
||||
double interval() const;
|
||||
|
@ -49,7 +49,7 @@ public:
|
||||
AlqEQ alq_eq() const;
|
||||
std::optional<double> alq_value() const;
|
||||
|
||||
static Branch serializeObject();
|
||||
static Branch serializationTestObject();
|
||||
bool operator==(const Branch& other) const;
|
||||
|
||||
template<class Serializer>
|
||||
|
@ -50,7 +50,7 @@ public:
|
||||
int NoOfBranches() const;
|
||||
|
||||
bool operator==(const ExtNetwork& other) const;
|
||||
static ExtNetwork serializeObject();
|
||||
static ExtNetwork serializationTestObject();
|
||||
|
||||
template<class Serializer>
|
||||
void serializeOp(Serializer& serializer)
|
||||
|
@ -42,7 +42,7 @@ public:
|
||||
void add_gas_lift_gas(bool add_gas);
|
||||
void as_choke(const std::string& target_group);
|
||||
|
||||
static Node serializeObject();
|
||||
static Node serializationTestObject();
|
||||
bool operator==(const Node& other) const;
|
||||
|
||||
template<class Serializer>
|
||||
|
@ -44,7 +44,7 @@ namespace Opm
|
||||
OilVaporizationProperties();
|
||||
explicit OilVaporizationProperties(const size_t numPvtReginIdx);
|
||||
|
||||
static OilVaporizationProperties serializeObject();
|
||||
static OilVaporizationProperties serializationTestObject();
|
||||
|
||||
static void updateDRSDT(Opm::OilVaporizationProperties& ovp, const std::vector<double>& maxDRSDT, const std::vector<std::string>& option);
|
||||
static void updateDRSDTCON(Opm::OilVaporizationProperties& ovp, const std::vector<double>& maxDRSDT, const std::vector<std::string>& option);
|
||||
|
@ -68,7 +68,7 @@ public:
|
||||
std::optional<RFTConfig> next() const;
|
||||
std::optional<RFTConfig> well_open(const std::string& wname) const;
|
||||
|
||||
static RFTConfig serializeObject();
|
||||
static RFTConfig serializationTestObject();
|
||||
bool operator==(const RFTConfig& data) const;
|
||||
|
||||
template <class Serializer>
|
||||
@ -86,7 +86,7 @@ private:
|
||||
using StateMap = std::unordered_map<std::string, Kind>;
|
||||
|
||||
// Please make sure that member functions serializeOp(), operator==(),
|
||||
// and serializeObject() are also up to date when changing this list of
|
||||
// and serializationTestObject() are also up to date when changing this list of
|
||||
// data members.
|
||||
bool first_open_rft = false;
|
||||
StateMap<RFT> rft_state{};
|
||||
|
@ -44,7 +44,7 @@ public:
|
||||
std::size_t size() const { return this->m_mnemonics.size(); };
|
||||
unsigned& at(const std::string& key) { return this->m_mnemonics.at(key); };
|
||||
|
||||
static RPTConfig serializeObject();
|
||||
static RPTConfig serializationTestObject();
|
||||
bool operator==(const RPTConfig& other) const;
|
||||
|
||||
private:
|
||||
|
@ -200,7 +200,7 @@ public:
|
||||
void update(const DeckKeyword& keyword, const ParseContext& parseContext, ErrorGuard& errors);
|
||||
void init_next();
|
||||
static RSTConfig first(const RSTConfig& src);
|
||||
static RSTConfig serializeObject();
|
||||
static RSTConfig serializationTestObject();
|
||||
|
||||
template<class Serializer>
|
||||
void serializeOp(Serializer& serializer) {
|
||||
|
@ -111,15 +111,15 @@ namespace Opm
|
||||
}
|
||||
|
||||
|
||||
static ScheduleStatic serializeObject() {
|
||||
static ScheduleStatic serializationTestObject() {
|
||||
auto python = std::make_shared<Python>(Python::Enable::OFF);
|
||||
ScheduleStatic st(python);
|
||||
st.m_deck_message_limits = MessageLimits::serializeObject();
|
||||
st.m_runspec = Runspec::serializeObject();
|
||||
st.m_deck_message_limits = MessageLimits::serializationTestObject();
|
||||
st.m_runspec = Runspec::serializationTestObject();
|
||||
st.m_unit_system = UnitSystem::newFIELD();
|
||||
st.m_input_path = "Some/funny/path";
|
||||
st.rst_config = RSTConfig::serializeObject();
|
||||
st.rst_info = ScheduleRestartInfo::serializeObject();
|
||||
st.rst_config = RSTConfig::serializationTestObject();
|
||||
st.rst_info = ScheduleRestartInfo::serializationTestObject();
|
||||
return st;
|
||||
}
|
||||
|
||||
@ -200,7 +200,7 @@ namespace Opm
|
||||
const std::optional<int>& output_interval = {},
|
||||
const RestartIO::RstState* rst = nullptr);
|
||||
|
||||
static Schedule serializeObject();
|
||||
static Schedule serializationTestObject();
|
||||
|
||||
/*
|
||||
* If the input deck does not specify a start time, Eclipse's 1. Jan
|
||||
@ -534,7 +534,7 @@ namespace Opm
|
||||
|
||||
// Please update the member functions
|
||||
// - operator==(const Schedule&) const
|
||||
// - serializeObject()
|
||||
// - serializationTestObject()
|
||||
// - serializeOp(Serializer&)
|
||||
// when you update/change this list of data members.
|
||||
ScheduleStatic m_static;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user