changed: rename externalSetupTime

external is (or will be) implied
This commit is contained in:
Arne Morten Kvarving 2022-06-14 09:43:04 +02:00
parent f3bf15ab2f
commit c793aff5d1
23 changed files with 28 additions and 28 deletions

View File

@ -53,7 +53,7 @@
namespace Opm { namespace Opm {
double EclGenericVanguard::externalSetupTime_ = 0.0; double EclGenericVanguard::setupTime_ = 0.0;
std::unique_ptr<ParseContext> EclGenericVanguard::externalParseContext_; std::unique_ptr<ParseContext> EclGenericVanguard::externalParseContext_;
std::unique_ptr<ErrorGuard> EclGenericVanguard::externalErrorGuard_; std::unique_ptr<ErrorGuard> EclGenericVanguard::externalErrorGuard_;
std::shared_ptr<Deck> EclGenericVanguard::externalDeck_; std::shared_ptr<Deck> EclGenericVanguard::externalDeck_;

View File

@ -96,16 +96,16 @@ public:
/*! /*!
* \brief Set the wall time which was spend externally to set up the external data structures * \brief Set the wall time which was spend externally to set up the external data structures
* *
* i.e., the objects specified via the other setExternal*() methods. * i.e., the objects specified via the other set*() methods.
*/ */
static void setExternalSetupTime(double t) static void setSetupTime(double t)
{ externalSetupTime_ = t; } { setupTime_ = t; }
/*! /*!
* \brief Returns the wall time required to set up the simulator before it was born. * \brief Returns the wall time required to set up the simulator before it was born.
*/ */
static double externalSetupTime() static double setupTime()
{ return externalSetupTime_; } { return setupTime_; }
/*! /*!
* \brief Set the Opm::ParseContext object which ought to be used for parsing the deck and creating the Opm::EclipseState object. * \brief Set the Opm::ParseContext object which ought to be used for parsing the deck and creating the Opm::EclipseState object.
@ -316,7 +316,7 @@ protected:
void init(); void init();
static double externalSetupTime_; static double setupTime_;
static std::unique_ptr<ParseContext> externalParseContext_; static std::unique_ptr<ParseContext> externalParseContext_;
static std::unique_ptr<ErrorGuard> externalErrorGuard_; static std::unique_ptr<ErrorGuard> externalErrorGuard_;

View File

@ -177,7 +177,7 @@ public:
const Scalar totalCpuTime = const Scalar totalCpuTime =
simulator_.executionTimer().realTimeElapsed() + simulator_.executionTimer().realTimeElapsed() +
simulator_.setupTimer().realTimeElapsed() + simulator_.setupTimer().realTimeElapsed() +
simulator_.vanguard().externalSetupTime(); simulator_.vanguard().setupTime();
const auto localWellData = simulator_.problem().wellModel().wellData(); const auto localWellData = simulator_.problem().wellModel().wellData();
const auto localGroupAndNetworkData = simulator_.problem().wellModel() const auto localGroupAndNetworkData = simulator_.problem().wellModel()

View File

@ -35,7 +35,7 @@ void flowEbosBlackoilSetDeck(double setupTime, std::shared_ptr<Deck> deck,
using TypeTag = Properties::TTag::EclFlowProblem; using TypeTag = Properties::TTag::EclFlowProblem;
using Vanguard = GetPropType<TypeTag, Properties::Vanguard>; using Vanguard = GetPropType<TypeTag, Properties::Vanguard>;
Vanguard::setExternalSetupTime(setupTime); Vanguard::setSetupTime(setupTime);
Vanguard::setExternalDeck(std::move(deck)); Vanguard::setExternalDeck(std::move(deck));
Vanguard::setExternalEclState(std::move(eclState)); Vanguard::setExternalEclState(std::move(eclState));
Vanguard::setExternalSchedule(std::move(schedule)); Vanguard::setExternalSchedule(std::move(schedule));

View File

@ -45,7 +45,7 @@ void flowEbosBrineSetDeck(double setupTime, std::shared_ptr<Deck> deck,
using TypeTag = Properties::TTag::EclFlowBrineProblem; using TypeTag = Properties::TTag::EclFlowBrineProblem;
using Vanguard = GetPropType<TypeTag, Properties::Vanguard>; using Vanguard = GetPropType<TypeTag, Properties::Vanguard>;
Vanguard::setExternalSetupTime(setupTime); Vanguard::setSetupTime(setupTime);
Vanguard::setExternalDeck(std::move(deck)); Vanguard::setExternalDeck(std::move(deck));
Vanguard::setExternalEclState(std::move(eclState)); Vanguard::setExternalEclState(std::move(eclState));
Vanguard::setExternalSchedule(std::move(schedule)); Vanguard::setExternalSchedule(std::move(schedule));

View File

@ -55,7 +55,7 @@ void flowEbosBrinePrecsaltVapwatSetDeck(double setupTime, std::shared_ptr<Deck>
using TypeTag = Properties::TTag::EclFlowBrinePrecsaltVapwatProblem; using TypeTag = Properties::TTag::EclFlowBrinePrecsaltVapwatProblem;
using Vanguard = GetPropType<TypeTag, Properties::Vanguard>; using Vanguard = GetPropType<TypeTag, Properties::Vanguard>;
Vanguard::setExternalSetupTime(setupTime); Vanguard::setSetupTime(setupTime);
Vanguard::setExternalDeck(std::move(deck)); Vanguard::setExternalDeck(std::move(deck));
Vanguard::setExternalEclState(std::move(eclState)); Vanguard::setExternalEclState(std::move(eclState));
Vanguard::setExternalSchedule(std::move(schedule)); Vanguard::setExternalSchedule(std::move(schedule));

View File

@ -50,7 +50,7 @@ void flowEbosBrineSaltPrecipitationSetDeck(double setupTime, std::shared_ptr<Dec
using TypeTag = Properties::TTag::EclFlowBrineSaltPrecipitationProblem; using TypeTag = Properties::TTag::EclFlowBrineSaltPrecipitationProblem;
using Vanguard = GetPropType<TypeTag, Properties::Vanguard>; using Vanguard = GetPropType<TypeTag, Properties::Vanguard>;
Vanguard::setExternalSetupTime(setupTime); Vanguard::setSetupTime(setupTime);
Vanguard::setExternalDeck(std::move(deck)); Vanguard::setExternalDeck(std::move(deck));
Vanguard::setExternalEclState(std::move(eclState)); Vanguard::setExternalEclState(std::move(eclState));
Vanguard::setExternalSchedule(std::move(schedule)); Vanguard::setExternalSchedule(std::move(schedule));

View File

@ -45,7 +45,7 @@ void flowEbosEnergySetDeck(double setupTime, std::shared_ptr<Deck> deck,
using TypeTag = Properties::TTag::EclFlowEnergyProblem; using TypeTag = Properties::TTag::EclFlowEnergyProblem;
using Vanguard = GetPropType<TypeTag, Properties::Vanguard>; using Vanguard = GetPropType<TypeTag, Properties::Vanguard>;
Vanguard::setExternalSetupTime(setupTime); Vanguard::setSetupTime(setupTime);
Vanguard::setExternalDeck(std::move(deck)); Vanguard::setExternalDeck(std::move(deck));
Vanguard::setExternalEclState(std::move(eclState)); Vanguard::setExternalEclState(std::move(eclState));
Vanguard::setExternalSchedule(std::move(schedule)); Vanguard::setExternalSchedule(std::move(schedule));

View File

@ -45,7 +45,7 @@ void flowEbosExtboSetDeck(double setupTime, std::shared_ptr<Deck> deck,
using TypeTag = Properties::TTag::EclFlowExtboProblem; using TypeTag = Properties::TTag::EclFlowExtboProblem;
using Vanguard = GetPropType<TypeTag, Properties::Vanguard>; using Vanguard = GetPropType<TypeTag, Properties::Vanguard>;
Vanguard::setExternalSetupTime(setupTime); Vanguard::setSetupTime(setupTime);
Vanguard::setExternalDeck(std::move(deck)); Vanguard::setExternalDeck(std::move(deck));
Vanguard::setExternalEclState(std::move(eclState)); Vanguard::setExternalEclState(std::move(eclState));
Vanguard::setExternalSchedule(std::move(schedule)); Vanguard::setExternalSchedule(std::move(schedule));

View File

@ -45,7 +45,7 @@ void flowEbosFoamSetDeck(double setupTime, std::shared_ptr<Deck> deck,
using TypeTag = Properties::TTag::EclFlowFoamProblem; using TypeTag = Properties::TTag::EclFlowFoamProblem;
using Vanguard = GetPropType<TypeTag, Properties::Vanguard>; using Vanguard = GetPropType<TypeTag, Properties::Vanguard>;
Vanguard::setExternalSetupTime(setupTime); Vanguard::setSetupTime(setupTime);
Vanguard::setExternalDeck(std::move(deck)); Vanguard::setExternalDeck(std::move(deck));
Vanguard::setExternalEclState(std::move(eclState)); Vanguard::setExternalEclState(std::move(eclState));
Vanguard::setExternalSchedule(std::move(schedule)); Vanguard::setExternalSchedule(std::move(schedule));

View File

@ -66,7 +66,7 @@ void flowEbosGasOilSetDeck(double setupTime, std::shared_ptr<Deck> deck,
using TypeTag = Properties::TTag::EclFlowGasOilProblem; using TypeTag = Properties::TTag::EclFlowGasOilProblem;
using Vanguard = GetPropType<TypeTag, Properties::Vanguard>; using Vanguard = GetPropType<TypeTag, Properties::Vanguard>;
Vanguard::setExternalSetupTime(setupTime); Vanguard::setSetupTime(setupTime);
Vanguard::setExternalDeck(std::move(deck)); Vanguard::setExternalDeck(std::move(deck));
Vanguard::setExternalEclState(std::move(eclState)); Vanguard::setExternalEclState(std::move(eclState));
Vanguard::setExternalSchedule(std::move(schedule)); Vanguard::setExternalSchedule(std::move(schedule));

View File

@ -70,7 +70,7 @@ void flowEbosGasOilEnergySetDeck(double setupTime, std::shared_ptr<Deck> deck,
using TypeTag = Properties::TTag::EclFlowGasOilEnergyProblem; using TypeTag = Properties::TTag::EclFlowGasOilEnergyProblem;
using Vanguard = GetPropType<TypeTag, Properties::Vanguard>; using Vanguard = GetPropType<TypeTag, Properties::Vanguard>;
Vanguard::setExternalSetupTime(setupTime); Vanguard::setSetupTime(setupTime);
Vanguard::setExternalDeck(std::move(deck)); Vanguard::setExternalDeck(std::move(deck));
Vanguard::setExternalEclState(std::move(eclState)); Vanguard::setExternalEclState(std::move(eclState));
Vanguard::setExternalSchedule(std::move(schedule)); Vanguard::setExternalSchedule(std::move(schedule));

View File

@ -69,7 +69,7 @@ void flowEbosGasWaterSetDeck(double setupTime, std::shared_ptr<Deck> deck,
using TypeTag = Properties::TTag::EclFlowGasWaterProblem; using TypeTag = Properties::TTag::EclFlowGasWaterProblem;
using Vanguard = GetPropType<TypeTag, Properties::Vanguard>; using Vanguard = GetPropType<TypeTag, Properties::Vanguard>;
Vanguard::setExternalSetupTime(setupTime); Vanguard::setSetupTime(setupTime);
Vanguard::setExternalDeck(std::move(deck)); Vanguard::setExternalDeck(std::move(deck));
Vanguard::setExternalEclState(std::move(eclState)); Vanguard::setExternalEclState(std::move(eclState));
Vanguard::setExternalSchedule(std::move(schedule)); Vanguard::setExternalSchedule(std::move(schedule));

View File

@ -69,7 +69,7 @@ void flowEbosGasWaterBrineSetDeck(double setupTime, std::shared_ptr<Deck> deck,
using TypeTag = Properties::TTag::EclFlowGasWaterBrineProblem; using TypeTag = Properties::TTag::EclFlowGasWaterBrineProblem;
using Vanguard = GetPropType<TypeTag, Properties::Vanguard>; using Vanguard = GetPropType<TypeTag, Properties::Vanguard>;
Vanguard::setExternalSetupTime(setupTime); Vanguard::setSetupTime(setupTime);
Vanguard::setExternalDeck(std::move(deck)); Vanguard::setExternalDeck(std::move(deck));
Vanguard::setExternalEclState(std::move(eclState)); Vanguard::setExternalEclState(std::move(eclState));
Vanguard::setExternalSchedule(std::move(schedule)); Vanguard::setExternalSchedule(std::move(schedule));

View File

@ -80,7 +80,7 @@ void flowEbosGasWaterSaltprecVapwatSetDeck(double setupTime, std::shared_ptr<Dec
using TypeTag = Properties::TTag::EclFlowGasWaterSaltprecVapwatProblem; using TypeTag = Properties::TTag::EclFlowGasWaterSaltprecVapwatProblem;
using Vanguard = GetPropType<TypeTag, Properties::Vanguard>; using Vanguard = GetPropType<TypeTag, Properties::Vanguard>;
Vanguard::setExternalSetupTime(setupTime); Vanguard::setSetupTime(setupTime);
Vanguard::setExternalDeck(std::move(deck)); Vanguard::setExternalDeck(std::move(deck));
Vanguard::setExternalEclState(std::move(eclState)); Vanguard::setExternalEclState(std::move(eclState));
Vanguard::setExternalSchedule(std::move(schedule)); Vanguard::setExternalSchedule(std::move(schedule));

View File

@ -69,7 +69,7 @@ void flowEbosMICPSetDeck(double setupTime, std::shared_ptr<Deck> deck,
using TypeTag = Properties::TTag::EclFlowMICPProblem; using TypeTag = Properties::TTag::EclFlowMICPProblem;
using Vanguard = GetPropType<TypeTag, Properties::Vanguard>; using Vanguard = GetPropType<TypeTag, Properties::Vanguard>;
Vanguard::setExternalSetupTime(setupTime); Vanguard::setSetupTime(setupTime);
Vanguard::setExternalDeck(std::move(deck)); Vanguard::setExternalDeck(std::move(deck));
Vanguard::setExternalEclState(std::move(eclState)); Vanguard::setExternalEclState(std::move(eclState));
Vanguard::setExternalSchedule(std::move(schedule)); Vanguard::setExternalSchedule(std::move(schedule));

View File

@ -66,7 +66,7 @@ void flowEbosOilWaterSetDeck(double setupTime, std::shared_ptr<Deck> deck,
using TypeTag = Properties::TTag::EclFlowOilWaterProblem; using TypeTag = Properties::TTag::EclFlowOilWaterProblem;
using Vanguard = GetPropType<TypeTag, Properties::Vanguard>; using Vanguard = GetPropType<TypeTag, Properties::Vanguard>;
Vanguard::setExternalSetupTime(setupTime); Vanguard::setSetupTime(setupTime);
Vanguard::setExternalDeck(std::move(deck)); Vanguard::setExternalDeck(std::move(deck));
Vanguard::setExternalEclState(std::move(eclState)); Vanguard::setExternalEclState(std::move(eclState));
Vanguard::setExternalSchedule(std::move(schedule)); Vanguard::setExternalSchedule(std::move(schedule));

View File

@ -69,7 +69,7 @@ void flowEbosOilWaterBrineSetDeck(double setupTime, std::shared_ptr<Deck> deck,
using TypeTag = Properties::TTag::EclFlowOilWaterBrineProblem; using TypeTag = Properties::TTag::EclFlowOilWaterBrineProblem;
using Vanguard = GetPropType<TypeTag, Properties::Vanguard>; using Vanguard = GetPropType<TypeTag, Properties::Vanguard>;
Vanguard::setExternalSetupTime(setupTime); Vanguard::setSetupTime(setupTime);
Vanguard::setExternalDeck(std::move(deck)); Vanguard::setExternalDeck(std::move(deck));
Vanguard::setExternalEclState(std::move(eclState)); Vanguard::setExternalEclState(std::move(eclState));
Vanguard::setExternalSchedule(std::move(schedule)); Vanguard::setExternalSchedule(std::move(schedule));

View File

@ -69,7 +69,7 @@ void flowEbosOilWaterPolymerSetDeck(double setupTime, std::shared_ptr<Deck> deck
using TypeTag = Properties::TTag::EclFlowOilWaterPolymerProblem; using TypeTag = Properties::TTag::EclFlowOilWaterPolymerProblem;
using Vanguard = GetPropType<TypeTag, Properties::Vanguard>; using Vanguard = GetPropType<TypeTag, Properties::Vanguard>;
Vanguard::setExternalSetupTime(setupTime); Vanguard::setSetupTime(setupTime);
Vanguard::setExternalDeck(std::move(deck)); Vanguard::setExternalDeck(std::move(deck));
Vanguard::setExternalEclState(std::move(eclState)); Vanguard::setExternalEclState(std::move(eclState));
Vanguard::setExternalSchedule(std::move(schedule)); Vanguard::setExternalSchedule(std::move(schedule));

View File

@ -65,7 +65,7 @@ void flowEbosWaterOnlySetDeck(double setupTime, std::shared_ptr<Deck> deck,
using TypeTag = Properties::TTag::EclFlowProblemWaterOnly; using TypeTag = Properties::TTag::EclFlowProblemWaterOnly;
using Vanguard = GetPropType<TypeTag, Properties::Vanguard>; using Vanguard = GetPropType<TypeTag, Properties::Vanguard>;
Vanguard::setExternalSetupTime(setupTime); Vanguard::setSetupTime(setupTime);
Vanguard::setExternalDeck(std::move(deck)); Vanguard::setExternalDeck(std::move(deck));
Vanguard::setExternalEclState(std::move(eclState)); Vanguard::setExternalEclState(std::move(eclState));
Vanguard::setExternalSchedule(std::move(schedule)); Vanguard::setExternalSchedule(std::move(schedule));

View File

@ -72,7 +72,7 @@ void flowEbosWaterOnlyEnergySetDeck(double setupTime, std::shared_ptr<Deck> deck
using TypeTag = Properties::TTag::EclFlowProblemWaterOnlyEnergy; using TypeTag = Properties::TTag::EclFlowProblemWaterOnlyEnergy;
using Vanguard = GetPropType<TypeTag, Properties::Vanguard>; using Vanguard = GetPropType<TypeTag, Properties::Vanguard>;
Vanguard::setExternalSetupTime(setupTime); Vanguard::setSetupTime(setupTime);
Vanguard::setExternalDeck(std::move(deck)); Vanguard::setExternalDeck(std::move(deck));
Vanguard::setExternalEclState(std::move(eclState)); Vanguard::setExternalEclState(std::move(eclState));
Vanguard::setExternalSchedule(std::move(schedule)); Vanguard::setExternalSchedule(std::move(schedule));

View File

@ -45,7 +45,7 @@ void flowEbosPolymerSetDeck(double setupTime, std::shared_ptr<Deck> deck,
using TypeTag = Properties::TTag::EclFlowPolymerProblem; using TypeTag = Properties::TTag::EclFlowPolymerProblem;
using Vanguard = GetPropType<TypeTag, Properties::Vanguard>; using Vanguard = GetPropType<TypeTag, Properties::Vanguard>;
Vanguard::setExternalSetupTime(setupTime); Vanguard::setSetupTime(setupTime);
Vanguard::setExternalDeck(std::move(deck)); Vanguard::setExternalDeck(std::move(deck));
Vanguard::setExternalEclState(std::move(eclState)); Vanguard::setExternalEclState(std::move(eclState));
Vanguard::setExternalSchedule(std::move(schedule)); Vanguard::setExternalSchedule(std::move(schedule));

View File

@ -45,7 +45,7 @@ void flowEbosSolventSetDeck(double setupTime, std::shared_ptr<Deck> deck,
using TypeTag = Properties::TTag::EclFlowSolventProblem; using TypeTag = Properties::TTag::EclFlowSolventProblem;
using Vanguard = GetPropType<TypeTag, Properties::Vanguard>; using Vanguard = GetPropType<TypeTag, Properties::Vanguard>;
Vanguard::setExternalSetupTime(setupTime); Vanguard::setSetupTime(setupTime);
Vanguard::setExternalDeck(std::move(deck)); Vanguard::setExternalDeck(std::move(deck));
Vanguard::setExternalEclState(std::move(eclState)); Vanguard::setExternalEclState(std::move(eclState));
Vanguard::setExternalSchedule(std::move(schedule)); Vanguard::setExternalSchedule(std::move(schedule));