Mesh Oriented datABase  (version 5.4.1)
Array-based unstructured mesh datastructure
ErrorHandler.hpp File Reference
#include "moab/Types.hpp"
#include <sstream>
#include <cstring>
+ Include dependency graph for ErrorHandler.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  moab
 

Class representing axis-aligned bounding box.


Defines

#define __FILENAME__   ( strrchr( __FILE__, '/' ) ? strrchr( __FILE__, '/' ) + 1 : __FILE__ )
#define MBSTRINGIFY_(X)   #X
#define MBSTRINGIFY(X)   MBSTRINGIFY_( X )
#define __MBSDIR__   ""
#define MB_SET_ERR(err_code, err_msg)
 Set a new error with the given error message (a string or a stream) and return the given error code Used in functions which return ErrorCode.
#define MB_SET_ERR_RET(err_msg)
 Set a new error with the given error message (a string or a stream) and return Used in functions which return void types (or have no return types at all, e.g. constructors)
#define MB_SET_ERR_RET_VAL(err_msg, ret_val)
 Set a new error with the given error message (a string or a stream) and return the given value Used in functions which return any data type.
#define MB_SET_ERR_CONT(err_msg)
 Set a new error with the given error message (a string or a stream) and continue Used in functions which return any data type.
#define MB_SET_GLB_ERR(err_code, err_msg)
 Similar to MB_SET_ERR except that the error is considered globally fatal.
#define MB_SET_GLB_ERR_RET(err_msg)
 Similar to MB_SET_ERR_RET except that the error is considered globally fatal.
#define MB_SET_GLB_ERR_RET_VAL(err_msg, ret_val)
 Similar to MB_SET_ERR_RET_VAL except that the error is considered globally fatal.
#define MB_SET_GLB_ERR_CONT(err_msg)
 Similar to MB_SET_ERR_CONT except that the error is considered globally fatal.
#define MB_CHK_ERR(err_code)
 Check error code, if not MB_SUCCESS, call the error handler and return the given error code Used in functions which return ErrorCode.
#define MB_CHK_ERR_RET(err_code)
 Check error code, if not MB_SUCCESS, call the error handler and return Used in functions which return void types (or have no return types at all, e.g. constructors)
#define MB_CHK_ERR_RET_VAL(err_code, ret_val)
 Check error code, if not MB_SUCCESS, call the error handler and return the given value Used in functions which return any data type.
#define MB_CHK_ERR_CONT(err_code)
 Check error code, if not MB_SUCCESS, call the error handler and continue Used in functions which return any data type.
#define MB_CHK_SET_ERR(err_code, err_msg)
 Check error code, if not MB_SUCCESS, set a new error with the given error message and return the given error code Used in functions which return ErrorCode.
#define MB_CHK_SET_ERR_RET(err_code, err_msg)
 Check error code, if not MB_SUCCESS, set a new error with the given error message and return Used in functions which return void types (or have no return types at all, e.g. constructors)
#define MB_CHK_SET_ERR_RET_VAL(err_code, err_msg, ret_val)
 Check error code, if not MB_SUCCESS, set a new error with the given error message and return the given value Used in functions which return any data type.
#define MB_CHK_SET_ERR_CONT(err_code, err_msg)
 Check error code, if not MB_SUCCESS, set a new error with the given error message and continue Used in functions which return any data type.

Enumerations

enum  moab::ErrorType { moab::MB_ERROR_TYPE_NEW_GLOBAL = 0, moab::MB_ERROR_TYPE_NEW_LOCAL = 1, moab::MB_ERROR_TYPE_EXISTING = 2 }
 ErrorType - passed to the error handling routines indicating whether this is a new error (globally fatal or per-processor relevant) to be created, or an existing one to be handled. More...

Functions

void moab::MBErrorHandler_Init ()
 Initialize MOAB error handler (e.g. create a utility object for printing error output)
void moab::MBErrorHandler_Finalize ()
 Finalize MOAB error handler (e.g. delete the utility object for printing error output)
bool moab::MBErrorHandler_Initialized ()
 Indicates whether MBErrorHandler_Init has been called.
void moab::MBErrorHandler_GetLastError (std::string &error)
 Get information about the last error.
ErrorCode moab::MBError (int line, const char *func, const char *file, const char *dir, ErrorCode err_code, const char *err_msg, ErrorType err_type)
 Routine that is called to create a new error or handle an existing one.

Define Documentation

#define __FILENAME__   ( strrchr( __FILE__, '/' ) ? strrchr( __FILE__, '/' ) + 1 : __FILE__ )

Definition at line 48 of file ErrorHandler.hpp.

#define __MBSDIR__   ""

Definition at line 56 of file ErrorHandler.hpp.

#define MB_CHK_ERR (   err_code)
Value:
do                                                                                        \
    {                                                                                         \
        if( moab::MB_SUCCESS != ( err_code ) )                                                \
            return moab::MBError( __LINE__, __func__, __FILENAME__, __MBSDIR__, err_code, "", \
                                  moab::MB_ERROR_TYPE_EXISTING );                             \
    } while( false )

Check error code, if not MB_SUCCESS, call the error handler and return the given error code Used in functions which return ErrorCode.

Examples:
copyPartition.cpp, DeformMeshRemap.cpp, ErrorHandlingSimulation.cpp, ExtrudePoly.cpp, GenLargeMesh.cpp, GetEntities.cpp, HelloMOAB.cpp, HelloParMOAB.cpp, LaplacianSmoother.cpp, LloydRelaxation.cpp, LoadPartial.cpp, ReadPartFile.cpp, ReadWriteTest.cpp, ReduceExchangeTags.cpp, SetsNTags.cpp, StructuredMeshSimple.cpp, TestErrorHandling.cpp, TestErrorHandlingPar.cpp, and TestExodusII.cpp.

Definition at line 149 of file ErrorHandler.hpp.

