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 09:31:09 +01:00
parent 1a80378b0a
commit 9395c74b3e
43 changed files with 531 additions and 75 deletions
+8 -1
View File
@@ -20,7 +20,7 @@
#include <opm/material/common/ResetLocale.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>
@@ -75,4 +75,11 @@ int flowEbosBlackoilMain(int argc, char** argv, bool outputCout, bool outputFile
return mainfunc->execute();
}
int flowEbosBlackoilMainStandalone(int argc, char** argv)
{
using TypeTag = Properties::TTag::EclFlowProblem;
auto mainObject = Opm::Main(argc, argv);
return mainObject.runStatic<TypeTag>();
}
}