Debian Codegraph @

packages/phalanx/test/EvaluatorMacros/MyTraits.hpp

raw
1 // @HEADER
2 // *****************************************************************************
3 // Phalanx: A Partial Differential Equation Field Evaluation
4 // Kernel for Flexible Management of Complex Dependency Chains
5 //
6 // Copyright 2008 NTESS and the Phalanx contributors.
7 // SPDX-License-Identifier: BSD-3-Clause
8 // *****************************************************************************
9 // @HEADER
10
11 #ifndef PHX_TESTING_MY_TRAITS_HPP
12 #define PHX_TESTING_MY_TRAITS_HPP
13
14 #include "Phalanx_config.hpp" // for std::vector
15 #include "Phalanx_Traits.hpp"
16 #include "Sacado_mpl_vector.hpp"
17
18 namespace PHX {
19
20 /*! \brief Traits class for testing.
21
22 */
23 struct MyTraits {
24
25 // ******************************************************************
26 // *** Evaluation Types
27 // ******************************************************************
28 struct Residual { typedef double ScalarT; };
29 typedef Sacado::mpl::vector<Residual> EvalTypes;
30
31 // ******************************************************************
32 // *** User Defined Object Passed in for Evaluation Method
33 // ******************************************************************
34 typedef int SetupData;
35 typedef int EvalData;
36 typedef int PreEvalData;
37 typedef int PostEvalData;
38
39 };
40
41
42 }
43
44 namespace PHX {
45 template<>
46 struct eval_scalar_types<PHX::MyTraits::Residual>
47 { typedef Sacado::mpl::vector<double> type; };
48 }
49
50 #endif