Referenced by moab::GeomTopoTool::A_is_in_B(), moab::Skinner::add_adjacency(), moab::HalfFacetRep::add_cells_of_single_component(), add_field_value(), moab::HalfFacetRep::another_halfedge(), MetisPartitioner::assemble_graph(), MetisPartitioner::assemble_taggedsets_graph(), moab::TempestRemapper::assign_vertex_element_IDs(), moab::HiReconstruction::average_vertex_normal(), moab::HiReconstruction::average_vertex_tangent(), moab::box_from_axes(), moab::MeshGeneration::BrickInstance(), moab::Core::check_adjacencies(), moab::HalfFacetRep::check_mixed_entity_type(), moab::Skinner::classify_2d_boundary(), moab::MeshTag::clear_data(), moab::BitTag::clear_data(), moab::VarLenSparseTag::clear_data(), moab::SparseTag::clear_data(), moab::DenseTag::clear_data(), moab::HalfFacetRep::collect_and_compare(), moab::HiReconstruction::compute_average_vertex_normals_surf(), moab::HiReconstruction::compute_average_vertex_tangents_curve(), compute_lagrange_mesh_on_sphere(), moab::ParCommGraph::compute_partition(), compute_tracer_case1(), compute_velocity_case1(), moab::TempestRemapper::ComputeGlobalLocalMaps(), moab::Intx2MeshInPlane::computeIntersectionBetweenTgtAndSrc(), moab::IntxRllCssphere::computeIntersectionBetweenTgtAndSrc(), moab::Intx2MeshOnSphere::computeIntersectionBetweenTgtAndSrc(), moab::TempestOnlineMap::ComputeMetrics(), moab::TempestRemapper::ComputeOverlapMesh(), moab::NestedRefine::construct_hm_1D(), moab::NestedRefine::construct_hm_2D(), moab::NestedRefine::construct_hm_3D(), moab::NestedRefine::construct_hm_entities(), moab::TempestRemapper::ConstructCoveringSet(), moab::TempestRemapper::convert_mesh_to_tempest_private(), moab::TempestRemapper::convert_overlap_mesh_sorted_by_source(), moab::NestedRefine::copy_vertices_from_prev_level(), moab::ParallelComm::correct_thin_ghost_layers(), moab::NestedRefine::count_subentities(), moab::HalfFacetRep::count_subentities(), moab::NestedRefine::create_hm_storage_single_level(), create_lagr_mesh(), moab::NCHelperDomain::create_mesh(), moab::NCHelperScrip::create_mesh(), moab::FBEngine::create_new_gedge(), moab::Core::create_scd_sequence(), moab::Core::create_set_iterator(), moab::Skinner::create_side(), moab::Core::create_vertices(), CreateTempestMesh(), IntxUtilsCSLAM::deep_copy_set(), moab::IntxUtils::deep_copy_set_with_quads(), moab::TempestOnlineMap::DefineAnalyticalSolution(), DeformMeshRemap::deform_master(), moab::Skinner::deinitialize(), moab::Core::delete_mesh(), moab::ReadParallel::delete_nonlocal_entities(), moab::HalfFacetRep::determine_border_vertices(), moab::HalfFacetRep::determine_incident_halfedges(), moab::HalfFacetRep::determine_incident_halffaces(), moab::HalfFacetRep::determine_incident_halfverts(), moab::HalfFacetRep::determine_sibling_halfedges(), moab::HalfFacetRep::determine_sibling_halffaces(), moab::HalfFacetRep::determine_sibling_halfverts(), moab::IntxUtils::enforce_convexity(), moab::NestedRefine::estimate_hm_storage(), moab::NestedRefine::exchange_ghosts(), DeformMeshRemap::execute(), moab::HalfFacetRep::fid_from_halfacet(), moab::DenseTag::find_entities_with_value(), moab::VarLenDenseTag::find_entities_with_value(), moab::HalfFacetRep::find_matching_halfedge(), moab::HalfFacetRep::find_matching_halfface(), moab::HalfFacetRep::find_matching_implicit_edge_in_cell(), moab::Skinner::find_skin(), moab::HalfFacetRep::find_total_edges_2d(), moab::HalfFacetRep::find_total_edges_faces_3d(), moab::Intx2Mesh::FindMaxEdgesInSet(), moab::Intx2MeshOnSphere::findNodes(), moab::IntxUtils::fix_degenerate_quads(), moab::ParCommGraph::form_mesh_from_tuples(), moab::ParCommGraph::form_tuples_to_migrate_mesh(), FunctionA(), FunctionB(), moab::HalfFacetRep::gather_halfedges(), moab::WriteNCDF::gather_mesh_information(), moab::NestedRefine::generate_hm(), moab::NestedRefine::generate_mesh_hierarchy(), moab::TempestOnlineMap::GenerateRemappingWeights(), moab::NestedRefine::get_adjacencies(), moab::HalfFacetRep::get_adjacencies(), moab::Core::get_adjacencies(), moab::get_adjacencies_intersection(), get_barycenters(), moab::Core::get_child_meshsets(), moab::NestedRefine::get_connectivity(), moab::Core::get_connectivity(), moab::Core::get_connectivity_by_type(), moab::Core::get_contained_meshsets(), moab::NestedRefine::get_coordinates(), moab::Core::get_coords(), moab::DenseTag::get_data(), moab::VarLenDenseTag::get_data(), get_degree_seq(), get_departure_grid(), moab::HalfFacetRep::get_down_adjacencies(), moab::HalfFacetRep::get_down_adjacencies_2d(), moab::HalfFacetRep::get_down_adjacencies_edg_3d(), moab::HalfFacetRep::get_down_adjacencies_face_3d(), moab::Core::get_entities_by_dimension(), moab::Core::get_entities_by_handle(), moab::Core::get_entities_by_type(), moab::Core::get_entities_by_type_and_tag(), moab::BitTag::get_entities_with_bits(), moab::HalfFacetRep::get_face_edges(), get_gnomonic_plane(), moab::HalfFacetRep::get_half_facet_in_comp(), get_intersection_weights(), get_linear_reconstruction(), get_max_volume(), moab::Tqdcfr::get_names(), moab::HalfFacetRep::get_neighbor_adjacencies(), moab::HalfFacetRep::get_neighbor_adjacencies_2d(), moab::HiReconstruction::get_normals_surf(), moab::Core::get_number_entities_by_dimension(), moab::Core::get_number_entities_by_handle(), moab::Core::get_number_entities_by_type(), moab::Core::get_parent_meshsets(), moab::ParallelComm::get_remote_handles(), moab::GeomTopoTool::get_senses(), moab::ReadHDF5::get_subset_ids(), moab::HiReconstruction::get_tangents_curve(), moab::HalfFacetRep::get_up_adjacencies(), moab::HalfFacetRep::get_up_adjacencies_2d(), moab::HalfFacetRep::get_up_adjacencies_edg_3d(), moab::HalfFacetRep::get_up_adjacencies_edg_3d_comp(), moab::HalfFacetRep::get_up_adjacencies_face_3d(), moab::HalfFacetRep::get_up_adjacencies_vert_2d(), moab::HalfFacetRep::get_up_adjacencies_vert_3d(), moab::Core::get_vertex_coordinates(), moab::Core::get_vertices(), moab::ParallelMergeMesh::GetGlobalBox(), moab::TempestRemapper::GetOverlapAugmentedEntities(), moab::IntxUtils::global_gnomonic_projection(), moab::Core::high_order_node(), moab::HiReconstruction::hiproj_walf_around_vertex(), moab::HiReconstruction::hiproj_walf_in_element(), iMOAB_CreateElements(), iMOAB_CreateVertices(), iMOAB_DeregisterApplication(), iMOAB_DuplicateAppMesh(), iMOAB_GetBlockElementConnectivities(), iMOAB_GetBlockID(), iMOAB_GetBlockInfo(), iMOAB_GetDoubleTagStorage(), iMOAB_GetElementConnectivity(), iMOAB_GetElementID(), iMOAB_GetElementOwnership(), iMOAB_GetIntTagStorage(), iMOAB_GetMeshInfo(), iMOAB_GetNeighborElements(), iMOAB_GetPointerToSurfaceBC(), iMOAB_GetPointerToVertexBC(), iMOAB_GetVertexOwnership(), iMOAB_GetVisibleElementsInfo(), iMOAB_GetVisibleVerticesCoordinates(), iMOAB_Initialize(), iMOAB_LoadMesh(), iMOAB_ReduceTagsMax(), iMOAB_RegisterApplication(), iMOAB_SetDoubleTagStorage(), iMOAB_SetDoubleTagStorageWithGid(), iMOAB_SetIntTagStorage(), iMOAB_SynchronizeTags(), iMOAB_UpdateMeshInfo(), iMOAB_WriteLocalMesh(), iMOAB_WriteMesh(), moab::HalfFacetRep::init_curve(), moab::NCHelperDomain::init_mesh_vals(), moab::NCHelperFV::init_mesh_vals(), moab::NCHelperEuler::init_mesh_vals(), moab::HalfFacetRep::init_surface(), moab::HalfFacetRep::init_volume(), moab::NestedRefine::initialize(), moab::HiReconstruction::initialize(), moab::HalfFacetRep::initialize(), moab::Skinner::initialize(), moab::WriteNCDF::initialize_exodus_file(), moab::Intx2Mesh::intersect_meshes(), moab::Intx2Mesh::intersect_meshes_kdtree(), moab::NestedRefine::is_cell_on_boundary(), moab::NestedRefine::is_edge_on_boundary(), moab::NestedRefine::is_face_on_boundary(), moab::NestedRefine::is_vertex_on_boundary(), moab::ParallelComm::list_entities(), moab::Core::list_entity(), moab::ReadParallel::load_file(), moab::ReadDamsel::load_file(), moab::Core::load_file(), moab::ReadOBJ::load_file(), moab::ReadSms::load_file_impl(), moab::Remapper::LoadNativeMesh(), main(), make_atomic_pillow(), make_chord_push(), make_face_shrink(), make_triple_chord_push(), moab::HalfFacetRep::mark_halfedges(), moab::ParallelMergeMesh::merge(), moab::MergeMesh::merge_all(), moab::Core::merge_entities(), moab::AdaptiveKDTree::merge_leaf(), moab::BSPTree::merge_leaf(), moab::HiReconstruction::obtain_nring_ngbvs(), MetisPartitioner::partition_mesh(), ZoltanPartitioner::partition_owned_cells(), perform_laplacian_smoothing(), perform_lloyd_relaxation(), moab::ParallelMergeMesh::PerformMerge(), moab::HiReconstruction::polyfit3d_walf_curve_vertex(), moab::HiReconstruction::polyfit3d_walf_surf_vertex(), moab::ParallelMergeMesh::PopulateMySkinEnts(), moab::ParallelMergeMesh::PopulateMyTup(), moab::ReadDamsel::process_ent_info(), process_partition_file(), moab::ReadHDF5::read_elems(), moab::ReadHDF5::read_poly(), moab::ReadHDF5::read_set_data(), moab::ReadHDF5::read_var_len_tag(), moab::ParCommGraph::receive_tag_values(), moab::HiReconstruction::reconstruct3D_curve_geom(), moab::HiReconstruction::reconstruct3D_surf_geom(), moab::Skinner::remove_adjacency(), moab::VarLenDenseTag::remove_data(), moab::IntxUtils::remove_duplicate_vertices(), moab::IntxUtils::remove_padded_vertices(), moab::NestedRefine::reorder_indices(), moab::ParallelComm::resolve_shared_ents(), moab::GeomTopoTool::restore_topology_from_geometric_inclusion(), moab::ParCommGraph::send_graph_partition(), moab::ParCommGraph::send_tag_values(), moab::Core::serial_load_file(), moab::Core::set_connectivity(), moab::BitTag::set_data(), moab::DenseTag::set_data(), moab::MeshTag::set_data(), moab::SparseTag::set_data(), moab::VarLenSparseTag::set_data(), moab::VarLenDenseTag::set_data(), set_density(), moab::ReadHDF5::set_up_read(), moab::TempestOnlineMap::SetDOFmapAssociation(), moab::TempestOnlineMap::SetDOFmapTags(), moab::Core::side_element(), moab::Core::side_number(), moab::NestedRefine::subdivide_cells(), moab::NestedRefine::subdivide_tets(), moab::Core::tag_delete(), moab::HigherOrderFactory::tag_for_deletion(), moab::DenseTag::tag_iterate(), moab::SparseTag::tag_iterate(), TestErrorHandling_1(), TestErrorHandling_2(), TestErrorHandling_3(), TestErrorHandlingPar_1(), TestErrorHandlingPar_2(), moab::ReadNCDF::update(), moab::NestedRefine::update_ahf_1D(), update_density(), moab::HalfFacetRep::update_entity_ranges(), moab::NestedRefine::update_global_ahf(), moab::NestedRefine::update_global_ahf_1D(), moab::NestedRefine::update_global_ahf_1D_sub(), moab::NestedRefine::update_global_ahf_2D(), moab::NestedRefine::update_global_ahf_2D_sub(), moab::NestedRefine::update_global_ahf_3D(), moab::NestedRefine::update_local_ahf(), moab::ParallelComm::update_remote_data(), moab::ParallelComm::update_remote_data_old(), moab::NestedRefine::update_special_tags(), moab::NestedRefine::update_tracking_verts(), moab::HiReconstruction::vertex_get_incident_elements(), moab::NestedRefine::vertex_to_entities_down(), moab::NestedRefine::vertex_to_entities_up(), moab::ReadVtk::vtk_read_unstructured_grid(), MetisPartitioner::write_aggregationtag_partition(), DeformMeshRemap::write_and_save(), moab::WriteNCDF::write_elementblocks(), moab::WriteVtk::write_elems(), moab::WriteDamsel::write_entities(), moab::WriteDamsel::write_file(), MetisPartitioner::write_partition(), moab::WriteNCDF::write_poly_faces(), moab::WriteDamsel::write_vertices(), moab::TempestOnlineMap::WriteHDF5MapFile(), and moab::TempestOnlineMap::WriteParallelMap().

