#include <Epetra_config.h>
#include <cstdlib>
#include <cstdio>
#include <cassert>
#include <string>
#include <iostream>
#include <cmath>
      
        
          | #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)) { \
                      cerr << "Epetra ERROR " << epetra_err << ", " \
                           << __FILE__ << ", line " << __LINE__ << endl; }\
                      if (epetra_err != 0) return(epetra_err);  }\
                   }
 
 
      
        
          | #define EPETRA_CHK_PTR | ( |  | a | ) |  | 
      
 
Value:{ if (a == 0 && Epetra_Object::GetTracebackMode() > 0) { \
                      cerr << "Epetra returning zero pointer " << ", " \
                           << __FILE__ << ", line " << __LINE__ << endl; } \
                      return(a); \
                   }
 
 
      
        
          | #define EPETRA_CHK_REF | ( |  | a | ) |  | 
      
 
Value:{ if (Epetra_Object::GetTracebackMode() > 0) {\
                      cerr << "Epetra returning default reference " << ", " \
                           << __FILE__ << ", line " << __LINE__ << endl; } \
                      return(a); \
                   }
 
 
      
        
          | #define EPETRA_MAX | ( |  | x, | 
        
          |  |  |  | y | 
        
          |  | ) |  | (( (x) > (y) ) ? x : y)     /* max function  */ | 
      
 
 
      
        
          | #define EPETRA_MIN | ( |  | x, | 
        
          |  |  |  | y | 
        
          |  | ) |  | (( (x) < (y) ) ? x : y)     /* min function  */ | 
      
 
 
      
        
          | #define EPETRA_SGN | ( |  | x | ) | (((x) < 0.0) ? -1.0 : 1.0)  /* sign function */ | 
      
 
 
      
        
          | const int DefaultTracebackMode = 0 | 
      
 
 
      
        
          | const bool Epetra_FormatStdout = false | 
      
 
 
      
        
          | const double Epetra_MaxDouble = 1.0E+100 | 
      
 
 
      
        
          | const double Epetra_MinDouble = 1.0E-100 | 
      
 
 
      
        
          | const double Epetra_Overflow = 1.79E308 | 
      
 
 
      
        
          | const double Epetra_Underflow = 2.23E-308 |