mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
move ebos/eclcpgridvanguard.hh to opm/simulators/flow
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <opm/simulators/flow/Main.hpp>
|
||||
#include <ebos/eclcpgridvanguard.hh>
|
||||
#include <opm/simulators/flow/CpGridVanguard.hpp>
|
||||
|
||||
std::vector<int> loadBalanceInZOnly(const Dune::CpGrid& grid)
|
||||
{
|
||||
@@ -61,7 +61,7 @@ std::vector<int> loadBalanceInZOnly(const Dune::CpGrid& grid)
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
auto mainObject = std::make_unique<Opm::Main>(argc, argv);
|
||||
Opm::EclCpGridVanguard<Opm::Properties::TTag::FlowProblem>::setExternalLoadBalancer(loadBalanceInZOnly);
|
||||
Opm::CpGridVanguard<Opm::Properties::TTag::FlowProblem>::setExternalLoadBalancer(loadBalanceInZOnly);
|
||||
auto ret = mainObject->runDynamic();
|
||||
// Destruct mainObject as the destructor calls MPI_Finalize!
|
||||
mainObject.reset();
|
||||
|
||||
Reference in New Issue
Block a user