#define MB_CHK_ERR_CONT (   err_code)
Value:
do                                                                                                                 \
    {                                                                                                                  \
        if( moab::MB_SUCCESS != ( err_code ) )                                                                         \
        {                                                                                                              \
            moab::MBError( __LINE__, __func__, __FILENAME__, __MBSDIR__, err_code, "", moab::MB_ERROR_TYPE_EXISTING ); \
        }                                                                                                              \
    } while( false )

Check error code, if not MB_SUCCESS, call the error handler and continue Used in functions which return any data type.

Definition at line 183 of file ErrorHandler.hpp.

Referenced by moab::handle_hdf5_error().

#define MB_CHK_ERR_RET (   err_code)
Value:
do                                                                                                                 \
    {                                                                                                                  \
        if( moab::MB_SUCCESS != ( err_code ) )                                                                         \
        {                                                                                                              \
            moab::MBError( __LINE__, __func__, __FILENAME__, __MBSDIR__, err_code, "", moab::MB_ERROR_TYPE_EXISTING ); \
            return;                                                                                                    \
        }                                                                                                              \
    } while( false )

Check error code, if not MB_SUCCESS, call the error handler and return Used in functions which return void types (or have no return types at all, e.g. constructors)

Definition at line 159 of file ErrorHandler.hpp.

Referenced by moab::ReadOBJ::ReadOBJ(), and test_intx_in_parallel_elem_based().

#define MB_CHK_ERR_RET_VAL (   err_code,
  ret_val 
)
Value:
do                                                                                                                 \
    {                                                                                                                  \
        if( moab::MB_SUCCESS != ( err_code ) )                                                                         \
        {                                                                                                              \
            moab::MBError( __LINE__, __func__, __FILENAME__, __MBSDIR__, err_code, "", moab::MB_ERROR_TYPE_EXISTING ); \
            return ret_val;                                                                                            \
        }                                                                                                              \
    } while( false )

Check error code, if not MB_SUCCESS, call the error handler and return the given value Used in functions which return any data type.

Definition at line 171 of file ErrorHandler.hpp.

Referenced by moab::IntxAreaUtils::area_on_sphere(), moab::IntxAreaUtils::area_spherical_element(), moab::GQT_IntRegCtxt::edge_node_piercing_intersect(), and moab::Intx2MeshOnSphere::setup_tgt_cell().

#define MB_CHK_SET_ERR (   err_code,
  err_msg 
)
Value:
do                                                                          \
    {                                                                           \
        if( moab::MB_SUCCESS != ( err_code ) ) MB_SET_ERR( err_code, err_msg ); \
    } while( false )

Check error code, if not MB_SUCCESS, set a new error with the given error message and return the given error code Used in functions which return ErrorCode.

Examples:
addPCdata.cpp, ComputeTriDual.cpp, copyPartition.cpp, CrystalRouterExample.cpp, DeformMeshRemap.cpp, DirectAccessNoHoles.cpp, DirectAccessWithHoles.cpp, ExtractLand.cpp, ExtrudePoly.cpp, GenLargeMesh.cpp, LoadPartial.cpp, QuadTriConv.cpp, ReduceExchangeTags.cpp, TestErrorHandling.cpp, and VisTags.cpp.

