EXTERN_C_FOR_PETSC_END Namespace Reference

Functions

std::streambuf * out_buf (NULL)
 
std::streambuf * err_buf (NULL)
 
void libmesh_handleFPE (int, siginfo_t *info, void *)
 

Variables

AutoPtr< GetPot > command_line (NULL)
 
AutoPtr< std::ofstream > _ofstream (NULL)
 
AutoPtr
< libMesh::Threads::task_scheduler_init
task_scheduler (NULL)
 
bool libmesh_initialized_mpi = false
 
bool libmesh_initialized_petsc = false
 
bool libmesh_initialized_slepc = false
 

Function Documentation

std::streambuf* EXTERN_C_FOR_PETSC_END::err_buf ( NULL  )

Referenced by libMesh::if().

void EXTERN_C_FOR_PETSC_END::libmesh_handleFPE ( int  ,
siginfo_t *  info,
void *   
)

Floating point exception handler – courtesy of Cody Permann & MOOSE team

Definition at line 106 of file libmesh.C.

References libMesh::err.

Referenced by libMesh::enableFPE().

107  {
108  libMesh::err << std::endl;
109  libMesh::err << "Floating point exception signaled (";
110  switch (info->si_code)
111  {
112  case FPE_INTDIV: libMesh::err << "integer divide by zero"; break;
113  case FPE_INTOVF: libMesh::err << "integer overflow"; break;
114  case FPE_FLTDIV: libMesh::err << "floating point divide by zero"; break;
115  case FPE_FLTOVF: libMesh::err << "floating point overflow"; break;
116  case FPE_FLTUND: libMesh::err << "floating point underflow"; break;
117  case FPE_FLTRES: libMesh::err << "floating point inexact result"; break;
118  case FPE_FLTINV: libMesh::err << "invalid floating point operation"; break;
119  case FPE_FLTSUB: libMesh::err << "subscript out of range"; break;
120  default: libMesh::err << "unrecognized"; break;
121  }
122  libMesh::err << ")!" << std::endl;
123 
124  libMesh::err << std::endl;
125  libMesh::err << "To track this down, compile debug version, start debugger, set breakpoint for 'libmesh_handleFPE' and run" << std::endl;
126  libMesh::err << "In gdb do:" << std::endl;
127  libMesh::err << " break libmesh_handleFPE" << std::endl;
128  libMesh::err << " run ..." << std::endl;
129  libMesh::err << " bt" << std::endl;
130 
131  libmesh_error();
132  }
std::streambuf* EXTERN_C_FOR_PETSC_END::out_buf ( NULL  )

Referenced by libMesh::if().

Variable Documentation

AutoPtr<std::ofstream> EXTERN_C_FOR_PETSC_END::_ofstream(NULL)

Referenced by libMesh::if().

AutoPtr<GetPot> EXTERN_C_FOR_PETSC_END::command_line(NULL)
bool EXTERN_C_FOR_PETSC_END::libmesh_initialized_mpi = false

Definition at line 92 of file libmesh.C.

Referenced by libMesh::if().

bool EXTERN_C_FOR_PETSC_END::libmesh_initialized_petsc = false

Definition at line 95 of file libmesh.C.

Referenced by libMesh::if().

bool EXTERN_C_FOR_PETSC_END::libmesh_initialized_slepc = false

Definition at line 98 of file libmesh.C.

Referenced by libMesh::if().

AutoPtr<libMesh::Threads::task_scheduler_init> EXTERN_C_FOR_PETSC_END::task_scheduler(NULL)

Site Created By: libMesh Developers
Last modified: February 07 2014 16:57:08 UTC

Hosted By:
SourceForge.net Logo