changed: build separate simulator binaries for flow

this is very convenient during development.
we can then remove the FLOW_BLACKOIL_ONLY option,
as it is no longer needed - use the flow_blackoil binary instead.
however we need to keep this support in Main.hpp due to the python
bindings relying on it.
This commit is contained in:
Arne Morten Kvarving
2021-11-01 08:33:17 +01:00
parent 1a80378b0a
commit 9395c74b3e
43 changed files with 531 additions and 75 deletions

View File

@@ -21,7 +21,7 @@
#include <opm/material/common/ResetLocale.hpp>
#include <opm/grid/CpGrid.hpp>
#include <opm/simulators/flow/SimulatorFullyImplicitBlackoilEbos.hpp>
#include <opm/simulators/flow/FlowMainEbos.hpp>
#include <opm/simulators/flow/Main.hpp>
#if HAVE_DUNE_FEM
#include <dune/fem/misc/mpimanager.hh>
@@ -77,4 +77,11 @@ int flowEbosPolymerMain(int argc, char** argv, bool outputCout, bool outputFiles
return mainfunc.execute();
}
int flowEbosPolymerMainStandalone(int argc, char** argv)
{
using TypeTag = Properties::TTag::EclFlowPolymerProblem;
auto mainObject = Opm::Main(argc, argv);
return mainObject.runStatic<TypeTag>();
}
}