Definition at line 194 of file ErrorHandler.hpp.

Referenced by moab::GeomTopoTool::A_is_in_B(), moab::GeomTopoTool::add_geo_set(), moab::ParallelComm::add_verts(), moab::TempestOnlineMap::ApplyWeights(), moab::ParallelComm::assign_entities_part(), moab::ParallelComm::assign_global_ids(), moab::TempestRemapper::assign_vertex_element_IDs(), moab::ParallelComm::augment_default_sets_with_ghosts(), moab::GeomQueryTool::boundary_case(), moab::MeshGeneration::BrickInstance(), moab::ParallelComm::broadcast_entities(), moab::ParallelComm::build_sharedhps_list(), moab::ParallelComm::check_clean_iface(), moab::GeomTopoTool::check_edge_sense_tags(), moab::NCHelperHOMME::check_existing_mesh(), moab::NCHelperGCRM::check_existing_mesh(), moab::NCHelperMPAS::check_existing_mesh(), moab::ScdNCHelper::check_existing_mesh(), moab::GeomTopoTool::check_face_sense_tag(), moab::GeomTopoTool::check_geom_tag(), moab::GeomTopoTool::check_gid_tag(), moab::ParallelComm::check_global_ids(), moab::ParallelComm::check_sent_ents(), moab::ParallelComm::clean_shared_tags(), moab::GeomQueryTool::closest_to_location(), moab::NCWriteMPAS::collect_mesh_info(), moab::NCWriteHOMME::collect_mesh_info(), moab::NCWriteGCRM::collect_mesh_info(), moab::ScdNCWriteHelper::collect_mesh_info(), moab::NCWriteHelper::collect_variable_data(), compute_dual_mesh(), moab::TempestRemapper::ComputeGlobalLocalMaps(), moab::TempestRemapper::ComputeOverlapMesh(), moab::GeomTopoTool::construct_obb_tree(), moab::GeomTopoTool::construct_obb_trees(), moab::GeomTopoTool::construct_vertex_ranges(), moab::TempestRemapper::ConstructCoveringSet(), moab::TempestRemapper::convert_tempest_mesh_private(), moab::TempestRemapper::ConvertMeshToTempest(), moab::TempestRemapper::ConvertTempestMesh(), moab::ParallelComm::correct_thin_ghost_layers(), moab::ReadCCMIO::create_cell_from_faces(), moab::NCHelper::create_conventional_tags(), moab::NCHelper::create_dummy_variables(), moab::ReadIDEAS::create_elements(), moab::ReadCGNS::create_elements(), moab::NCHelperMPAS::create_gather_set_cells(), moab::NCHelperGCRM::create_gather_set_edges(), moab::NCHelperMPAS::create_gather_set_edges(), moab::NCHelperGCRM::create_gather_set_vertices(), moab::NCHelperMPAS::create_gather_set_vertices(), moab::NestedRefine::create_hm_storage_single_level(), moab::ParallelComm::create_iface_pc_links(), moab::ParallelComm::create_interface_sets(), moab::NCHelperMPAS::create_local_cells(), moab::NCHelperGCRM::create_local_edges(), moab::NCHelperMPAS::create_local_edges(), moab::NCHelperGCRM::create_local_vertices(), moab::NCHelperMPAS::create_local_vertices(), moab::NCHelperDomain::create_mesh(), moab::NCHelperScrip::create_mesh(), moab::NCHelperHOMME::create_mesh(), moab::NCHelperGCRM::create_mesh(), moab::NCHelperMPAS::create_mesh(), moab::ScdNCHelper::create_mesh(), create_mesh_no_holes(), create_mesh_with_holes(), moab::ReadOBJ::create_new_face(), moab::ReadOBJ::create_new_group(), moab::ReadOBJ::create_new_object(), moab::ReadOBJ::create_new_vertex(), moab::NCHelperGCRM::create_padded_gather_set_cells(), moab::NCHelperMPAS::create_padded_gather_set_cells(), moab::NCHelperGCRM::create_padded_local_cells(), moab::NCHelperMPAS::create_padded_local_cells(), moab::ReadParallel::create_partition_sets(), moab::ScdNCHelper::create_quad_coordinate_tag(), moab::ReadCGNS::create_sets(), moab::ReadTemplate::create_sets(), moab::SpectralMeshTool::create_spectral_elems(), moab::ReadIDEAS::create_vertices(), moab::Intx2Mesh::createTags(), DeformMeshRemap::deform_master(), moab::GeomTopoTool::delete_all_obb_trees(), moab::ParallelComm::delete_entities(), moab::ReadParallel::delete_nonlocal_entities(), moab::GeomTopoTool::delete_obb_tree(), moab::Intx2Mesh::DetermineOrderedNeighbors(), moab::GeomTopoTool::dimension(), moab::GeomTopoTool::duplicate_model(), moab::Matrix3::eigen_decomposition(), moab::ParallelComm::exchange_ghost_cells(), moab::ParallelComm::exchange_owned_mesh(), moab::ParallelComm::exchange_owned_meshs(), moab::ParallelComm::exchange_tags(), DeformMeshRemap::execute(), moab::ParallelComm::filter_pstatus(), moab::ParallelComm::find_existing_entity(), moab::GeomTopoTool::find_geomsets(), DeformMeshRemap::find_other_sets(), moab::GeomQueryTool::find_volume(), moab::GeomQueryTool::find_volume_slow(), moab::Intx2Mesh::FindMaxEdges(), moab::Intx2Mesh::FindMaxEdgesInSet(), moab::Intx2MeshInPlane::findNodes(), moab::IntxRllCssphere::findNodes(), moab::Intx2MeshOnSphere::findNodes(), moab::ParCommGraph::form_mesh_from_tuples(), moab::WriteCCMIO::gather_matset_info(), moab::WriteTemplate::gather_mesh_information(), moab::WriteSLAC::gather_mesh_information(), moab::WriteNCDF::gather_mesh_information(), moab::WriteCCMIO::gather_neuset_info(), moab::GeomTopoTool::generate_implicit_complement(), moab::TempestRemapper::GenerateCSMeshMetadata(), moab::TempestRemapper::GenerateMeshMetadata(), moab::TempestOnlineMap::GenerateRemappingWeights(), moab::GeomTopoTool::geometrize_surface_set(), moab::GeomTopoTool::get_bounding_coords(), moab::ReadCCMIO::get_dbl_option(), moab::ParallelComm::get_ghosted_entities(), moab::WriteCCMIO::get_gids(), moab::GeomTopoTool::get_gsets_by_dimension(), moab::ParallelComm::get_iface_entities(), get_imesh_mesh(), moab::ReadCCMIO::get_int_option(), moab::ParallelComm::get_interface_procs(), moab::GeomQueryTool::get_normal(), moab::GeomTopoTool::get_obb(), moab::ParallelComm::get_owner_handle(), moab::ParallelComm::get_owning_part(), moab::ParallelComm::get_proc_nvecs(), moab::ParallelComm::get_pstatus(), moab::ParallelComm::get_pstatus_entities(), moab::ParallelComm::get_remote_handles(), moab::GeomTopoTool::get_sense(), moab::GeomTopoTool::get_senses(), moab::ParallelComm::get_sent_ents(), moab::ReadABAQUS::get_set_by_name(), moab::ParallelComm::get_shared_entities(), moab::ParallelComm::get_sharing_data(), moab::ParallelComm::get_sharing_parts(), moab::ReadCCMIO::get_str_option(), moab::GeomTopoTool::get_surface_senses(), moab::WriteUtil::get_tag_list(), moab::ParallelComm::get_tag_send_list(), moab::NCHelper::get_tag_to_nonset(), moab::NCHelper::get_tag_to_set(), moab::WriteTemplate::get_valid_sides(), moab::WriteSLAC::get_valid_sides(), moab::WriteNCDF::get_valid_sides(), moab::ReadNC::get_variables(), get_vartag_data(), moab::TempestRemapper::GetIMasks(), moab::TempestRemapper::GetOverlapAugmentedEntities(), moab::NCHelperHOMME::init_mesh_vals(), moab::NCHelperDomain::init_mesh_vals(), moab::NCHelperFV::init_mesh_vals(), moab::NCHelperGCRM::init_mesh_vals(), moab::NCHelperMPAS::init_mesh_vals(), moab::NCHelperScrip::init_mesh_vals(), moab::NCHelperEuler::init_mesh_vals(), moab::WriteDamsel::init_tag_info(), moab::TempestRemapper::initialize(), moab::GeomQueryTool::initialize(), moab::LloydSmoother::initialize(), moab::GeomTopoTool::insert_in_tree(), integrate_scalar_field_test(), moab::DataCoupler::interpolate(), moab::Coupler::interpolate(), moab::Intx2Mesh::intersect_meshes(), moab::Intx2Mesh::intersect_meshes_kdtree(), moab::GeomTopoTool::is_owned_set(), moab::ParallelComm::list_entities(), moab::ReadCGNS::load_file(), moab::ReadIDEAS::load_file(), moab::ReadTemplate::load_file(), moab::ReadCCMIO::load_file(), moab::ReadDamsel::load_file(), moab::ReadParallel::load_file(), moab::ReadNC::load_file(), moab::ReadOBJ::load_file(), moab::Tqdcfr::load_file(), moab::ReadCCMIO::load_matset_data(), moab::ReadCCMIO::load_metadata(), moab::ReadCCMIO::load_neuset_data(), moab::TempestRemapper::LoadMesh(), main(), moab::WriteDamsel::map_dense_tags(), moab::WriteDamsel::map_sparse_tags(), moab::GeomQueryTool::measure_area(), moab::GeomQueryTool::measure_volume(), moab::GeomTopoTool::other_entity(), moab::ParallelComm::pack_buffer(), moab::ParallelComm::pack_entities(), moab::ParallelComm::pack_entity_seq(), moab::ParallelComm::pack_sets(), moab::ParallelComm::pack_tag(), moab::ParallelComm::packed_tag_size(), moab::LloydSmoother::perform_smooth(), moab::GeomQueryTool::point_in_box(), moab::GeomQueryTool::point_in_volume(), moab::GeomQueryTool::point_in_volume_slow(), moab::GeomQueryTool::poly_solid_angle(), moab::WriteNC::process_conventional_tags(), moab::ReadDamsel::process_ent_info(), moab::ReadDamsel::process_entity_tags(), moab::GeomQueryTool::ray_fire(), moab::ReadCCMIO::read_all_faces(), moab::ReadCCMIO::read_cells(), moab::ReadTemplate::read_elements(), moab::ReadCCMIO::read_faces(), DeformMeshRemap::read_file(), moab::ReadCCMIO::read_gids_and_types(), moab::ReadNC::read_header(), moab::ReadCCMIO::read_processor(), moab::ScdNCHelper::read_scd_variables_to_nonset(), moab::ScdNCHelper::read_scd_variables_to_nonset_allocate(), moab::NCHelperHOMME::read_ucd_variables_to_nonset(), moab::NCHelperGCRM::read_ucd_variables_to_nonset(), moab::NCHelperMPAS::read_ucd_variables_to_nonset(), moab::NCHelperHOMME::read_ucd_variables_to_nonset_allocate(), moab::NCHelperGCRM::read_ucd_variables_to_nonset_allocate(), moab::NCHelperMPAS::read_ucd_variables_to_nonset_allocate(), moab::ReadHDF5::read_var_len_tag(), moab::ScdNCHelper::read_variables(), moab::UcdNCHelper::read_variables(), moab::NCHelper::read_variables_to_set(), moab::NCHelper::read_variables_to_set_allocate(), moab::ReadTemplate::read_vertices(), moab::ReadCCMIO::read_vertices(), moab::ParCommGraph::receive_mesh(), moab::ParallelComm::recv_entities(), moab::ParallelComm::recv_messages(), moab::ParallelComm::recv_remote_handle_messages(), moab::ParallelComm::reduce_tags(), moab::ParallelComm::remove_entities_part(), moab::IntxUtils::remove_padded_vertices(), moab::GeomTopoTool::remove_root(), moab::GeomTopoTool::resize_rootSets(), moab::ParallelComm::resolve_shared_ents(), moab::ParallelComm::resolve_shared_sets(), moab::GeomTopoTool::restore_topology_from_adjacency(), moab::GeomTopoTool::restore_topology_from_geometric_inclusion(), run_local_smoother(), moab::ParallelComm::scatter_entities(), moab::ParallelComm::send_entities(), moab::ParallelComm::send_recv_entities(), moab::GeomTopoTool::separate_by_dimension(), moab::ParallelComm::set_pstatus_entities(), moab::GeomTopoTool::set_root_set(), moab::GeomTopoTool::set_sense(), moab::GeomTopoTool::set_senses(), moab::ParallelComm::set_sharing_data(), moab::GeomTopoTool::set_surface_senses(), moab::TempestOnlineMap::SetDOFmapTags(), moab::ParallelComm::settle_intersection_points(), moab::GeomTopoTool::setup_implicit_complement(), moab::ReadOBJ::split_quad(), moab::ParallelComm::tag_iface_entities(), moab::ParallelComm::tag_shared_verts(), moab::GeomQueryTool::test_volume_boundary(), TestErrorHandling_4(), moab::WriteCCMIO::transform_coords(), moab::ParallelComm::unpack_buffer(), moab::ParallelComm::unpack_entities(), moab::ParallelComm::unpack_remote_handles(), moab::ParallelComm::unpack_sets(), moab::ParallelComm::unpack_tags(), moab::ParallelComm::update_remote_data(), moab::ParallelComm::update_remote_data_old(), moab::NCHelper::update_time_tag_vals(), moab::Intx2MeshOnSphere::update_tracer_data(), moab::ReadVtk::vtk_read_field_attrib(), moab::ReadVtk::vtk_read_tag_data(), moab::WriteNCDF::write_BCs(), moab::WriteCCMIO::write_cells_and_faces(), moab::WriteDamsel::write_entities(), moab::WriteCCMIO::write_external_faces(), moab::WriteDamsel::write_file(), moab::WriteCCMIO::write_file(), moab::WriteNC::write_file(), moab::WriteTemplate::write_nodes(), moab::WriteSLAC::write_nodes(), moab::WriteCCMIO::write_nodes(), moab::WriteNCDF::write_nodes(), moab::NCWriteGCRM::write_nonset_variables(), moab::NCWriteMPAS::write_nonset_variables(), moab::NCWriteHOMME::write_nonset_variables(), moab::ScdNCWriteHelper::write_nonset_variables(), moab::WriteCCMIO::write_problem_description(), moab::WriteDamsel::write_sets(), DeformMeshRemap::write_to_coords(), moab::WriteDamsel::write_vertices(), moab::TempestOnlineMap::WriteHDF5MapFile(), and moab::TempestOnlineMap::WriteSCRIPMapFile().

