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>
89 #if defined(HAVE_XPETRA_TPETRA)
90 #include <Tpetra_ConfigDefs.hpp>
103 #ifdef HAVE_XPETRA_THROW_EFFICIENCY_WARNINGS
104 #define XPETRA_THROWS_EFFICIENCY_WARNINGS 1
106 #define XPETRA_THROWS_EFFICIENCY_WARNINGS 0
109 #ifdef HAVE_XPETRA_PRINT_EFFICIENCY_WARNINGS
110 #define XPETRA_PRINTS_EFFICIENCY_WARNINGS 1
112 #define XPETRA_PRINTS_EFFICIENCY_WARNINGS 0
115 #ifdef HAVE_XPETRA_THROW_ABUSE_WARNINGS
116 #define XPETRA_THROWS_ABUSE_WARNINGS 1
118 #define XPETRA_THROWS_ABUSE_WARNINGS 0
121 #ifdef HAVE_XPETRA_PRINT_ABUSE_WARNINGS
122 #define XPETRA_PRINTS_ABUSE_WARNINGS 1
124 #define XPETRA_PRINTS_ABUSE_WARNINGS 0
127 #ifdef HAVE_XPETRA_PROFILING
129 #include <Teuchos_TimeMonitor.hpp>
130 #define XPETRA_MONITOR(funcName) Teuchos::TimeMonitor(*Teuchos::TimeMonitor::getNewTimer(std::string("Xpetra: ") + funcName));
132 #define XPETRA_MONITOR(funcName)
139 #ifdef HAVE_XPETRA_DEBUG
140 #define XPETRA_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg) \
141 TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg);
143 #define XPETRA_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
146 #include <functional>
149 #include <Teuchos_ArrayView.hpp>
150 #include <Teuchos_ArrayRCP.hpp>
151 #include <Teuchos_Array.hpp>
152 #include <Teuchos_RCP.hpp>
154 #include <Teuchos_OrdinalTraits.hpp>
155 #include <Teuchos_ScalarTraits.hpp>
156 #include <Teuchos_TypeNameTraits.hpp>
157 #include <Teuchos_NullIteratorTraits.hpp>
158 #include <Teuchos_SerializationTraits.hpp>
160 #include <Teuchos_Comm.hpp>
161 #include <Teuchos_CommHelpers.hpp>
163 #include <Teuchos_ParameterList.hpp>
219 using Teuchos::ArrayRCP;
220 using Teuchos::ArrayView;
221 using Teuchos::Array;
222 using Teuchos::OrdinalTraits;
223 using Teuchos::ScalarTraits;
228 using Teuchos::outArg;
229 using Teuchos::tuple;
232 using Teuchos::rcpFromRef;
233 using Teuchos::av_reinterpret_cast;
234 using Teuchos::arcp_reinterpret_cast;
236 using Teuchos::typeName;
238 using Teuchos::ParameterList;
239 using Teuchos::parameterList;
240 using Teuchos::sublist;
244 template <
class Arg1,
class Arg2>
245 class firstArg : std::binary_function<Arg1,Arg2,Arg1> {
250 inline Arg1
operator()(
const Arg1 &arg1,
const Arg2 &arg2) {
return arg1;}
253 template <
class Arg1,
class Arg2>
254 class secondArg : std::binary_function<Arg1,Arg2,Arg2> {
259 inline Arg2
operator()(
const Arg1 &arg1,
const Arg2 &arg2) {
return arg2;}
266 namespace XpetraExamples {
269 #define XPETRA_ERR_CHECK(arg) { int r = arg; if (r < 0) { std::cout << "r = " << r << std::endl; assert(r>=0); }; }; // TODO: throw exceptions
272 #include "Teuchos_CompilerCodeTweakMacros.hpp"
274 #endif // XPETRA_CONFIGDEFS_HPP
Arg1 operator()(const Arg1 &arg1, const Arg2 &arg2)
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.