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
52 #define QUESO_EXPECTS_LN_LIKELIHOOD_INSTEAD_OF_MINUS_2_LN
58 #define GETPOT_NAMESPACE QUESO
62 #define GSL_RANGE_CHECK_OFF
74 #include <queso/asserts.h>
81 #define ML_CODE_HAS_NEW_RESTART_CAPABILITY
82 #undef QUESO_MEMORY_DEBUGGING
83 #undef UQ_DEBUG_PARALLEL_RUNS_IN_DETAIL
84 #undef UQ_ALSO_COMPUTE_MDFS_WITHOUT_KDE
85 #define QUESO_CLASSES_INSTANTIATE_NEW_MAPS
86 #undef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
87 #undef QUESO_COMPUTES_EXTRA_POST_PROCESSING_STATISTICS
88 #define QUESO_USES_NEW_RNG_CLASS
105 #define UQ_FILE_EXTENSION_FOR_MATLAB_FORMAT "m"
106 #define UQ_FILE_EXTENSION_FOR_TXT_FORMAT "txt"
107 #define UQ_FILE_EXTENSION_FOR_HDF_FORMAT "h5"
122 #define queso_do_once(do_this) \
124 static bool did_this_already = false; \
125 if (!did_this_already) { \
126 did_this_already = true; \
132 #define queso_warning(message) \
133 queso_do_once(std::cerr << message \
134 << __FILE__ << ", line " << __LINE__ << ", compiled " << __DATE__ << " at " << __TIME__ << " ***" << std::endl;)
137 #define queso_deprecated() \
138 queso_warning("*** Warning, this code is deprecated and likely to be removed in future library versions: ");
140 #define UQ_RC_MACRO(macroIRc,givenRank,where,what,retValue) \
141 queso_deprecated(); \
143 int macroRank = givenRank; \
144 if (macroRank < 0) { \
145 macroRank = QUESO::MyWorldfullRank(); \
147 std::cerr << "UQ RC ERROR" \
148 << ", rank " << macroRank \
149 << ", in " << where \
151 << ", iRc = " << macroIRc \
156 #define UQ_TEST_MACRO(test,givenRank,where,what,retValue) \
157 queso_deprecated(); \
159 int macroRank = givenRank; \
160 if (macroRank < 0) { \
161 macroRank = QUESO::MyWorldfullRank(); \
163 std::cerr << "UQ TEST ERROR" \
164 << ", rank " << macroRank \
165 << ", in " << where \
171 #define UQ_FATAL_RC_MACRO(macroIRc,givenRank,where,what) \
172 queso_deprecated(); \
174 int macroRank = givenRank; \
175 if (macroRank < 0) { \
176 macroRank = QUESO::MyWorldfullRank(); \
178 std::cerr << "UQ RC FATAL ERROR" \
179 << ", rank " << macroRank \
180 << ", in " << where \
182 << ", iRC = " << macroIRc \
188 #define UQ_FATAL_TEST_MACRO(test,givenRank,where,what) \
189 queso_deprecated(); \
191 int macroRank = givenRank; \
192 if (macroRank < 0) { \
193 macroRank = QUESO::MyWorldfullRank(); \
195 std::cerr << "UQ TEST FATAL ERROR" \
196 << ", rank " << macroRank \
197 << ", in " << where \
206 #endif // UQ_DEFINES_H
const int UQ_INVALID_SPACE_COMPONENT_ID_RC
const int UQ_INVALID_INTERNAL_STATE_RC
const int UQ_INVALID_PARAMETER_SPEC_RC
const int UQ_FAILED_TO_OPEN_FILE_RC
const int UQ_INVALID_QOI_SPEC_RC
const int UQ_INVALID_OBSERVABLE_SPEC_RC
const int UQ_MATRIX_IS_NOT_POS_DEFINITE_RC
int MyWorldfullRank()
Returns the rank of the calling process in the communicator.
const int UQ_FAILED_READING_FILE_RC
const int UQ_INCOMPLETE_IMPLEMENTATION_RC
const int UQ_MATRIX_SVD_FAILED_RC
const int UQ_INVALID_INTERNAL_RESULT_RC
const int UQ_UNAVAILABLE_RANK