#define MB_CHK_SET_ERR_CONT (   err_code,
  err_msg 
)
Value:
do                                                                     \
    {                                                                      \
        if( moab::MB_SUCCESS != ( err_code ) ) MB_SET_ERR_CONT( err_msg ); \
    } while( false )

Check error code, if not MB_SUCCESS, set a new error with the given error message and continue Used in functions which return any data type.

Definition at line 218 of file ErrorHandler.hpp.

Referenced by moab::GeomTopoTool::entity_by_id(), moab::GeomTopoTool::GeomTopoTool(), and moab::WriteDamsel::WriteDamsel().

#define MB_CHK_SET_ERR_RET (   err_code,
  err_msg 
)
Value:
do                                                                    \
    {                                                                     \
        if( moab::MB_SUCCESS != ( err_code ) ) MB_SET_ERR_RET( err_msg ); \
    } while( false )

Check error code, if not MB_SUCCESS, set a new error with the given error message and return Used in functions which return void types (or have no return types at all, e.g. constructors)

Definition at line 202 of file ErrorHandler.hpp.

Referenced by moab::Util::centroid(), moab::Util::normal(), moab::ReadCCMIO::ReadCCMIO(), moab::Tqdcfr::Tqdcfr(), update_tracer(), and moab::LloydSmoother::~LloydSmoother().

