#include "SAMRAI_config.h"
#include <string>
#include "tbox/IOStream.h"
#include <sys/types.h>
#include <sys/stat.h>
#include "Logger.h"
Namespaces | |
namespace | SAMRAI |
namespace | SAMRAI::tbox |
Classes | |
struct | SAMRAI::tbox::Utilities |
Defines | |
#define | NULL_STATEMENT |
#define | NULL_USE(variable) |
#define | TBOX_ERROR(X) |
#define | TBOX_WARNING(X) |
#define | TBOX_DEBUG(X) |
#define | TBOX_ASSERT(EXP) |
#define | TBOX_CHECK_ASSERT(EXP) |
#define | PETSC_SAMRAI_ERROR(ierr) |
#define NULL_STATEMENT |
A statement that does nothing, for insure++ make it something more complex than a simple C null statement to avoid a warning.
#define NULL_USE | ( | variable | ) |
Value:
do { \ if(0) {char *temp = (char *)&variable; temp++;} \ } while (0)
#define TBOX_ERROR | ( | X | ) |
Value:
do { \ std::ostringstream tboxos; \ tboxos << X << std::ends; \ SAMRAI::tbox::Utilities::abort(tboxos.str(), __FILE__, __LINE__);\ } while (0)
#define TBOX_WARNING | ( | X | ) |
Value:
do { \ std::ostringstream tboxos; \ tboxos << X << std::ends; \ SAMRAI::tbox::Logger::getInstance() -> logWarning(tboxos.str(), __FILE__, __LINE__);\ } while (0)
#define TBOX_DEBUG | ( | X | ) |
Value:
do { \ std::ostringstream tboxos; \ tboxos << X << std::ends; \ SAMRAI::tbox::Logger::getInstance() -> logDebug(tboxos.str(), __FILE__, __LINE__);\ } while (0)
#define TBOX_ASSERT | ( | EXP | ) |
Value:
do { \ if ( !(EXP) ) { \ std::ostringstream tboxos; \ tboxos << "Failed assertion: " << std::ends; \ SAMRAI::tbox::Utilities::abort(tboxos.str(), __FILE__, __LINE__);\ } \ } while (0)
#define TBOX_CHECK_ASSERT | ( | EXP | ) |
Macro for use when assertions are to be included only when debugging.
#define PETSC_SAMRAI_ERROR | ( | ierr | ) |
Value:
do { \ if (ierr) { \ std::ostringstream tboxos; \ SAMRAI::tbox::Utilities::abort(tboxos.str(), __FILE__, __LINE__); \ } \ } while (0)