mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Main: move code for setting up Vanguard to compile unit
This commit is contained in:
@@ -200,4 +200,15 @@ void Main::readDeck(const std::string& deckFilename,
|
|||||||
outputFiles_ = (omode != FileOutputMode::OUTPUT_NONE);
|
outputFiles_ = (omode != FileOutputMode::OUTPUT_NONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Main::setupVanguard()
|
||||||
|
{
|
||||||
|
EclGenericVanguard::setParams(this->setupTime_,
|
||||||
|
this->eclipseState_,
|
||||||
|
this->schedule_,
|
||||||
|
std::move(this->udqState_),
|
||||||
|
std::move(this->actionState_),
|
||||||
|
std::move(this->wtestState_),
|
||||||
|
this->summaryConfig_);
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace Opm
|
} // namespace Opm
|
||||||
|
|||||||
@@ -172,14 +172,7 @@ public:
|
|||||||
if (initialize_<Properties::TTag::FlowEarlyBird>(exitCode)) {
|
if (initialize_<Properties::TTag::FlowEarlyBird>(exitCode)) {
|
||||||
// TODO: check that this deck really represents a blackoil
|
// TODO: check that this deck really represents a blackoil
|
||||||
// case. E.g. check that number of phases == 3
|
// case. E.g. check that number of phases == 3
|
||||||
EclGenericVanguard::setParams(
|
this->setupVanguard();
|
||||||
setupTime_,
|
|
||||||
eclipseState_,
|
|
||||||
schedule_,
|
|
||||||
std::move(udqState_),
|
|
||||||
std::move(this->actionState_),
|
|
||||||
std::move(this->wtestState_),
|
|
||||||
summaryConfig_);
|
|
||||||
return flowEbosBlackoilTpfaMainInit(
|
return flowEbosBlackoilTpfaMainInit(
|
||||||
argc_, argv_, outputCout_, outputFiles_);
|
argc_, argv_, outputCout_, outputFiles_);
|
||||||
} else {
|
} else {
|
||||||
@@ -194,13 +187,7 @@ private:
|
|||||||
const auto& rspec = this->eclipseState_->runspec();
|
const auto& rspec = this->eclipseState_->runspec();
|
||||||
const auto& phases = rspec.phases();
|
const auto& phases = rspec.phases();
|
||||||
|
|
||||||
EclGenericVanguard::setParams(this->setupTime_,
|
this->setupVanguard();
|
||||||
this->eclipseState_,
|
|
||||||
this->schedule_,
|
|
||||||
std::move(this->udqState_),
|
|
||||||
std::move(this->actionState_),
|
|
||||||
std::move(this->wtestState_),
|
|
||||||
this->summaryConfig_);
|
|
||||||
|
|
||||||
// run the actual simulator
|
// run the actual simulator
|
||||||
//
|
//
|
||||||
@@ -277,13 +264,7 @@ private:
|
|||||||
template <class TypeTag>
|
template <class TypeTag>
|
||||||
int dispatchStatic_()
|
int dispatchStatic_()
|
||||||
{
|
{
|
||||||
EclGenericVanguard::setParams(this->setupTime_,
|
this->setupVanguard();
|
||||||
this->eclipseState_,
|
|
||||||
this->schedule_,
|
|
||||||
std::move(this->udqState_),
|
|
||||||
std::move(this->actionState_),
|
|
||||||
std::move(this->wtestState_),
|
|
||||||
this->summaryConfig_);
|
|
||||||
return flowEbosMain<TypeTag>(argc_, argv_, outputCout_, outputFiles_);
|
return flowEbosMain<TypeTag>(argc_, argv_, outputCout_, outputFiles_);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -652,6 +633,8 @@ private:
|
|||||||
const int mpiRank,
|
const int mpiRank,
|
||||||
const int output_param);
|
const int output_param);
|
||||||
|
|
||||||
|
void setupVanguard();
|
||||||
|
|
||||||
int argc_{0};
|
int argc_{0};
|
||||||
char** argv_{nullptr};
|
char** argv_{nullptr};
|
||||||
bool outputCout_{false};
|
bool outputCout_{false};
|
||||||
|
|||||||
Reference in New Issue
Block a user