mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-26 09:10:59 -06:00
Work in progress on adapting to opm-core.
This commit is contained in:
parent
fcfbd0e2a2
commit
ca48cbe6a4
@ -21,8 +21,7 @@
|
||||
#define OPM_BLACKOILDEFS_HEADER_INCLUDED
|
||||
|
||||
|
||||
#include <dune/common/fvector.hh>
|
||||
#include <dune/common/fmatrix.hh>
|
||||
#include <tr1/array>
|
||||
#include <boost/static_assert.hpp>
|
||||
|
||||
namespace Opm
|
||||
@ -38,11 +37,15 @@ namespace Opm
|
||||
enum PhaseIndex { Aqua = 0, Liquid = 1, Vapour = 2 };
|
||||
|
||||
typedef double Scalar;
|
||||
typedef Dune::FieldVector<Scalar, numComponents> CompVec;
|
||||
typedef Dune::FieldVector<Scalar, numPhases> PhaseVec;
|
||||
// typedef Dune::FieldVector<Scalar, numComponents> CompVec;
|
||||
// typedef Dune::FieldVector<Scalar, numPhases> PhaseVec;
|
||||
typedef std::tr1::array<Scalar, numComponents> CompVec;
|
||||
typedef std::tr1::array<Scalar, numPhases> PhaseVec;
|
||||
BOOST_STATIC_ASSERT(int(numComponents) == int(numPhases));
|
||||
typedef Dune::FieldMatrix<Scalar, numComponents, numPhases> PhaseToCompMatrix;
|
||||
typedef Dune::FieldMatrix<Scalar, numPhases, numPhases> PhaseJacobian;
|
||||
// typedef Dune::FieldMatrix<Scalar, numComponents, numPhases> PhaseToCompMatrix;
|
||||
// typedef Dune::FieldMatrix<Scalar, numPhases, numPhases> PhaseJacobian;
|
||||
typedef std::tr1::array<PhaseVec, numComponents> PhaseToCompMatrix;
|
||||
typedef std::tr1::array<PhaseVec, numPhases> PhaseJacobian;
|
||||
};
|
||||
|
||||
} // namespace Opm
|
||||
|
Loading…
Reference in New Issue
Block a user