specify the type for the data storage via EvaluationOps

This commit is contained in:
Andreas Lauser 2017-03-16 00:42:14 +01:00
parent b91c9feca9
commit cba7ad9530
14 changed files with 28 additions and 1 deletions

View File

@ -66,6 +66,8 @@ private:
static constexpr int dend_ = Eval::dend_ ;
public:
typedef std::array<ValueT, length_> DataVector;
static inline void clearDerivatives(Eval& a)
{
for (int i = dstart_; i < dend_; ++i)
@ -472,7 +474,7 @@ public:
}
protected:
std::array<ValueType, length_> data_;
typename Ops::DataVector data_;
};
template <class RhsValueType, class ValueType, int numVars>

View File

@ -41,6 +41,8 @@ private:
typedef Evaluation<ValueT, 1 > Eval;
public:
typedef std::array<ValueT, 2 > DataVector;
static inline void assign(Eval& a, const Eval& b)
{

View File

@ -41,6 +41,8 @@ private:
typedef Evaluation<ValueT, 10 > Eval;
public:
typedef std::array<ValueT, 11 > DataVector;
static inline void assign(Eval& a, const Eval& b)
{

View File

@ -41,6 +41,8 @@ private:
typedef Evaluation<ValueT, 11 > Eval;
public:
typedef std::array<ValueT, 12 > DataVector;
static inline void assign(Eval& a, const Eval& b)
{

View File

@ -41,6 +41,8 @@ private:
typedef Evaluation<ValueT, 12 > Eval;
public:
typedef std::array<ValueT, 13 > DataVector;
static inline void assign(Eval& a, const Eval& b)
{

View File

@ -41,6 +41,8 @@ private:
typedef Evaluation<ValueT, 2 > Eval;
public:
typedef std::array<ValueT, 3 > DataVector;
static inline void assign(Eval& a, const Eval& b)
{

View File

@ -41,6 +41,8 @@ private:
typedef Evaluation<ValueT, 3 > Eval;
public:
typedef std::array<ValueT, 4 > DataVector;
static inline void assign(Eval& a, const Eval& b)
{

View File

@ -41,6 +41,8 @@ private:
typedef Evaluation<ValueT, 4 > Eval;
public:
typedef std::array<ValueT, 5 > DataVector;
static inline void assign(Eval& a, const Eval& b)
{

View File

@ -41,6 +41,8 @@ private:
typedef Evaluation<ValueT, 5 > Eval;
public:
typedef std::array<ValueT, 6 > DataVector;
static inline void assign(Eval& a, const Eval& b)
{

View File

@ -41,6 +41,8 @@ private:
typedef Evaluation<ValueT, 6 > Eval;
public:
typedef std::array<ValueT, 7 > DataVector;
static inline void assign(Eval& a, const Eval& b)
{

View File

@ -41,6 +41,8 @@ private:
typedef Evaluation<ValueT, 7 > Eval;
public:
typedef std::array<ValueT, 8 > DataVector;
static inline void assign(Eval& a, const Eval& b)
{

View File

@ -41,6 +41,8 @@ private:
typedef Evaluation<ValueT, 8 > Eval;
public:
typedef std::array<ValueT, 9 > DataVector;
static inline void assign(Eval& a, const Eval& b)
{

View File

@ -41,6 +41,8 @@ private:
typedef Evaluation<ValueT, 9 > Eval;
public:
typedef std::array<ValueT, 10 > DataVector;
static inline void assign(Eval& a, const Eval& b)
{

View File

@ -44,4 +44,5 @@
#include <opm/material/densead/Evaluation11.hpp>
#include <opm/material/densead/Evaluation12.hpp>
#endif // OPM_DENSEAD_EVALUATION_SPECIALIZATIONS_HPP