42 #include "Teuchos_UnitTestHarness.hpp" 43 #include "Teuchos_TestingHelpers.hpp" 44 #include "Teuchos_UnitTestRepository.hpp" 45 #include "Teuchos_GlobalMPISession.hpp" 52 #include <Kokkos_Core.hpp> 54 #if defined( KOKKOS_ENABLE_OPENMP ) 56 #elif defined( KOKKOS_ENABLE_THREADS ) 65 Sacado::mpl::is_same< typename Sacado::ScalarType<ad_type>::type,
scalar_type >
::value;
67 TEUCHOS_TEST_EQUALITY(is_same,
true, out, success);
73 Sacado::mpl::is_same< typename Sacado::ValueType<ad_type>::type,
value_type >
::value;
74 TEUCHOS_TEST_EQUALITY(is_same,
true, out, success);
79 const bool is_ad = Sacado::IsADType<ad_type>::value;
80 TEUCHOS_TEST_EQUALITY(is_ad,
true, out, success);
85 const bool is_scalar = Sacado::IsScalarType<ad_type>::value;
86 TEUCHOS_TEST_EQUALITY(is_scalar,
false, out, success);
93 TEUCHOS_TEST_EQUALITY(Sacado::Value<ad_type>::eval(a), v, out, success);
100 TEUCHOS_TEST_EQUALITY(Sacado::ScalarValue<ad_type>::eval(a), v, out, success);
103 #ifdef HAVE_STOKHOS_PCE_SCALAR_TYPE 109 TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT( Traits, ScalarType,
pce_type,
double )
110 TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT( Traits, ValueType,
pce_type,
double )
111 TEUCHOS_UNIT_TEST_TEMPLATE_1_INSTANT( Traits, IsADType,
pce_type )
112 TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT( Traits, Value,
pce_type,
double )
113 TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT( Traits, ScalarValue,
pce_type,
double )
116 TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT( Traits, ScalarType, pce_expr_type,
double )
117 TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT( Traits, ValueType, pce_expr_type,
double )
118 TEUCHOS_UNIT_TEST_TEMPLATE_1_INSTANT( Traits, IsADType, pce_expr_type )
119 TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT( Traits, Value, pce_expr_type,
double )
120 TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT( Traits, ScalarValue, pce_expr_type,
double )
123 #ifdef HAVE_STOKHOS_ENSEMBLE_SCALAR_TYPE 129 TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT( Traits, ScalarType, mp_type,
double )
130 TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT( Traits, ValueType, mp_type,
double )
131 TEUCHOS_UNIT_TEST_TEMPLATE_1_INSTANT( Traits, IsADType, mp_type )
132 TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT( Traits, Value, mp_type,
double )
133 TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT( Traits, ScalarValue, mp_type,
double )
139 Teuchos::GlobalMPISession mpiSession(&argc, &
argv);
140 return Teuchos::UnitTestRepository::runUnitTestsFromMain(argc,
argv);
Stokhos::StandardStorage< int, double > storage_type
Sacado::PCE::OrthogPoly< double, Storage > pce_type
TEUCHOS_UNIT_TEST_TEMPLATE_1_DECL(Traits, IsADType, ad_type)
TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL(Traits, ScalarType, ad_type, scalar_type)
int main(int argc, char *argv[])
SparseArrayIterator< index_iterator, value_iterator >::value_reference value(const SparseArrayIterator< index_iterator, value_iterator > &it)