#define MB_CHK_SET_ERR_RET_VAL (   err_code,
  err_msg,
  ret_val 
)
Value:
do                                                                                 \
    {                                                                                  \
        if( moab::MB_SUCCESS != ( err_code ) ) MB_SET_ERR_RET_VAL( err_msg, ret_val ); \
    } while( false )

Check error code, if not MB_SUCCESS, set a new error with the given error message and return the given value Used in functions which return any data type.

Definition at line 210 of file ErrorHandler.hpp.

Referenced by moab::ParallelComm::estimate_ents_buffer_size(), moab::ParallelComm::estimate_sets_buffer_size(), and moab::WriteNCDF::write_BCs().

#define MB_SET_ERR (   err_code,
  err_msg 
)
Value:
do                                                                                                        \
    {                                                                                                         \
        std::ostringstream err_ostr;                                                                          \
        err_ostr << err_msg;                                                                                  \
        return moab::MBError( __LINE__, __func__, __FILENAME__, __MBSDIR__, err_code, err_ostr.str().c_str(), \
                              moab::MB_ERROR_TYPE_NEW_LOCAL );                                                \
    } while( false )

Set a new error with the given error message (a string or a stream) and return the given error code Used in functions which return ErrorCode.

Examples:
DeformMeshRemap.cpp, ErrorHandlingSimulation.cpp, and GenLargeMesh.cpp.

Definition at line 61 of file ErrorHandler.hpp.

