FieldTraits.hpp 366 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include <dune/common/ftraits.hh>

#include <amdis/common/Utility.hpp>

namespace AMDiS
{
  template <class... T>
  struct CommonFieldTraits
  {
    using field_type = std::common_type_t<typename Dune::FieldTraits<T>::field_type...>;
    using real_type = std::common_type_t<typename Dune::FieldTraits<T>::real_type...>;
  };

} // end namespace AMDiS