Files
opm-upscaling/examples/steadystate_test_implicit.cpp
T

76 lines
2.4 KiB
C++

//===========================================================================
//
// File: steadystate_test.cpp
//
// Created: Fri Aug 28 14:11:03 2009
//
// Author(s): Atgeirr F Rasmussen <atgeirr@sintef.no>
// Brd Skaflestad <bard.skaflestad@sintef.no>
//
// $Date$
//
// $Revision$
//
//===========================================================================
/*
Copyright 2009, 2010 SINTEF ICT, Applied Mathematics.
Copyright 2009, 2010 Statoil ASA.
This file is part of The Open Reservoir Simulator Project (OpenRS).
OpenRS is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenRS is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OpenRS. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include <opm/core/utility/have_boost_redef.hpp>
//#define VERBOSE
#include <opm/upscaling/SteadyStateUpscalerImplicit.hpp>
#include <opm/upscaling/SteadyStateUpscalerManagerImplicit.hpp>
//#include <opm/upscaling/UpscalingTraits.hpp>
#include <opm/porsol/euler/EulerUpstreamImplicit.hpp>
#include <opm/porsol/common/SimulatorTraits.hpp>
namespace Opm{
template <class IsotropyPolicy>
struct Implicit
{
template <class GridInterface, class BoundaryConditions>
struct TransportSolver
{
//enum { Dimension = GridInterface::Dimension };
enum { Dimension = GridInterface::Dimension };
typedef typename IsotropyPolicy::template ResProp<Dimension>::Type RP;
typedef EulerUpstreamImplicit<GridInterface,
RP,
BoundaryConditions> Type;
};
};
typedef SimulatorTraits<Isotropic, Implicit> UpscalingTraitsBasicImplicit;
}
using namespace Opm;
int main(int argc, char** argv)
{
// Initialize.
Opm::parameter::ParameterGroup param(argc, argv);
// MPIHelper::instance(argc,argv) ;
typedef SteadyStateUpscalerImplicit<UpscalingTraitsBasicImplicit> upscaler_t;
SteadyStateUpscalerManagerImplicit<upscaler_t> mgr;
mgr.upscale(param);
}