Referenced by moab::HalfFacetRep::add_cells_of_single_component(), moab::GeomTopoTool::add_geo_set(), moab::ReadSmf::annotation(), moab::HiReconstruction::average_vertex_normal(), moab::HiReconstruction::average_vertex_tangent(), moab::GeomQueryTool::boundary_case(), moab::ParallelComm::broadcast_entities(), moab::WriteUtil::check_doesnt_exist(), moab::ReadSmf::check_length(), moab::HalfFacetRep::check_nonmanifold_vertices(), moab::ParallelComm::check_sent_ents(), moab::WriteHDF5Parallel::check_serial_tag_data(), moab::NestedRefine::child_to_parent(), moab::SparseTag::clear_data(), moab::NCWriteGCRM::collect_mesh_info(), moab::NCWriteHOMME::collect_mesh_info(), moab::NCWriteMPAS::collect_mesh_info(), moab::ScdNCWriteHelper::collect_mesh_info(), moab::NCWriteGCRM::collect_variable_data(), moab::NCWriteMPAS::collect_variable_data(), moab::NCWriteHOMME::collect_variable_data(), moab::NCWriteHelper::collect_variable_data(), moab::ScdNCWriteHelper::collect_variable_data(), moab::Core::connect_iterate(), moab::GeomTopoTool::construct_obb_tree(), moab::GeomTopoTool::construct_vertex_ranges(), moab::SpectralMeshTool::convert_to_coarse(), moab::Core::coords_iterate(), moab::NCHelper::create_attrib_string(), moab::ReadCCMIO::create_cell_from_faces(), moab::NCHelper::create_conventional_tags(), moab::NCHelperMPAS::create_gather_set_cells(), moab::NCHelperGCRM::create_gather_set_edges(), moab::NCHelperMPAS::create_gather_set_edges(), moab::NCHelperGCRM::create_gather_set_vertices(), moab::NCHelperMPAS::create_gather_set_vertices(), moab::NCHelperGCRM::create_local_edges(), moab::NCHelperMPAS::create_local_edges(), moab::NCHelperGCRM::create_local_vertices(), moab::NCHelperMPAS::create_local_vertices(), moab::NCHelperDomain::create_mesh(), moab::NCHelperScrip::create_mesh(), moab::NCHelperHOMME::create_mesh(), moab::NCHelperGCRM::create_mesh(), moab::NCHelperMPAS::create_mesh(), moab::NCHelperGCRM::create_padded_gather_set_cells(), moab::NCHelperMPAS::create_padded_gather_set_cells(), moab::ReadNCDF::create_ss_elements(), moab::ReadHDF5::create_tag(), moab::ReadIDEAS::create_vertices(), moab::ReadHDF5::delete_non_side_elements(), moab::ReadParallel::delete_nonlocal_entities(), moab::HalfFacetRep::determine_sibling_halffaces(), moab::ReadSmf::end(), moab::WriteHDF5Parallel::exchange_file_ids(), moab::ParallelComm::exchange_ghost_cells(), moab::NestedRefine::exchange_ghosts(), moab::ParallelComm::exchange_owned_mesh(), moab::ParallelComm::exchange_tags(), moab::ReadSmf::face(), moab::BitTag::find_entities_with_value(), moab::DenseTag::find_entities_with_value(), moab::SparseTag::find_entities_with_value(), moab::ReadHDF5::find_int_tag(), moab::HalfFacetRep::find_matching_halfface(), moab::HalfFacetRep::find_matching_implicit_edge_in_cell(), DeformMeshRemap::find_other_sets(), moab::ReadHDF5::find_sets_containing(), moab::NestedRefine::find_shortest_diagonal_octahedron(), FunctionC(), moab::WriteCCMIO::gather_matset_info(), moab::WriteVtk::gather_mesh(), moab::WriteTemplate::gather_mesh_information(), moab::WriteSLAC::gather_mesh_information(), moab::WriteNCDF::gather_mesh_information(), moab::GeomTopoTool::generate_implicit_complement(), moab::GeomTopoTool::geometrize_surface_set(), moab::VarLenDenseTag::get_array(), moab::DenseTag::get_array_private(), moab::ReadNC::get_attributes(), moab::NestedRefine::get_connectivity(), moab::MeshTag::get_data(), moab::VarLenDenseTag::get_data(), moab::VarLenSparseTag::get_data(), moab::BitTag::get_data(), moab::ReadNC::get_dimensions(), moab::NestedRefine::get_local_vid(), moab::Tqdcfr::get_mesh_entities(), moab::RangeSetIterator::get_next_by_dimension(), moab::GeomQueryTool::get_normal(), moab::ParallelComm::get_remote_handles(), moab::GeomTopoTool::get_sense(), moab::GeomTopoTool::get_senses(), moab::ReadABAQUS::get_set_by_name(), moab::ReadHDF5::get_set_contents(), moab::HalfFacetRep::get_sibling_map(), moab::ReadHDF5::get_subset_ids(), moab::GeomTopoTool::get_surface_senses(), moab::WriteUtil::get_tag_list(), moab::NCHelper::get_tag_to_nonset(), moab::NCHelper::get_tag_to_set(), moab::ReadHDF5::get_tagged_entities(), moab::HalfFacetRep::get_up_adjacencies_edg_3d(), moab::HalfFacetRep::get_up_adjacencies_vert_3d(), moab::WriteTemplate::get_valid_sides(), moab::WriteSLAC::get_valid_sides(), moab::ReadNC::get_variables(), moab::NestedRefine::get_vertex_duplicates(), moab::HiReconstruction::hiproj_walf_around_vertex(), moab::HiReconstruction::hiproj_walf_in_element(), iMOAB_SetDoubleTagStorageWithGid(), moab::ReadHDF5::init(), moab::NCWriteHelper::init_file(), moab::NCHelperHOMME::init_mesh_vals(), moab::NCHelperDomain::init_mesh_vals(), moab::NCHelperFV::init_mesh_vals(), moab::NCHelperMPAS::init_mesh_vals(), moab::NCHelperGCRM::init_mesh_vals(), moab::NCHelperScrip::init_mesh_vals(), moab::NCHelperEuler::init_mesh_vals(), moab::NestedRefine::initialize(), moab::HiReconstruction::initialize(), moab::WriteNCDF::initialize_exodus_file(), moab::WriteSLAC::initialize_file(), moab::ReadHDF5::insert_in_id_map(), moab::NestedRefine::is_cell_on_boundary(), moab::NestedRefine::is_entity_on_boundary(), moab::NestedRefine::is_face_on_boundary(), moab::GeomTopoTool::is_owned_set(), moab::NestedRefine::is_vertex_on_boundary(), moab::ReadSms::load_file(), moab::ReadCGNS::load_file(), moab::ReadIDEAS::load_file(), moab::ReadTemplate::load_file(), moab::ReadParallel::load_file(), moab::ReadVtk::load_file(), moab::ReadGmsh::load_file(), moab::ReadCCMIO::load_file(), moab::ReadDamsel::load_file(), moab::ReadTetGen::load_file(), moab::ReadSmf::load_file(), moab::ReadNASTRAN::load_file(), moab::ReadMCNP5::load_file(), moab::ReadCGM::load_file(), moab::ReadSTL::load_file(), moab::ReadNC::load_file(), moab::ReadNCDF::load_file(), moab::Core::load_file(), moab::ReadOBJ::load_file(), moab::Tqdcfr::load_file(), moab::ReadABAQUS::load_file(), moab::ReadHDF5::load_file_impl(), moab::ReadHDF5::load_file_partial(), main(), moab::WriteDamsel::map_sparse_tags(), moab::GeomQueryTool::measure_area(), moab::GeomQueryTool::measure_volume(), moab::LinearHex::normalFcn(), moab::LinearQuad::normalFcn(), moab::LinearTet::normalFcn(), moab::LinearTri::normalFcn(), moab::not_root_set(), moab::ReadTetGen::open_file(), moab::WriteSLAC::open_file(), moab::WriteTemplate::open_file(), moab::WriteNCDF::open_file(), moab::ParallelComm::pack_entities(), moab::ParallelComm::pack_sets(), moab::ParallelComm::pack_tag(), moab::WriteHDF5Parallel::parallel_create_file(), moab::WriteHDF5::parallel_create_file(), moab::NestedRefine::parent_to_child(), moab::ReadSmf::parse_doubles(), moab::ReadSmf::parse_line(), moab::ReadDamsel::parse_options(), moab::ReadNC::parse_options(), moab::WriteNC::parse_options(), MetisPartitioner::partition_mesh(), moab::LloydSmoother::perform_smooth(), moab::GeomQueryTool::point_in_volume(), moab::ParallelComm::post_irecv(), moab::WriteNC::process_concatenated_attribute(), moab::WriteNC::process_conventional_tags(), moab::ReadDamsel::process_entity_tags(), moab::GeomQueryTool::ray_fire(), moab::ReadHDF5::read_adjacencies(), moab::ReadHDF5::read_all_set_meta(), moab::ReadNCDF::read_block_headers(), moab::NCHelper::read_coordinate(), moab::ReadHDF5::read_dense_tag(), moab::ReadTetGen::read_elem_file(), moab::ReadABAQUS::read_element_list(), moab::ReadABAQUS::read_element_set(), moab::ReadNCDF::read_elements(), moab::ReadHDF5::read_elems(), moab::ReadNCDF::read_exodus_header(), moab::ReadNCDF::read_face_blocks_headers(), moab::ReadCCMIO::read_faces(), DeformMeshRemap::read_file(), moab::ReadCCMIO::read_gids_and_types(), moab::ReadNCDF::read_global_ids(), moab::ReadNC::read_header(), moab::Tqdcfr::BlockHeader::read_info_header(), moab::ReadABAQUS::read_instance(), moab::ReadTetGen::read_line(), moab::ReadHDF5::read_node_adj_elems(), moab::ReadTetGen::read_node_file(), moab::ReadABAQUS::read_node_list(), moab::ReadABAQUS::read_node_set(), moab::ReadNCDF::read_nodes(), moab::ReadHDF5::read_nodes(), moab::ReadNCDF::read_nodesets(), moab::ReadABAQUS::read_part(), moab::ReadHDF5::read_poly(), moab::ReadNCDF::read_polyhedra_faces(), moab::ReadHDF5::read_qa(), moab::ReadNCDF::read_qa_string(), moab::ScdNCHelper::read_scd_variables_to_nonset(), moab::ScdNCHelper::read_scd_variables_to_nonset_allocate(), moab::ReadHDF5::read_set_data(), moab::ReadHDF5::read_set_ids_recursive(), moab::ReadHDF5::read_sets(), moab::ReadNCDF::read_sidesets(), moab::ReadABAQUS::read_solid_section(), moab::ReadHDF5::read_sparse_tag(), moab::ReadHDF5::read_sparse_tag_indices(), moab::ReadHDF5::read_tag(), moab::ReadHDF5::read_tag_values(), moab::ReadNCDF::read_tag_values(), moab::ReadHDF5::read_tag_values_all(), moab::ReadHDF5::read_tag_values_partial(), moab::NCHelperHOMME::read_ucd_variables_to_nonset(), moab::NCHelperGCRM::read_ucd_variables_to_nonset(), moab::NCHelperMPAS::read_ucd_variables_to_nonset(), moab::NCHelperHOMME::read_ucd_variables_to_nonset_allocate(), moab::NCHelperGCRM::read_ucd_variables_to_nonset_allocate(), moab::NCHelperMPAS::read_ucd_variables_to_nonset_allocate(), moab::ReadHDF5::read_var_len_tag(), moab::NCHelper::read_variables_setup(), moab::NCHelper::read_variables_to_set(), moab::NCHelper::read_variables_to_set_allocate(), moab::HiReconstruction::reconstruct3D_curve_geom(), moab::HiReconstruction::reconstruct3D_surf_geom(), moab::ParallelComm::recv_buffer(), moab::ParallelComm::recv_entities(), moab::ParallelComm::recv_messages(), moab::ParallelComm::recv_remote_handle_messages(), moab::ParallelComm::reduce_tags(), moab::ReaderWriterSet::register_factory(), moab::Core::remove_set_iterator(), moab::NestedRefine::reorder_indices(), moab::SequenceManager::reserve_tag_array(), moab::HalfFacetRep::resize_hf_maps(), moab::ParallelComm::resolve_shared_ents(), moab::GeomTopoTool::restore_topology_from_adjacency(), moab::ReadSmf::rot(), moab::ParallelComm::scatter_entities(), moab::ReadHDF5::search_tag_values(), moab::ParallelComm::send_buffer(), moab::ParallelComm::send_recv_entities(), moab::ParCommGraph::send_tag_values(), moab::Core::serial_load_file(), moab::ReadSmf::set(), moab::MeshTag::set_data(), moab::VarLenDenseTag::set_data(), moab::VarLenSparseTag::set_data(), moab::BitTag::set_data(), moab::GeomTopoTool::set_sense(), moab::HalfFacetRep::set_sibling_map(), moab::GeomTopoTool::set_surface_senses(), moab::ReadHDF5::set_up_read(), moab::ParallelComm::settle_intersection_points(), moab::BitTag::tag_iterate(), moab::VarLenDenseTag::tag_iterate(), moab::VarLenSparseTag::tag_iterate(), moab::ScdInterface::tag_shared_vertices(), moab::ReadNCDF::update(), moab::ReadHDF5::update_connectivity(), moab::NestedRefine::update_global_ahf(), moab::NestedRefine::update_global_ahf_1D(), moab::NestedRefine::update_global_ahf_1D_sub(), moab::NestedRefine::update_global_ahf_2D(), moab::NestedRefine::update_global_ahf_2D_sub(), moab::NestedRefine::update_global_ahf_3D(), moab::ParallelComm::update_remote_data(), moab::TagInfo::validate_lengths(), moab::ReadVtk::vtk_create_structured_elems(), moab::ReadVtk::vtk_read_polydata(), moab::ReadVtk::vtk_read_rectilinear_grid(), moab::ReadVtk::vtk_read_scalar_attrib(), moab::ReadVtk::vtk_read_structured_grid(), moab::ReadVtk::vtk_read_structured_points(), moab::ReadVtk::vtk_read_texture_attrib(), moab::ReadVtk::vtk_read_unstructured_grid(), moab::WriteNCDF::write_BCs(), moab::WriteVtk::write_bit_tag(), moab::WriteNCDF::write_element_order_map(), moab::WriteNCDF::write_elementblocks(), moab::WriteVtk::write_elems(), moab::WriteDamsel::write_entities(), moab::WriteNCDF::write_exodus_integer_variable(), moab::WriteCCMIO::write_external_faces(), moab::WriteSmf::write_file(), moab::WriteVtk::write_file(), moab::WriteGmsh::write_file(), moab::WriteSTL::write_file(), moab::WriteCCMIO::write_file(), moab::WriteNC::write_file(), moab::WriteNCDF::write_file(), moab::Core::write_file(), moab::WriteNCDF::write_global_element_order_map(), moab::WriteNCDF::write_global_node_order_map(), moab::WriteCCMIO::write_nodes(), moab::WriteNCDF::write_nodes(), moab::NCWriteGCRM::write_nonset_variables(), moab::NCWriteHOMME::write_nonset_variables(), moab::NCWriteMPAS::write_nonset_variables(), moab::ScdNCWriteHelper::write_nonset_variables(), moab::WriteNCDF::write_poly_faces(), moab::WriteNCDF::write_qa_string(), moab::NCWriteHelper::write_set_variables(), moab::NCWriteHelper::write_values(), and moab::WriteDamsel::write_vertices().

