mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
changed: introduce EclGenericVanguard::setParams
this is used transferring ownership of setup structures to the simulator. drop all the flowEbosXXX set deck methods and use the generic vanguard. also means various structs that were only passed in the blackoil simulator are now passed in all simulators.
This commit is contained in:
@@ -37,20 +37,6 @@ struct EnableExtbo<TypeTag, TTag::EclFlowExtboProblem> {
|
||||
}}
|
||||
|
||||
namespace Opm {
|
||||
void flowEbosExtboSetDeck(double setupTime, std::shared_ptr<Deck> deck,
|
||||
std::shared_ptr<EclipseState> eclState,
|
||||
std::shared_ptr<Schedule> schedule,
|
||||
std::shared_ptr<SummaryConfig> summaryConfig)
|
||||
{
|
||||
using TypeTag = Properties::TTag::EclFlowExtboProblem;
|
||||
using Vanguard = GetPropType<TypeTag, Properties::Vanguard>;
|
||||
|
||||
Vanguard::setSetupTime(setupTime);
|
||||
Vanguard::setDeck(std::move(deck));
|
||||
Vanguard::setEclState(std::move(eclState));
|
||||
Vanguard::setSchedule(std::move(schedule));
|
||||
Vanguard::setSummaryConfig(std::move(summaryConfig));
|
||||
}
|
||||
|
||||
// ----------------- Main program -----------------
|
||||
int flowEbosExtboMain(int argc, char** argv, bool outputCout, bool outputFiles)
|
||||
|
||||
Reference in New Issue
Block a user