Epetra Package Browser (Single Doxygen Collection)  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Variables
Epetra_ConfigDefs.h File Reference
#include <algorithm>
#include <Epetra_config.h>
#include <cstdlib>
#include <cstdio>
#include <cassert>
#include <cstring>
#include <string>
#include <iostream>
#include <sstream>
#include <cmath>
#include <iomanip>
#include "Epetra_DLLExportMacro.h"
Include dependency graph for Epetra_ConfigDefs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __cplusplus
 
#define EPETRA_MAX(x, y)   std::max(x,y) /* max function */
 
#define EPETRA_MIN(x, y)   std::min(x,y)/* min function */
 
#define EPETRA_SGN(x)   (((x) < 0.0) ? -1.0 : 1.0) /* sign function */
 
#define FORTRAN_DISABLED
 
#define EPETRA_CHK_ERR(a)
 
#define EPETRA_CHK_PTR(a)
 
#define EPETRA_CHK_REF(a)
 

Variables

const double Epetra_MinDouble = 1.0E-100
 
const double Epetra_MaxDouble = 1.0E+100
 
const double Epetra_Overflow = 1.79E308
 
const double Epetra_Underflow = 2.23E-308
 
const bool Epetra_FormatStdout = false
 
const int DefaultTracebackMode = 0
 

Macro Definition Documentation

#define __cplusplus

Definition at line 48 of file Epetra_ConfigDefs.h.

#define EPETRA_MAX (   x,
 
)    std::max(x,y) /* max function */

Definition at line 62 of file Epetra_ConfigDefs.h.

#define EPETRA_MIN (   x,
 
)    std::min(x,y)/* min function */

Definition at line 63 of file Epetra_ConfigDefs.h.

#define EPETRA_SGN (   x)    (((x) < 0.0) ? -1.0 : 1.0) /* sign function */

Definition at line 66 of file Epetra_ConfigDefs.h.

#define FORTRAN_DISABLED

Definition at line 223 of file Epetra_ConfigDefs.h.

#define EPETRA_CHK_ERR (   a)
Value:
{ { int epetra_err = a; \
if ((epetra_err < 0 && Epetra_Object::GetTracebackMode() > 0) || \
(epetra_err > 0 && Epetra_Object::GetTracebackMode() > 1)) { \
Epetra_Object::GetTracebackStream() << "Epetra ERROR " << epetra_err << ", " \
<< __FILE__ << ", line " << __LINE__ << std::endl; }\
if (epetra_err != 0) return(epetra_err); }\
}
static int GetTracebackMode()
Get the value of the Epetra_Object error report mode.
static std::ostream & GetTracebackStream()
Get the output stream for error reporting.

Definition at line 307 of file Epetra_ConfigDefs.h.

#define EPETRA_CHK_PTR (   a)
Value:
{ if (a == 0 && Epetra_Object::GetTracebackMode() > 0) { \
Epetra_Object::GetTracebackStream() << "Epetra returning zero pointer " << ", " \
<< __FILE__ << ", line " << __LINE__ << std::endl; } \
return(a); \
}
static int GetTracebackMode()
Get the value of the Epetra_Object error report mode.
static std::ostream & GetTracebackStream()
Get the output stream for error reporting.

Definition at line 317 of file Epetra_ConfigDefs.h.

#define EPETRA_CHK_REF (   a)
Value:
Epetra_Object::GetTracebackStream() << "Epetra returning default reference " << ", " \
<< __FILE__ << ", line " << __LINE__ << std::endl; } \
return(a); \
}
static int GetTracebackMode()
Get the value of the Epetra_Object error report mode.
static std::ostream & GetTracebackStream()
Get the output stream for error reporting.

Definition at line 324 of file Epetra_ConfigDefs.h.

Variable Documentation

const double Epetra_MinDouble = 1.0E-100

Definition at line 68 of file Epetra_ConfigDefs.h.

const double Epetra_MaxDouble = 1.0E+100

Definition at line 69 of file Epetra_ConfigDefs.h.

const double Epetra_Overflow = 1.79E308

Definition at line 70 of file Epetra_ConfigDefs.h.

const double Epetra_Underflow = 2.23E-308

Definition at line 71 of file Epetra_ConfigDefs.h.

const bool Epetra_FormatStdout = false

Definition at line 205 of file Epetra_ConfigDefs.h.

const int DefaultTracebackMode = 0

Definition at line 218 of file Epetra_ConfigDefs.h.