build flow_brine_energy as an object library

improves parallel builds
This commit is contained in:
Arne Morten Kvarving
2021-10-18 12:34:09 +02:00
parent 4a16e2cf3a
commit 8c7f635dc2
4 changed files with 79 additions and 36 deletions

View File

@@ -15,36 +15,10 @@
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <flow/flow_ebos_brine_energy.hpp>
#include <opm/material/common/ResetLocale.hpp>
#include <opm/simulators/flow/Main.hpp>
#if HAVE_DUNE_FEM
#include <dune/fem/misc/mpimanager.hh>
#else
#include <dune/common/parallel/mpihelper.hh>
#endif
namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowBrineProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
};
}
template<class TypeTag>
struct EnableBrine<TypeTag, TTag::EclFlowBrineProblem> {
static constexpr bool value = true;
};
template<class TypeTag>
struct EnableEnergy<TypeTag, TTag::EclFlowBrineProblem> {
static constexpr bool value = true;
};
}}
int main(int argc, char** argv)
{
using TypeTag = Opm::Properties::TTag::EclFlowBrineProblem;
auto mainObject = Opm::Main(argc, argv);
return mainObject.runStatic<TypeTag>();
return Opm::flowEbosBrineEnergyMain(argc, argv);
}