Intrepid2
Intrepid2_Utils_ExtData.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Intrepid2 Package
4 //
5 // Copyright 2007 NTESS and the Intrepid2 contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
15 #ifndef __INTREPID2_UTILS_EXTDATA_HPP__
16 #define __INTREPID2_UTILS_EXTDATA_HPP__
17 
18 #include "Intrepid2_ConfigDefs.hpp"
19 #include "Intrepid2_Types.hpp"
20 
21 #include "Teuchos_oblackholestream.hpp"
22 #include "Teuchos_RCP.hpp"
23 
24 namespace Intrepid2 {
25 
32  enum TypeOfExactData{
33  INTREPID2_UTILS_FRACTION = 0,
34  INTREPID2_UTILS_SCALAR
35  };
36 
37 
50  template<typename ValueType,
51  class ...testMatProperties>
52  ordinal_type compareToAnalytic( std::ifstream &inputFile,
53  const Kokkos::DynRankView<ValueType,testMatProperties...> testMat,
54  const ValueType reltol,
55  const ordinal_type iprint,
56  const TypeOfExactData analyticDataType = INTREPID2_UTILS_FRACTION );
57 
67  template<typename ValueType,
68  class ...testMatProperties>
69  void getAnalytic( Kokkos::DynRankView<ValueType,testMatProperties...> testMat,
70  std::ifstream &inputFile,
71  const TypeOfExactData analyticDataType = INTREPID2_UTILS_FRACTION );
72 
73 } // end namespace Intrepid2
74 
76 
77 #endif
Definition file for utility functions for handling external data in tests.
Contains definitions of custom data types in Intrepid2.