Defines for UG Framework. More...
#include <stdexcept>
#include <iostream>
#include <sstream>
#include <string>
#include <cfloat>
Go to the source code of this file.
Namespaces | |
namespace | UG |
Macros | |
#define | UG_VERSION 100 |
#define | DEFAULT_NUM_EPSILON 1e-9 |
#define | MINEPSILON 1e-20 |
#define | THROW_LOGICAL_ERROR1(msg1) |
#define | ABORT_LOGICAL_ERROR1(msg1) |
#define | THROW_LOGICAL_ERROR2(msg1, msg2) |
#define | ABORT_LOGICAL_ERROR2(msg1, msg2) |
#define | THROW_LOGICAL_ERROR3(msg1, msg2, msg3) |
#define | ABORT_LOGICAL_ERROR3(msg1, msg2, msg3) |
#define | THROW_LOGICAL_ERROR4(msg1, msg2, msg3, msg4) |
#define | THROW_LOGICAL_ERROR5(msg1, msg2, msg3, msg4, msg5) |
#define | THROW_LOGICAL_ERROR6(msg1, msg2, msg3, msg4, msg5, msg6) |
#define | THROW_LOGICAL_ERROR7(msg1, msg2, msg3, msg4, msg5, msg6, msg7) |
#define | THROW_LOGICAL_ERROR8(msg1, msg2, msg3, msg4, msg5, msg6, msg7, msg8) |
#define | THROW_LOGICAL_ERROR9(msg1, msg2, msg3, msg4, msg5, msg6, msg7, msg8, msg9) |
#define | DELETE_TRANSFER_OBJECT_IN_THREADED_SOLVER(object) \ |
#define | REALABS(x) (fabs(x)) |
#define | EPSEQ(x, y, eps) (REALABS((x)-(y)) <= (eps)) |
#define | EPSLT(x, y, eps) ((x)-(y) < -(eps)) |
#define | EPSLE(x, y, eps) ((x)-(y) <= (eps)) |
#define | EPSGT(x, y, eps) ((x)-(y) > (eps)) |
#define | EPSGE(x, y, eps) ((x)-(y) >= -(eps)) |
#define | EPSZ(x, eps) (REALABS(x) <= (eps)) |
#define | EPSP(x, eps) ((x) > (eps)) |
#define | EPSN(x, eps) ((x) < -(eps)) |
#define | EPSFLOOR(x, eps) (floor((x)+(eps))) |
#define | EPSCEIL(x, eps) (ceil((x)-(eps))) |
#define | EPSFRAC(x, eps) ((x)-EPSFLOOR(x,eps)) |
#define | EPSISINT(x, eps) (EPSFRAC(x,eps) <= (eps)) |
Variables | |
static const int | MaxStrLen = 1024 |
static const int | LpMaxNamelen = 1024 |
static const int | CompTerminatedNormally = 0 |
static const int | CompTerminatedByAnotherTask = 1 |
static const int | CompTerminatedByInterruptRequest = 2 |
static const int | CompTerminatedInRacingStage = 3 |
static const int | CompInterruptedInRacingStage = 4 |
static const int | CompInterruptedInMerging = 5 |
static const int | CompTerminatedByTimeLimit = 6 |
static const int | CompTerminatedByMemoryLimit = 7 |
#define ABORT_LOGICAL_ERROR1 | ( | msg1 | ) |
#define ABORT_LOGICAL_ERROR2 | ( | msg1, | |
msg2 | |||
) |
#define ABORT_LOGICAL_ERROR3 | ( | msg1, | |
msg2, | |||
msg3 | |||
) |
#define DEFAULT_NUM_EPSILON 1e-9 |
#define DELETE_TRANSFER_OBJECT_IN_THREADED_SOLVER | ( | object | ) | \ |
#define MINEPSILON 1e-20 |
#define THROW_LOGICAL_ERROR1 | ( | msg1 | ) |
#define THROW_LOGICAL_ERROR2 | ( | msg1, | |
msg2 | |||
) |
#define THROW_LOGICAL_ERROR3 | ( | msg1, | |
msg2, | |||
msg3 | |||
) |
#define THROW_LOGICAL_ERROR4 | ( | msg1, | |
msg2, | |||
msg3, | |||
msg4 | |||
) |
#define THROW_LOGICAL_ERROR5 | ( | msg1, | |
msg2, | |||
msg3, | |||
msg4, | |||
msg5 | |||
) |
#define THROW_LOGICAL_ERROR6 | ( | msg1, | |
msg2, | |||
msg3, | |||
msg4, | |||
msg5, | |||
msg6 | |||
) |
#define THROW_LOGICAL_ERROR7 | ( | msg1, | |
msg2, | |||
msg3, | |||
msg4, | |||
msg5, | |||
msg6, | |||
msg7 | |||
) |
#define THROW_LOGICAL_ERROR8 | ( | msg1, | |
msg2, | |||
msg3, | |||
msg4, | |||
msg5, | |||
msg6, | |||
msg7, | |||
msg8 | |||
) |
#define THROW_LOGICAL_ERROR9 | ( | msg1, | |
msg2, | |||
msg3, | |||
msg4, | |||
msg5, | |||
msg6, | |||
msg7, | |||
msg8, | |||
msg9 | |||
) |