mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-22 01:07:24 -06:00
move ebos/eclcpgridvanguard.hh to opm/simulators/flow
This commit is contained in:
parent
bc2dd1110e
commit
04ed17ebd0
@ -411,7 +411,6 @@ list (APPEND TEST_DATA_FILES
|
||||
list (APPEND PUBLIC_HEADER_FILES
|
||||
ebos/ebos.hh
|
||||
ebos/eclbasevanguard.hh
|
||||
ebos/eclcpgridvanguard.hh
|
||||
ebos/eclgenericcpgridvanguard.hh
|
||||
ebos/eclgenericproblem.hh
|
||||
ebos/eclgenericproblem_impl.hh
|
||||
@ -433,6 +432,7 @@ list (APPEND PUBLIC_HEADER_FILES
|
||||
opm/simulators/flow/CollectDataOnIORank_impl.hpp
|
||||
opm/simulators/flow/ConvergenceOutputConfiguration.hpp
|
||||
opm/simulators/flow/countGlobalCells.hpp
|
||||
opm/simulators/flow/CpGridVanguard.hpp
|
||||
opm/simulators/flow/DummyGradientCalculator.hpp
|
||||
opm/simulators/flow/EclGenericWriter.hpp
|
||||
opm/simulators/flow/EclGenericWriter_impl.hpp
|
||||
|
@ -34,7 +34,6 @@
|
||||
#include <dune/common/fvector.hh>
|
||||
#include <dune/common/fmatrix.hh>
|
||||
|
||||
#include <ebos/eclcpgridvanguard.hh>
|
||||
#include <ebos/eclgenericproblem.hh>
|
||||
#include <ebos/eclnewtonmethod.hh>
|
||||
#include <ebos/eclproblem_properties.hh>
|
||||
@ -74,6 +73,7 @@
|
||||
|
||||
#include <opm/simulators/flow/ActionHandler.hpp>
|
||||
#include <opm/simulators/flow/BaseAquiferModel.hpp>
|
||||
#include <opm/simulators/flow/CpGridVanguard.hpp>
|
||||
#include <opm/simulators/flow/DummyGradientCalculator.hpp>
|
||||
#include <opm/simulators/flow/EclWriter.hpp>
|
||||
#include <opm/simulators/flow/EquilInitializer.hpp>
|
||||
|
@ -28,7 +28,6 @@
|
||||
#ifndef ECL_PROBLEM_PROPERTIES_HH
|
||||
#define ECL_PROBLEM_PROPERTIES_HH
|
||||
|
||||
#include <ebos/eclcpgridvanguard.hh>
|
||||
#include <ebos/eclnewtonmethod.hh>
|
||||
|
||||
#if HAVE_DAMARIS
|
||||
@ -44,6 +43,7 @@
|
||||
#include <opm/models/utils/propertysystem.hh>
|
||||
|
||||
#include <opm/simulators/flow/BaseAquiferModel.hpp>
|
||||
#include <opm/simulators/flow/CpGridVanguard.hpp>
|
||||
#include <opm/simulators/flow/DummyGradientCalculator.hpp>
|
||||
#include <opm/simulators/flow/EclWriter.hpp>
|
||||
#include <opm/simulators/flow/FIBlackoilModel.hpp>
|
||||
@ -63,7 +63,7 @@ namespace Opm::Properties {
|
||||
namespace TTag {
|
||||
|
||||
struct EclBaseProblem {
|
||||
using InheritsFrom = std::tuple<VtkTracer, OutputBlackOil, EclCpGridVanguard>;
|
||||
using InheritsFrom = std::tuple<VtkTracer, OutputBlackOil, CpGridVanguard>;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
|
@ -22,10 +22,10 @@
|
||||
*/
|
||||
/*!
|
||||
* \file
|
||||
* \copydoc Opm::EclCpGridVanguard
|
||||
* \copydoc Opm::CpGridVanguard
|
||||
*/
|
||||
#ifndef EWOMS_ECL_CP_GRID_VANGUARD_HH
|
||||
#define EWOMS_ECL_CP_GRID_VANGUARD_HH
|
||||
#ifndef OPM_CPGRID_VANGUARD_HPP
|
||||
#define OPM_CPGRID_VANGUARD_HPP
|
||||
|
||||
#include <ebos/eclbasevanguard.hh>
|
||||
#include <ebos/eclgenericcpgridvanguard.hh>
|
||||
@ -47,28 +47,28 @@
|
||||
|
||||
namespace Opm {
|
||||
template <class TypeTag>
|
||||
class EclCpGridVanguard;
|
||||
class CpGridVanguard;
|
||||
}
|
||||
|
||||
namespace Opm::Properties {
|
||||
|
||||
namespace TTag {
|
||||
struct EclCpGridVanguard {
|
||||
struct CpGridVanguard {
|
||||
using InheritsFrom = std::tuple<EclBaseVanguard>;
|
||||
};
|
||||
}
|
||||
|
||||
// declare the properties
|
||||
template<class TypeTag>
|
||||
struct Vanguard<TypeTag, TTag::EclCpGridVanguard> {
|
||||
using type = EclCpGridVanguard<TypeTag>;
|
||||
struct Vanguard<TypeTag, TTag::CpGridVanguard> {
|
||||
using type = CpGridVanguard<TypeTag>;
|
||||
};
|
||||
template<class TypeTag>
|
||||
struct Grid<TypeTag, TTag::EclCpGridVanguard> {
|
||||
struct Grid<TypeTag, TTag::CpGridVanguard> {
|
||||
using type = Dune::CpGrid;
|
||||
};
|
||||
template<class TypeTag>
|
||||
struct EquilGrid<TypeTag, TTag::EclCpGridVanguard> {
|
||||
struct EquilGrid<TypeTag, TTag::CpGridVanguard> {
|
||||
using type = GetPropType<TypeTag, Properties::Grid>;
|
||||
};
|
||||
|
||||
@ -77,14 +77,14 @@ struct EquilGrid<TypeTag, TTag::EclCpGridVanguard> {
|
||||
namespace Opm {
|
||||
|
||||
/*!
|
||||
* \ingroup EclBlackOilSimulator
|
||||
* \ingroup BlackOilSimulator
|
||||
*
|
||||
* \brief Helper class for grid instantiation of ECL file-format using problems.
|
||||
*
|
||||
* This class uses Dune::CpGrid as the simulation grid.
|
||||
*/
|
||||
template <class TypeTag>
|
||||
class EclCpGridVanguard : public EclBaseVanguard<TypeTag>
|
||||
class CpGridVanguard : public EclBaseVanguard<TypeTag>
|
||||
, public EclGenericCpGridVanguard<GetPropType<TypeTag, Properties::ElementMapper>,
|
||||
GetPropType<TypeTag, Properties::GridView>,
|
||||
GetPropType<TypeTag, Properties::Scalar>>
|
||||
@ -111,7 +111,7 @@ private:
|
||||
using Element = typename GridView::template Codim<0>::Entity;
|
||||
|
||||
public:
|
||||
EclCpGridVanguard(Simulator& simulator)
|
||||
CpGridVanguard(Simulator& simulator)
|
||||
: EclBaseVanguard<TypeTag>(simulator)
|
||||
{
|
||||
this->checkConsistency();
|
||||
@ -317,4 +317,4 @@ protected:
|
||||
|
||||
} // namespace Opm
|
||||
|
||||
#endif
|
||||
#endif // OPM_CPGRID_VANGUARD_HPP
|
Loading…
Reference in New Issue
Block a user