28 #include <queso/config_queso.h>
29 #include <queso/asserts.h>
31 #ifdef QUESO_HAVE_GLPK
32 #define QUESO_HAS_GLPK
35 #ifdef QUESO_HAVE_HDF5
36 #define QUESO_HAS_HDF5
39 #ifdef QUESO_HAVE_TRILINOS
40 #define QUESO_HAS_TRILINOS
51 #define QUESO_EXPECTS_LN_LIKELIHOOD_INSTEAD_OF_MINUS_2_LN
58 #include <queso/asserts.h>
65 #define ML_CODE_HAS_NEW_RESTART_CAPABILITY
66 #undef QUESO_MEMORY_DEBUGGING
67 #undef UQ_DEBUG_PARALLEL_RUNS_IN_DETAIL
68 #undef UQ_ALSO_COMPUTE_MDFS_WITHOUT_KDE
69 #define QUESO_CLASSES_INSTANTIATE_NEW_MAPS
70 #undef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
71 #undef QUESO_COMPUTES_EXTRA_POST_PROCESSING_STATISTICS
72 #define QUESO_USES_NEW_RNG_CLASS
89 #define UQ_FILE_EXTENSION_FOR_MATLAB_FORMAT "m"
90 #define UQ_FILE_EXTENSION_FOR_HDF_FORMAT "h5"
105 #define queso_do_once(do_this) \
107 static bool did_this_already = false; \
108 if (!did_this_already) { \
109 did_this_already = true; \
115 #define queso_warning(message) \
116 queso_do_once(std::cerr << message \
117 << __FILE__ << ", line " << __LINE__ << ", compiled " << __DATE__ << " at " << __TIME__ << " ***" << std::endl;)
120 #define queso_deprecated() \
121 queso_warning("*** Warning, this code is deprecated and likely to be removed in future library versions: ");
123 #define UQ_RC_MACRO(macroIRc,givenRank,where,what,retValue) \
124 queso_deprecated(); \
126 int macroRank = givenRank; \
127 if (macroRank < 0) { \
128 macroRank = QUESO::MyWorldfullRank(); \
130 std::cerr << "UQ RC ERROR" \
131 << ", rank " << macroRank \
132 << ", in " << where \
134 << ", iRc = " << macroIRc \
139 #define UQ_TEST_MACRO(test,givenRank,where,what,retValue) \
140 queso_deprecated(); \
142 int macroRank = givenRank; \
143 if (macroRank < 0) { \
144 macroRank = QUESO::MyWorldfullRank(); \
146 std::cerr << "UQ TEST ERROR" \
147 << ", rank " << macroRank \
148 << ", in " << where \
154 #define UQ_FATAL_RC_MACRO(macroIRc,givenRank,where,what) \
155 queso_deprecated(); \
157 int macroRank = givenRank; \
158 if (macroRank < 0) { \
159 macroRank = QUESO::MyWorldfullRank(); \
161 std::cerr << "UQ RC FATAL ERROR" \
162 << ", rank " << macroRank \
163 << ", in " << where \
165 << ", iRC = " << macroIRc \
171 #define UQ_FATAL_TEST_MACRO(test,givenRank,where,what) \
172 queso_deprecated(); \
174 int macroRank = givenRank; \
175 if (macroRank < 0) { \
176 macroRank = QUESO::MyWorldfullRank(); \
178 std::cerr << "UQ TEST FATAL ERROR" \
179 << ", rank " << macroRank \
180 << ", in " << where \
189 #endif // UQ_DEFINES_H
const int UQ_UNAVAILABLE_RANK
const int UQ_FAILED_TO_OPEN_FILE_RC
const int UQ_MATRIX_SVD_FAILED_RC
const int UQ_FAILED_READING_FILE_RC
const int UQ_INVALID_INTERNAL_STATE_RC
int MyWorldfullRank()
Returns the rank of the calling process in the communicator.
const int UQ_MATRIX_IS_NOT_POS_DEFINITE_RC
const int UQ_INVALID_PARAMETER_SPEC_RC
const int UQ_INVALID_INTERNAL_RESULT_RC
const int UQ_INVALID_QOI_SPEC_RC
const int UQ_INCOMPLETE_IMPLEMENTATION_RC
const int UQ_INVALID_SPACE_COMPONENT_ID_RC
const int UQ_INVALID_OBSERVABLE_SPEC_RC