mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Added a static assertation and two matrix types.
This commit is contained in:
parent
d30da303bb
commit
da9b3f0565
@ -22,7 +22,8 @@
|
|||||||
|
|
||||||
|
|
||||||
#include <dune/common/fvector.hh>
|
#include <dune/common/fvector.hh>
|
||||||
|
#include <dune/common/fmatrix.hh>
|
||||||
|
#include <boost/static_assert.hpp>
|
||||||
|
|
||||||
namespace Opm
|
namespace Opm
|
||||||
{
|
{
|
||||||
@ -39,6 +40,9 @@ namespace Opm
|
|||||||
typedef double Scalar;
|
typedef double Scalar;
|
||||||
typedef Dune::FieldVector<Scalar, numComponents> CompVec;
|
typedef Dune::FieldVector<Scalar, numComponents> CompVec;
|
||||||
typedef Dune::FieldVector<Scalar, numPhases> PhaseVec;
|
typedef Dune::FieldVector<Scalar, numPhases> PhaseVec;
|
||||||
|
BOOST_STATIC_ASSERT(int(numComponents) == int(numPhases));
|
||||||
|
typedef Dune::FieldMatrix<Scalar, numComponents, numPhases> PhaseToCompMatrix;
|
||||||
|
typedef Dune::FieldMatrix<Scalar, numPhases, numPhases> PhaseJacobian;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Opm
|
} // namespace Opm
|
||||||
|
Loading…
Reference in New Issue
Block a user