mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-28 20:13:49 -06:00
ImpesTPFAAD is no longer a template class.
This commit is contained in:
parent
e86aa3324c
commit
abc23b8009
@ -58,10 +58,6 @@ main(int argc, char* argv[])
|
||||
const Opm::BlackoilPropsAd props(oldprops);
|
||||
|
||||
typedef AutoDiff::ForwardBlock<double> ADB;
|
||||
typedef Opm::BlackoilPropertiesInterface Geology;
|
||||
typedef Opm::DerivedGeology GeoProps;
|
||||
typedef Opm::BlackoilPropsAd BOFluid;
|
||||
typedef Opm::ImpesTPFAAD<GeoProps> PSolver;
|
||||
|
||||
Wells* wells = create_wells(2, 2, 5);
|
||||
const double inj_frac[] = { 1.0, 0.0 };
|
||||
@ -84,9 +80,9 @@ main(int argc, char* argv[])
|
||||
set_current_control(1, 0, wells);
|
||||
|
||||
double grav[] = { /*1.0*/ 0.0, 0.0 };
|
||||
GeoProps geo(*g, oldprops, grav);
|
||||
Opm::DerivedGeology geo(*g, props, grav);
|
||||
Opm::LinearSolverFactory linsolver(param);
|
||||
PSolver ps (*g, props, geo, *wells, linsolver);
|
||||
Opm::ImpesTPFAAD ps(*g, props, geo, *wells, linsolver);
|
||||
|
||||
Opm::BlackoilState state;
|
||||
initStateBasic(*g, oldprops, param, 0.0, state);
|
||||
|
@ -103,14 +103,13 @@ namespace {
|
||||
namespace Opm {
|
||||
|
||||
|
||||
template <class GeoProps>
|
||||
class ImpesTPFAAD {
|
||||
public:
|
||||
ImpesTPFAAD(const UnstructuredGrid& grid ,
|
||||
const BlackoilPropsAdInterface& fluid,
|
||||
const GeoProps& geo ,
|
||||
const Wells& wells,
|
||||
const LinearSolverInterface& linsolver)
|
||||
ImpesTPFAAD(const UnstructuredGrid& grid,
|
||||
const BlackoilPropsAdInterface& fluid,
|
||||
const DerivedGeology& geo,
|
||||
const Wells& wells,
|
||||
const LinearSolverInterface& linsolver)
|
||||
: grid_ (grid)
|
||||
, fluid_ (fluid)
|
||||
, geo_ (geo)
|
||||
@ -198,7 +197,7 @@ namespace Opm {
|
||||
|
||||
const UnstructuredGrid& grid_;
|
||||
const BlackoilPropsAdInterface& fluid_;
|
||||
const GeoProps& geo_ ;
|
||||
const DerivedGeology& geo_ ;
|
||||
const Wells& wells_;
|
||||
const LinearSolverInterface& linsolver_;
|
||||
HelperOps ops_;
|
||||
|
Loading…
Reference in New Issue
Block a user