46 #ifndef XPETRA_CONFIGDEFS_HPP 47 #define XPETRA_CONFIGDEFS_HPP 51 #endif // ifndef __cplusplus 57 #endif // ifdef PACKAGE 61 #endif // ifdef PACKAGE_NAME 63 #ifdef PACKAGE_BUGREPORT 64 #undef PACKAGE_BUGREPORT 65 #endif // ifdef PACKAGE_BUGREPORT 69 #endif // ifdef PACKAGE_STRING 71 #ifdef PACKAGE_TARNAME 72 #undef PACKAGE_TARNAME 73 #endif // ifdef PACKAGE_TARNAME 75 #ifdef PACKAGE_VERSION 76 #undef PACKAGE_VERSION 77 #endif // ifdef PACKAGE_VERSION 81 #endif // ifdef VERSION 85 #include <Xpetra_config.hpp> 86 #include <Teuchos_ConfigDefs.hpp> 99 #ifdef HAVE_XPETRA_THROW_EFFICIENCY_WARNINGS 100 #define XPETRA_THROWS_EFFICIENCY_WARNINGS 1 102 #define XPETRA_THROWS_EFFICIENCY_WARNINGS 0 105 #ifdef HAVE_XPETRA_PRINT_EFFICIENCY_WARNINGS 106 #define XPETRA_PRINTS_EFFICIENCY_WARNINGS 1 108 #define XPETRA_PRINTS_EFFICIENCY_WARNINGS 0 111 #ifdef HAVE_XPETRA_THROW_ABUSE_WARNINGS 112 #define XPETRA_THROWS_ABUSE_WARNINGS 1 114 #define XPETRA_THROWS_ABUSE_WARNINGS 0 117 #ifdef HAVE_XPETRA_PRINT_ABUSE_WARNINGS 118 #define XPETRA_PRINTS_ABUSE_WARNINGS 1 120 #define XPETRA_PRINTS_ABUSE_WARNINGS 0 123 #ifdef HAVE_XPETRA_PROFILING 125 #include <Teuchos_TimeMonitor.hpp> 126 #define XPETRA_MONITOR(funcName) Teuchos::TimeMonitor(*Teuchos::TimeMonitor::getNewTimer(std::string("Xpetra: ") + funcName)); 128 #define XPETRA_MONITOR(funcName) 131 #include <functional> 135 #include <Teuchos_ArrayView.hpp> 136 #include <Teuchos_ArrayRCP.hpp> 137 #include <Teuchos_Array.hpp> 138 #include <Teuchos_RCP.hpp> 140 #include <Teuchos_OrdinalTraits.hpp> 141 #include <Teuchos_ScalarTraits.hpp> 142 #include <Teuchos_TypeNameTraits.hpp> 143 #include <Teuchos_NullIteratorTraits.hpp> 144 #include <Teuchos_SerializationTraits.hpp> 146 #include <Teuchos_Comm.hpp> 147 #include <Teuchos_CommHelpers.hpp> 149 #include <Teuchos_ParameterList.hpp> 213 using Teuchos::ArrayRCP;
214 using Teuchos::ArrayView;
215 using Teuchos::Array;
216 using Teuchos::OrdinalTraits;
217 using Teuchos::ScalarTraits;
222 using Teuchos::outArg;
223 using Teuchos::tuple;
226 using Teuchos::rcpFromRef;
227 using Teuchos::av_reinterpret_cast;
228 using Teuchos::arcp_reinterpret_cast;
230 using Teuchos::typeName;
232 using Teuchos::ParameterList;
233 using Teuchos::parameterList;
234 using Teuchos::sublist;
239 template <
class Arg1,
class Arg2>
240 class firstArg : std::binary_function<Arg1,Arg2,Arg1> {
245 inline Arg1
operator()(
const Arg1 &arg1,
const Arg2 &arg2) {
return arg1;}
248 template <
class Arg1,
class Arg2>
249 class secondArg : std::binary_function<Arg1,Arg2,Arg2> {
254 inline Arg2
operator()(
const Arg1 &arg1,
const Arg2 &arg2) {
return arg2;}
264 #define XPETRA_ERR_CHECK(arg) { int r = arg; if (r < 0) { std::cout << "r = " << r << std::endl; assert(r>=0); }; }; // TODO: throw exceptions 266 #endif // XPETRA_CONFIGDEFS_HPP Arg1 operator()(const Arg1 &arg1, const Arg2 &arg2)
Namespace for Xpetra example classes and methods.
Arg2 operator()(const Arg1 &arg1, const Arg2 &arg2)
Arg2 second_argument_type
Arg2 second_argument_type
size_t global_size_t
Global size_t object.
CombineMode
Xpetra::Combine Mode enumerable type.
Teuchos_Ordinal Array_size_type
Size type for Teuchos Array objects.