making DynamicEvaluation using FastSmallVector

This commit is contained in:
Kai Bao
2019-03-15 13:38:07 +01:00
parent c633e70f81
commit e4d23d201e

View File

@@ -34,6 +34,7 @@
#include "Evaluation.hpp"
#include "Math.hpp"
#include "FastSmallVector.hpp"
#include <opm/material/common/Valgrind.hpp>
@@ -87,8 +88,8 @@ protected:
void checkDefined_() const
{
#ifndef NDEBUG
for (const auto& v: data_)
Valgrind::CheckDefined(v);
for (int i = dstart_(); i < dend_(); ++i)
Valgrind::CheckDefined(data_[i]);
#endif
}
@@ -518,7 +519,7 @@ public:
private:
std::vector<ValueT> data_;
FastSmallVector<ValueT, 8> data_;
};
template <class Scalar>