Panzer Version of the Day
Loading...
Searching...
No Matches
Panzer_ArrayTraits.hpp
Go to the documentation of this file.
1// @HEADER
2// *****************************************************************************
3// Panzer: A partial differential equation assembly
4// engine for strongly coupled complex multiphysics systems
5//
6// Copyright 2011 NTESS and the Panzer contributors.
7// SPDX-License-Identifier: BSD-3-Clause
8// *****************************************************************************
9// @HEADER
10
11#ifndef PANZER_ARRAY_TRAITS_HPP
12#define PANZER_ARRAY_TRAITS_HPP
13
14#include "Kokkos_DynRankView.hpp"
15#include "Phalanx_MDField.hpp"
16
17namespace panzer {
18
26 template<typename Scalar, typename Array> struct ArrayTraits
27 {
28 typedef typename Array::size_type size_type;
29 };
30 /*
31 // Specialization for Intrepid2::FieldContainer
32 template<typename Scalar>
33 struct ArrayTraits<Scalar,Kokkos::DynRankView<Scalar,PHX::Device> >
34 {
35 typedef int size_type;
36
37 // template <typename SubType>
38 // struct mod_scalar { typedef Intrepid2::FieldContainer<SubType> array_type; };
39
40 };
41 */
42/*
43 // Specialization for MDField
44 template<typename Scalar>
45 struct ArrayTraits<Scalar,PHX::MDField<Scalar> >
46 {
47 typedef typename PHX::MDField<Scalar>::size_type size_type;
48
49 // template <typename SubType>
50 // struct mod_scalar { typedef PHX::MDField<SubType> array_type; };
51 };
52*/
53}
54
55#endif
Exposes the size type used by a given multidimensional array type, so generic code can name it withou...
Array::size_type size_type