#define MB_SET_ERR_CONT (   err_msg)
Value:
do                                                                                                         \
    {                                                                                                          \
        std::ostringstream err_ostr;                                                                           \
        err_ostr << err_msg;                                                                                   \
        moab::MBError( __LINE__, __func__, __FILENAME__, __MBSDIR__, moab::MB_FAILURE, err_ostr.str().c_str(), \
                       moab::MB_ERROR_TYPE_NEW_LOCAL );                                                        \
    } while( false )

Set a new error with the given error message (a string or a stream) and continue Used in functions which return any data type.

Definition at line 96 of file ErrorHandler.hpp.

Referenced by moab::WriteHDF5Parallel::create_tag_tables(), moab::WriteHDF5Parallel::exchange_file_ids(), moab::WriteNCDF::initialize_exodus_file(), moab::ReadHDF5::is_error(), moab::FileTokenizer::match_token(), moab::ReadHDF5::read_tag_values_all(), moab::WriteNCDF::write_elementblocks(), moab::WriteHDF5::write_elems(), moab::WriteHDF5::write_file(), moab::WriteHDF5::write_file_impl(), and moab::WriteNCDF::write_poly_faces().

#define MB_SET_ERR_RET (   err_msg)
Value:
do                                                                                                         \
    {                                                                                                          \
        std::ostringstream err_ostr;                                                                           \
        err_ostr << err_msg;                                                                                   \
        moab::MBError( __LINE__, __func__, __FILENAME__, __MBSDIR__, moab::MB_FAILURE, err_ostr.str().c_str(), \
                       moab::MB_ERROR_TYPE_NEW_LOCAL );                                                        \
        return;                                                                                                \
    } while( false )

Set a new error with the given error message (a string or a stream) and return Used in functions which return void types (or have no return types at all, e.g. constructors)

Definition at line 72 of file ErrorHandler.hpp.

Referenced by moab::DGMSolver::vec_dotprod(), moab::DGMSolver::vec_linear_operation(), moab::DGMSolver::vec_projoff(), and moab::DGMSolver::vec_scalarprod().

#define MB_SET_GLB_ERR (   err_code,
  err_msg 
)
Value:
do                                                                                                        \
    {                                                                                                         \
        std::ostringstream err_ostr;                                                                          \
        err_ostr << err_msg;                                                                                  \
        return moab::MBError( __LINE__, __func__, __FILENAME__, __MBSDIR__, err_code, err_ostr.str().c_str(), \
                              moab::MB_ERROR_TYPE_NEW_GLOBAL );                                               \
    } while( false )

Similar to MB_SET_ERR except that the error is considered globally fatal.

Examples:
ErrorHandlingSimulation.cpp.

Definition at line 106 of file ErrorHandler.hpp.

Referenced by FunctionC(), moab::Core::load_file(), moab::ScdNCHelper::read_scd_variables_to_nonset_allocate(), moab::Core::serial_load_file(), and moab::Core::write_file().

#define MB_SET_GLB_ERR_CONT (   err_msg)
Value:
do                                                                                                         \
    {                                                                                                          \
        std::ostringstream err_ostr;                                                                           \
        err_ostr << ( err_msg );                                                                               \
        moab::MBError( __LINE__, __func__, __FILENAME__, __MBSDIR__, moab::MB_FAILURE, err_ostr.str().c_str(), \
                       moab::MB_ERROR_TYPE_NEW_GLOBAL );                                                       \
    } while( false )

Similar to MB_SET_ERR_CONT except that the error is considered globally fatal.

Definition at line 138 of file ErrorHandler.hpp.

#define MB_SET_GLB_ERR_RET (   err_msg)
Value:
do                                                                                                         \
    {                                                                                                          \
        std::ostringstream err_ostr;                                                                           \
        err_ostr << ( err_msg );                                                                               \
        moab::MBError( __LINE__, __func__, __FILENAME__, __MBSDIR__, moab::MB_FAILURE, err_ostr.str().c_str(), \
                       moab::MB_ERROR_TYPE_NEW_GLOBAL );                                                       \
        return;                                                                                                \
    } while( false )

Similar to MB_SET_ERR_RET except that the error is considered globally fatal.

Definition at line 116 of file ErrorHandler.hpp.

#define MB_SET_GLB_ERR_RET_VAL (   err_msg,
  ret_val 
)
Value:
do                                                                                                         \
    {                                                                                                          \
        std::ostringstream err_ostr;                                                                           \
        err_ostr << ( err_msg );                                                                               \
        moab::MBError( __LINE__, __func__, __FILENAME__, __MBSDIR__, moab::MB_FAILURE, err_ostr.str().c_str(), \
                       moab::MB_ERROR_TYPE_NEW_GLOBAL );                                                       \
        return ret_val;                                                                                        \
    } while( false )

Similar to MB_SET_ERR_RET_VAL except that the error is considered globally fatal.

Definition at line 127 of file ErrorHandler.hpp.

#define MBSTRINGIFY (   X)    MBSTRINGIFY_( X )

Definition at line 51 of file ErrorHandler.hpp.

#define MBSTRINGIFY_ (   X)    #X

Definition at line 50 of file ErrorHandler.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines