don't include dune traits for Evaluation

unused and it creates an unnecessary dune-common dependency
now test_EvaluationFormat no longer depends on dune-common
This commit is contained in:
Arne Morten Kvarving
2022-12-22 09:15:02 +01:00
parent 7be5addcf5
commit fd6e793b6a
4 changed files with 2 additions and 33 deletions

View File

@@ -614,22 +614,6 @@ std::ostream& operator<<(std::ostream& os, const Evaluation<ValueType, numVars,
} // namespace DenseAd
} // namespace Opm
// this makes the Dune matrix/vector classes happy...
#include <dune/common/ftraits.hh>
namespace Dune {
template <class ValueType, int numVars, unsigned staticSize>
struct FieldTraits<Opm::DenseAd::Evaluation<ValueType, numVars, staticSize> >
{
public:
typedef Opm::DenseAd::Evaluation<ValueType, numVars, staticSize> field_type;
// setting real_type to field_type here potentially leads to slightly worse
// performance, but at least it makes things compile.
typedef field_type real_type;
};
} // namespace Dune
#include "EvaluationSpecializations.hpp"
#endif // OPM_DENSEAD_EVALUATION_HPP

View File

@@ -37,6 +37,7 @@
#include <opm/material/common/PolynomialUtils.hpp>
#include <csignal>
#include <sstream>
namespace Opm {