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
111 TEUCHOS_UNIT_TEST_TEMPLATE_1_INSTANT( Traits, IsADType,
pce_type )
118 TEUCHOS_UNIT_TEST_TEMPLATE_1_INSTANT( Traits, IsADType, pce_expr_type )
123 #ifdef HAVE_STOKHOS_ENSEMBLE_SCALAR_TYPE
131 TEUCHOS_UNIT_TEST_TEMPLATE_1_INSTANT( Traits, IsADType, mp_type )
139 Teuchos::GlobalMPISession mpiSession(&argc, &
argv);
140 return Teuchos::UnitTestRepository::runUnitTestsFromMain(argc,
argv);
Stokhos::StandardStorage< int, double > storage_type
TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL(Traits, ScalarType, ad_type, scalar_type)
int main(int argc, char *argv[])
TEUCHOS_UNIT_TEST_TEMPLATE_1_DECL(Traits, IsADType, ad_type)
SparseArrayIterator< index_iterator, value_iterator >::value_reference value(const SparseArrayIterator< index_iterator, value_iterator > &it)
Sacado::ETPCE::OrthogPoly< double, Stokhos::StandardStorage< int, double > > pce_type
TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT(Tpetra_CrsMatrix, MatVec, double, Node) TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT(Tpetra_CrsMatrix