MOAB: Mesh Oriented datABase  (version 5.4.1)
Mesquite internal error handling

Classes

class  MBMesquite::MsqError
 Used to hold the error state and return it to the application. More...
class  MBMesquite::MsqPrintError
 Utility class for printing error data - used in Mesquite tests. More...

Defines

#define MSQ_CHKERR(err)   ( ( err ).error() && ( err ).push( MSQ_FUNCTION, __FILE__, __LINE__ ) )
 Mesquite's Error Checking macro.
#define MSQ_ERRRTN(err)   if( MSQ_CHKERR( err ) ) return
 If passed error is true, return from a void function.
#define MSQ_ERRZERO(err)   if( MSQ_CHKERR( err ) ) return 0
 Return zero/NULL on error.
#define MSQ_ERRFALSE(err)   if( MSQ_CHKERR( err ) ) return false
 Return false on error.
#define MSQ_SETERR(err)   MBMesquite::MsqError::setter( err, MSQ_FUNCTION, __FILE__, __LINE__ ).set
 Macro to set error - use err.clear() to clear.

Functions

std::ostream & MBMesquite::operator<< (std::ostream &, const MsqError &)
 Print message and stack trace.
std::ostream & MBMesquite::operator<< (std::ostream &, const MsqError::Trace &)
 Print MsqError::Trace.

Define Documentation

#define MSQ_CHKERR (   err)    ( ( err ).error() && ( err ).push( MSQ_FUNCTION, __FILE__, __LINE__ ) )

Mesquite's Error Checking macro.

Check the status of an MsqError. Returns true as pushes the current file/line onto the stack trace if the error flag is true. Returns false otherwise.

Definition at line 51 of file MsqError.hpp.

Referenced by MBMesquite::TerminationCriterion::accumulate_inner(), MBMesquite::MsqHessian::cg_solver(), PMeanPTemplateTest::check_result(), check_slaved_coords(), MBMesquite::TagVertexMesh::clear(), MBMesquite::ParallelHelperImpl::communicate_first_independent_set(), QualityMetricTester::compare_analytical_and_numerical_diagonals(), TMPQualityMetricTest< QMType >::compare_analytical_and_numerical_diagonals(), QualityMetricTester::compare_analytical_and_numerical_gradients(), TMPQualityMetricTest< QMType >::compare_analytical_and_numerical_gradients(), QualityMetricTester::compare_analytical_and_numerical_hessians(), TMPQualityMetricTest< QMType >::compare_analytical_and_numerical_hessians(), QualityMetricTester::compare_eval_and_eval_with_indices(), QualityMetricTester::compare_eval_with_diag_and_eval_with_hessian(), QualityMetricTester::compare_eval_with_grad_and_eval_with_diagonal(), QualityMetricTester::compare_eval_with_grad_and_eval_with_hessian(), QualityMetricTester::compare_eval_with_indices_and_eval_with_diagonal(), QualityMetricTester::compare_eval_with_indices_and_eval_with_gradient(), QualityMetricTester::compare_eval_with_indices_and_eval_with_hessian(), MBMesquite::ObjectiveFunction::compute_patch_numerical_gradient(), MBMesquite::ObjectiveFunction::compute_subpatch_numerical_gradient(), cond_write_file(), create_input_mesh(), MBMesquite::create_six_quads_patch_inverted_with_domain(), MBMesquite::create_twelve_hex_patch_inverted(), MBMesquite::PatchData::create_vertices_memento(), MBMesquite::TerminationCriterion::cull_vertices(), MBMesquite::do_numerical_gradient(), MBMesquite::do_numerical_hessian(), do_smooth_ho(), do_smoother(), do_test(), MeshImplTest::dump_mesh(), MBMesquite::MsqIMesh::elements_get_attached_vertices(), MBMesquite::MeshImpl::elements_get_topologies(), MBMesquite::TUntangleMu::eval(), MBMesquite::InvTransBarrier::evaluate(), MBMesquite::LInfTemplate::evaluate(), MBMesquite::StdDevTemplate::evaluate(), MBMesquite::MaxTemplate::evaluate(), MBMesquite::VertexPMeanP::evaluate(), MBMesquite::ElementPMeanP::evaluate(), MBMesquite::EdgeLengthQualityMetric::evaluate(), MBMesquite::CompositeOFScalarAdd::evaluate(), MBMesquite::EdgeLengthRangeQualityMetric::evaluate(), MBMesquite::CompositeOFScalarMultiply::evaluate(), MBMesquite::VarianceTemplate::evaluate(), MBMesquite::PatchPowerMeanP::evaluate(), MBMesquite::CompositeOFMultiply::evaluate(), MBMesquite::CompositeOFAdd::evaluate(), MBMesquite::TMPQualityMetric::evaluate(), MBMesquite::LPtoPTemplate::evaluate(), MBMesquite::PowerQualityMetric::evaluate(), MBMesquite::PMeanPTemplate::evaluate(), MBMesquite::OFEvaluator::evaluate(), MBMesquite::EdgeLengthQualityMetric::evaluate_common(), MBMesquite::EdgeLengthRangeQualityMetric::evaluate_common(), MBMesquite::LVQDTargetCalculator::evaluate_guide_2D(), MBMesquite::AWQualityMetric::evaluate_internal(), MBMesquite::TQualityMetric::evaluate_internal(), MBMesquite::StdDevTemplate::evaluate_with_gradient(), MBMesquite::ElementPMeanP::evaluate_with_gradient(), MBMesquite::VertexPMeanP::evaluate_with_gradient(), MBMesquite::CompositeOFScalarAdd::evaluate_with_gradient(), MBMesquite::ScalarAddQualityMetric::evaluate_with_gradient(), MBMesquite::CompositeOFScalarMultiply::evaluate_with_gradient(), MBMesquite::PatchPowerMeanP::evaluate_with_gradient(), MBMesquite::VarianceTemplate::evaluate_with_gradient(), MBMesquite::CompositeOFMultiply::evaluate_with_gradient(), MBMesquite::ScalarMultiplyQualityMetric::evaluate_with_gradient(), MBMesquite::TQualityMetric::evaluate_with_gradient(), MBMesquite::CompositeOFAdd::evaluate_with_gradient(), MBMesquite::AWQualityMetric::evaluate_with_gradient(), MBMesquite::LPtoPTemplate::evaluate_with_gradient(), MBMesquite::PowerQualityMetric::evaluate_with_gradient(), MBMesquite::PMeanPTemplate::evaluate_with_gradient(), MBMesquite::QualityMetric::evaluate_with_gradient(), MBMesquite::ObjectiveFunction::evaluate_with_gradient(), MBMesquite::ElementPMeanP::evaluate_with_Hessian(), MBMesquite::VertexPMeanP::evaluate_with_Hessian(), MBMesquite::ScalarAddQualityMetric::evaluate_with_Hessian(), MBMesquite::PatchPowerMeanP::evaluate_with_Hessian(), MBMesquite::CompositeOFScalarAdd::evaluate_with_Hessian(), MBMesquite::ScalarMultiplyQualityMetric::evaluate_with_Hessian(), MBMesquite::CompositeOFScalarMultiply::evaluate_with_Hessian(), MBMesquite::AWQualityMetric::evaluate_with_Hessian(), MBMesquite::TQualityMetric::evaluate_with_Hessian(), MBMesquite::CompositeOFAdd::evaluate_with_Hessian(), MBMesquite::LPtoPTemplate::evaluate_with_Hessian(), MBMesquite::PowerQualityMetric::evaluate_with_Hessian(), MBMesquite::PMeanPTemplate::evaluate_with_Hessian(), MBMesquite::QualityMetric::evaluate_with_Hessian(), MBMesquite::StdDevTemplate::evaluate_with_Hessian_diagonal(), MBMesquite::ElementPMeanP::evaluate_with_Hessian_diagonal(), MBMesquite::CompositeOFScalarAdd::evaluate_with_Hessian_diagonal(), MBMesquite::CompositeOFScalarMultiply::evaluate_with_Hessian_diagonal(), MBMesquite::VarianceTemplate::evaluate_with_Hessian_diagonal(), MBMesquite::VertexPMeanP::evaluate_with_Hessian_diagonal(), MBMesquite::CompositeOFMultiply::evaluate_with_Hessian_diagonal(), MBMesquite::AWQualityMetric::evaluate_with_Hessian_diagonal(), MBMesquite::CompositeOFAdd::evaluate_with_Hessian_diagonal(), MBMesquite::TQualityMetric::evaluate_with_Hessian_diagonal(), MBMesquite::LPtoPTemplate::evaluate_with_Hessian_diagonal(), MBMesquite::PMeanPTemplate::evaluate_with_Hessian_diagonal(), MBMesquite::QualityMetric::evaluate_with_Hessian_diagonal(), MBMesquite::VertexPMeanP::evaluate_with_indices(), MBMesquite::ScalarAddQualityMetric::evaluate_with_indices(), MBMesquite::ElementQM::evaluate_with_indices(), MBMesquite::EdgeLengthQualityMetric::evaluate_with_indices(), MBMesquite::LocalSizeQualityMetric::evaluate_with_indices(), MBMesquite::ScalarMultiplyQualityMetric::evaluate_with_indices(), MBMesquite::EdgeLengthRangeQualityMetric::evaluate_with_indices(), MBMesquite::TMPQualityMetric::evaluate_with_indices(), MBMesquite::PowerQualityMetric::evaluate_with_indices(), MBMesquite::PatchData::fill(), MBMesquite::SphericalDomain::fit_vertices(), MBMesquite::LambdaConstant::get_2D_target(), MBMesquite::LambdaTarget::get_2D_target(), MBMesquite::LVQDTargetCalculator::get_2D_target(), MBMesquite::IdealShapeTarget::get_2D_target(), MBMesquite::RefMeshTargetCalculator::get_2D_target(), MBMesquite::TargetReader::get_2D_target(), MBMesquite::IdealShapeTarget::get_3D_target(), MBMesquite::LambdaConstant::get_3D_target(), MBMesquite::LambdaTarget::get_3D_target(), MBMesquite::LVQDTargetCalculator::get_3D_target(), MBMesquite::RefMeshTargetCalculator::get_3D_target(), MBMesquite::TargetReader::get_3D_target(), MBMesquite::MsqIMesh::get_all_vertices(), MBMesquite::MsqMOAB::get_all_vertices(), MBMesquite::FileTokenizer::get_boolean_internal(), MBMesquite::FileTokenizer::get_booleans(), MBMesquite::FileTokenizer::get_byte_internal(), MBMesquite::FileTokenizer::get_bytes(), IdealTargetTest::get_calc_target(), MBMesquite::PatchData::get_domain_normal_at_corner(), MBMesquite::FileTokenizer::get_double_internal(), MBMesquite::FileTokenizer::get_doubles(), MBMesquite::ScalarAddQualityMetric::get_evaluations(), MBMesquite::ScalarMultiplyQualityMetric::get_evaluations(), MBMesquite::PowerQualityMetric::get_evaluations(), MBMesquite::FileTokenizer::get_float_internal(), MBMesquite::MeshUtil::get_global_patch(), get_homogenious_example(), QualityMetricTester::get_ideal_element(), QualityMetricTester::get_ideal_hexes(), QualityMetricTester::get_ideal_quads(), IdealTargetTest::get_ideal_target(), QualityMetricTester::get_ideal_tris(), get_imesh_mesh(), MBMesquite::FileTokenizer::get_integer_internal(), MBMesquite::FileTokenizer::get_integers(), MBMesquite::FileTokenizer::get_long_int_internal(), MBMesquite::FileTokenizer::get_long_ints(), MBMesquite::get_nodeset(), get_part_example_quad(), get_part_example_tri(), MBMesquite::VertexPatches::get_patch(), MBMesquite::ElementPatches::get_patch_handles(), MBMesquite::FileTokenizer::get_short_int_internal(), MBMesquite::FileTokenizer::get_short_ints(), get_slaved_coords(), MBMesquite::PatchData::get_subpatch(), MBMesquite::LambdaConstant::get_surface_target(), MBMesquite::LambdaTarget::get_surface_target(), MBMesquite::LVQDTargetCalculator::get_surface_target(), MBMesquite::IdealShapeTarget::get_surface_target(), MBMesquite::TargetReader::get_surface_target(), MBMesquite::RefMeshTargetCalculator::get_surface_target(), MBMesquite::TargetWriter::get_tag_handle(), MBMesquite::TargetWriter::get_target_tag(), MBMesquite::WeightReader::get_weight(), MBMesquite::TargetWriter::get_weight_tag(), MBMesquite::TUntangleMu::grad(), MBMesquite::TUntangleMu::hess(), MBMesquite::QuasiNewton::initialize(), MBMesquite::TrustRegion::initialize(), MBMesquite::TagVertexMesh::initialize(), MBMesquite::OFEvaluator::initialize(), MBMesquite::MsqHessian::initialize(), MBMesquite::FeasibleNewton::initialize(), MBMesquite::ObjectiveFunctionTemplate::initialize_block_coordinate_descent(), MBMesquite::CompositeOFScalarAdd::initialize_block_coordinate_descent(), MBMesquite::CompositeOFScalarMultiply::initialize_block_coordinate_descent(), MBMesquite::CompositeOFMultiply::initialize_block_coordinate_descent(), MBMesquite::PatchPowerMeanP::initialize_block_coordinate_descent(), MBMesquite::CompositeOFAdd::initialize_block_coordinate_descent(), MBMesquite::ParallelHelperImpl::is_our_vertex(), MeshImplTest::load_vtk(), MBMesquite::VertexMover::loop_over_mesh(), MBMesquite::MeshTransform::loop_over_mesh(), MBMesquite::QualityAssessor::loop_over_mesh_internal(), main(), make_domain(), MBMesquite::FileTokenizer::match_token(), MBMesquite::PatchData::move_free_vertices_constrained(), MBMesquite::ConjugateGradient::optimize_vertex_positions(), MBMesquite::MeshImpl::read_exodus(), MBMesquite::MeshImpl::read_vtk(), MBMesquite::Wrapper::run_common(), run_example(), run_smoother(), MBMesquite::SizeAdaptShapeWrapper::run_wrapper(), MBMesquite::PaverMinEdgeLengthWrapper::run_wrapper(), MBMesquite::ViscousCFDTetShapeWrapper::run_wrapper(), MBMesquite::MsqIMesh::set_active_set(), MBMesquite::MsqMOAB::set_active_set(), MBMesquite::PatchData::set_free_vertices_constrained(), PMeanPTemplateTest::setUp(), MBMesquite::MeshImpl::tag_delete(), MBMesquite::MeshImpl::tag_get_element_data(), MBMesquite::MeshImpl::tag_get_vertex_data(), MBMesquite::MeshImpl::tag_set_element_data(), MBMesquite::MeshImpl::tag_set_vertex_data(), MBMesquite::MeshImpl::tag_to_bool(), MBMesquite::TagVertexMesh::TagVertexMesh(), TMPQualityMetricTest< AWQualityMetric >::test_2d_eval_ortho_quad(), TMPQualityMetricTest< AWQualityMetric >::test_3d_eval_ortho_hex(), test_bad_element(), PMeanPTemplateTest::test_diagonal(), QualityMetricTester::test_domain_deviation_gradient(), QualityMetricTester::test_domain_deviation_quality(), PMeanPTemplateTest::test_evaluate(), test_evaluate(), TMPQualityMetricTest< QMType >::test_evaluate_2D(), TMPQualityMetricTest< AWQualityMetric >::test_evaluate_2D_weight(), TMPQualityMetricTest< QMType >::test_evaluate_3D(), TMPQualityMetricTest< AWQualityMetric >::test_evaluate_3D_weight(), TMPQualityMetricTest< QMType >::test_evaluate_surface(), TMPQualityMetricTest< AWQualityMetric >::test_evaluate_surface_weight(), QualityMetricTester::test_get_element_evaluations(), QualityMetricTester::test_get_element_indices(), QualityMetricTester::test_get_in_element_evaluations(), QualityMetricTester::test_get_indices_fixed(), QualityMetricTester::test_get_sample_evaluations(), QualityMetricTester::test_get_sample_indices(), QualityMetricTester::test_get_vertex_evaluations(), QualityMetricTester::test_get_vertex_indices(), QualityMetricTester::test_grad_transform_invariant(), PMeanPTemplateTest::test_gradient(), QualityMetricTester::test_gradient_reflects_quality(), PMeanPTemplateTest::test_Hessian(), StdDevTemplateTest::test_hessian_fails(), StdDevTemplateTest::test_hessian_fails_sqr(), QualityMetricTester::test_hessian_transform_invariant(), QualityMetricTester::test_ideal_element_positive_definite_Hessian(), QualityMetricTester::test_ideal_element_zero_gradient(), QualityMetricTester::test_ideal_element_zero_vertex_gradient(), QualityMetricTester::test_measures_quality(), QualityMetricTester::test_measures_transform(), QualityMetricTester::test_measures_vertex_quality(), PatchDataTest::test_patch_contents(), TMPQualityMetricTest< AWQualityMetric >::test_surf_eval_ortho_quad(), QualityMetricTester::test_symmetric_Hessian_diagonal_blocks(), QualityMetricTester::test_transform_invariant(), QualityMetricTester::test_type_is_supported(), QualityMetricTester::test_vertex_gradient_reflects_quality(), MBMesquite::OFEvaluator::update(), MBMesquite::MeshImpl::vertex_get_byte(), MBMesquite::MeshImpl::vertex_set_byte(), MBMesquite::MeshImpl::vertex_set_coordinates(), MBMesquite::ParallelMeshImpl::vertices_get_global_id(), MBMesquite::ParallelMeshImpl::vertices_get_processor_id(), MBMesquite::ParallelMeshImpl::vertices_set_global_id(), MBMesquite::ParallelMeshImpl::vertices_set_processor_id(), MBMesquite::MeshImpl::vtk_read_cell_data(), MBMesquite::MeshImpl::vtk_read_color_attrib(), MBMesquite::MeshImpl::vtk_read_field_data(), MBMesquite::MeshImpl::vtk_read_point_data(), MBMesquite::MeshImpl::vtk_read_typed_data(), MBMesquite::MeshWriter::write_vtk(), and MBMesquite::MeshImpl::write_vtk().

#define MSQ_ERRFALSE (   err)    if( MSQ_CHKERR( err ) ) return false

Return false on error.

Definition at line 67 of file MsqError.hpp.

Referenced by MBMesquite::LInfTemplate::evaluate(), MBMesquite::MaxTemplate::evaluate(), MBMesquite::ElementAvgQM::evaluate(), MBMesquite::ElementMaxQM::evaluate(), MBMesquite::VertexMaxQM::evaluate(), MBMesquite::ElementPMeanP::evaluate(), MBMesquite::VertexPMeanP::evaluate(), MBMesquite::PatchPowerMeanP::evaluate(), MBMesquite::VarianceTemplate::evaluate(), MBMesquite::LPtoPTemplate::evaluate(), MBMesquite::PMeanPTemplate::evaluate(), AddQualityMetricTest::evaluate(), MultiplyQualityMetricTest::evaluate(), PowerQualityMetricTest< POWER >::evaluate(), ScalarAddMetricTest< OFFSET >::evaluate(), ScalarMultiplyMetricTest< SCALE >::evaluate(), MBMesquite::ElementPMeanP::evaluate_with_gradient(), MBMesquite::VertexPMeanP::evaluate_with_gradient(), MBMesquite::PatchPowerMeanP::evaluate_with_gradient(), MBMesquite::VarianceTemplate::evaluate_with_gradient(), MBMesquite::LPtoPTemplate::evaluate_with_gradient(), MBMesquite::PMeanPTemplate::evaluate_with_gradient(), MBMesquite::ElementPMeanP::evaluate_with_Hessian(), MBMesquite::VertexPMeanP::evaluate_with_Hessian(), MBMesquite::PatchPowerMeanP::evaluate_with_Hessian(), MBMesquite::LPtoPTemplate::evaluate_with_Hessian(), MBMesquite::PMeanPTemplate::evaluate_with_Hessian(), MBMesquite::ElementPMeanP::evaluate_with_Hessian_diagonal(), MBMesquite::VarianceTemplate::evaluate_with_Hessian_diagonal(), MBMesquite::VertexPMeanP::evaluate_with_Hessian_diagonal(), MBMesquite::LPtoPTemplate::evaluate_with_Hessian_diagonal(), MBMesquite::PMeanPTemplate::evaluate_with_Hessian_diagonal(), MBMesquite::VertexMaxQM::evaluate_with_indices(), MBMesquite::VertexPMeanP::evaluate_with_indices(), and MBMesquite::VertexConditionNumberQualityMetric::evaluate_with_indices().

#define MSQ_ERRRTN (   err)    if( MSQ_CHKERR( err ) ) return

If passed error is true, return from a void function.

Shorthand for if (MSQ_CHKERR(err)) return

Definition at line 57 of file MsqError.hpp.

Referenced by MBMesquite::TerminationCriterion::accumulate_inner(), MBMesquite::TerminationCriterion::accumulate_outer(), MBMesquite::TerminationCriterion::accumulate_patch(), HigherOrderTest::basic_hex_test(), HigherOrderTest::basic_tet_test(), HigherOrderTest::basic_tri_test(), MBMesquite::MsqMeshEntity::check_element_orientation(), MBMesquite::MsqMeshEntity::check_element_orientation_corners(), MBMesquite::CompareQM::check_indices(), MBMesquite::TagVertexMesh::check_remove_tag(), MBMesquite::checkpoint_bytes(), classify_boundary(), MBMesquite::DomainClassifier::classify_by_handle(), MBMesquite::DomainClassifier::classify_by_tag(), MBMesquite::DomainClassifier::classify_geometrically(), MBMesquite::DomainClassifier::classify_skin_geometrically(), MBMesquite::VertexMover::commit_jacobi_coords(), compare_nodes(), MBMesquite::MsqMeshEntity::compute_corner_normals(), MBMesquite::ConjugateGradient::ConjugateGradient(), MBMesquite::MappingFunction::convert_connectivity_indices_impl(), MBMesquite::TagVertexMesh::copy_all_coordinates(), MBMesquite::MeshImplData::copy_higher_order(), MBMesquite::BoundedCylinderDomain::create_curve(), MBMesquite::create_ideal_element_patch(), MBMesquite::MeshImplData::delete_element(), MBMesquite::DomainClassifier::domain_DoF(), MBMesquite::MeshUtil::edge_length_distribution(), MBMesquite::EdgeIterator::EdgeIterator(), elem_areas(), MBMesquite::MeshImpl::elements_get_attached_vertices(), MBMesquite::PatchData::fill(), MBMesquite::PatchData::fill_global_patch(), MBMesquite::find_skin(), find_z10_extreme_elements(), MBMesquite::SphericalDomain::fit_vertices(), MBMesquite::PlanarDomain::fit_vertices(), MBMesquite::geom_classify_elements(), MBMesquite::geom_classify_vertices(), MBMesquite::PatchData::get_adjacent_entities_via_n_dim(), MBMesquite::PatchData::get_adjacent_vertex_indices(), MBMesquite::EdgeIterator::get_adjacent_vertices(), MBMesquite::MeshImpl::get_all_elements(), MBMesquite::MeshImpl::get_all_vertices(), MBMesquite::MsqMeshEntity::get_centroid(), MBMesquite::PatchData::get_domain_normal_at_element(), MBMesquite::PatchData::get_domain_normal_at_mid_edge(), MBMesquite::PatchData::get_domain_normal_at_vertex(), MBMesquite::PatchData::get_domain_normals_at_corners(), MBMesquite::EdgeQM::get_edge_evaluations(), MBMesquite::AddQualityMetric::get_evaluations(), MBMesquite::CompareQM::get_evaluations(), MBMesquite::MultiplyQualityMetric::get_evaluations(), CompareMetric::get_evaluations(), MBMesquite::DomainUtil::get_fixed_vertices(), MBMesquite::JacobianCalculator::get_Jacobian_2D(), MBMesquite::JacobianCalculator::get_Jacobian_3D(), MBMesquite::PatchData::get_minmax_element_unsigned_area(), MBMesquite::GlobalPatch::get_patch(), MBMesquite::VertexPatches::get_patch_handles(), get_planar_example(), MBMesquite::ReferenceMesh::get_reference_vertex_coordinates(), MBMesquite::TargetCalculator::get_refmesh_Jacobian_2D(), MBMesquite::TargetCalculator::get_refmesh_Jacobian_3D(), MBMesquite::PatchData::get_sample_location(), MBMesquite::get_sample_pt_evaluations(), MBMesquite::PatchData::get_subpatch(), MBMesquite::VertexQM::get_vertex_corner_handles(), MBMesquite::MappingFunction2D::ideal(), MBMesquite::MappingFunction3D::ideal(), MBMesquite::TargetCalculator::ideal_shape_2D(), MBMesquite::TargetCalculator::ideal_shape_3D(), MBMesquite::TargetCalculator::ideal_skew_2D(), MBMesquite::TargetCalculator::ideal_skew_3D(), MBMesquite::IdealWeightInverseMeanRatio::IdealWeightInverseMeanRatio(), MBMesquite::MsqMOAB::init_active_mesh(), MBMesquite::MsqIMesh::init_active_mesh(), MBMesquite::NonSmoothDescent::init_opt(), MBMesquite::TagVertexMesh::initialize(), TCTFauxOptimizer::initialize(), MBMesquite::CompositeOFScalarAdd::initialize_queue(), MBMesquite::VertexMover::initialize_queue(), MBMesquite::CompositeOFScalarMultiply::initialize_queue(), MBMesquite::CompositeOFMultiply::initialize_queue(), MBMesquite::OFEvaluator::initialize_queue(), MBMesquite::CompositeOFAdd::initialize_queue(), MBMesquite::ObjectiveFunctionTemplate::initialize_queue(), MBMesquite::QualityImprover::initialize_queue(), MBMesquite::TMPQualityMetric::initialize_queue(), MBMesquite::QualityAssessor::initialize_queue(), MBMesquite::TerminationCriterion::initialize_queue(), MBMesquite::Instruction::initialize_vertex_byte(), MBMesquite::MappingFunction2D::jacobian(), MBMesquite::MappingFunction3D::jacobian(), MBMesquite::TargetCalculator::jacobian_2D(), MBMesquite::TargetCalculator::jacobian_3D(), MBMesquite::MeshUtil::lambda_distribution(), MBMesquite::MeshImpl::mark_skin_fixed(), MBMesquite::MeshImpl::MeshImpl(), MBMesquite::NonSmoothDescent::minmax_opt(), MBMesquite::PatchData::move_free_vertices_constrained(), MBMesquite::DeformingDomainWrapper::move_to_domain(), MBMesquite::PatchData::move_vertex(), MBMesquite::MsqIMesh::MsqIMesh(), MBMesquite::MsqMOAB::MsqMOAB(), MBMesquite::NonGradient::NonGradient(), MBMesquite::PatchData::notify_sub_patch(), MBMesquite::SmartLaplacianSmoother::optimize_vertex_positions(), UnOptimizer::optimize_vertex_positions(), MBMesquite::QuasiNewton::optimize_vertex_positions(), MBMesquite::TrustRegion::optimize_vertex_positions(), MBMesquite::LaplacianSmoother::optimize_vertex_positions(), MBMesquite::Randomize::optimize_vertex_positions(), MBMesquite::ConjugateGradient::optimize_vertex_positions(), MBMesquite::SteepestDescent::optimize_vertex_positions(), MBMesquite::FeasibleNewton::optimize_vertex_positions(), MBMesquite::NonSmoothDescent::optimize_vertex_positions(), MBMesquite::populate_data(), MBMesquite::PatchData::project_gradient(), randomize_vertex(), MBMesquite::MeshImpl::read_exodus(), MBMesquite::MeshImpl::read_vtk(), MBMesquite::MeshImplData::reset_element(), MBMesquite::TerminationCriterion::reset_inner(), MBMesquite::TerminationCriterion::reset_outer(), MBMesquite::TerminationCriterion::reset_patch(), MBMesquite::restore_bytes(), ParShapeImprover::run(), MBMesquite::InstructionQueue::run_common(), MBMesquite::PaverMinEdgeLengthWrapper::run_wrapper(), MBMesquite::SizeAdaptShapeWrapper::run_wrapper(), MBMesquite::ViscousCFDTetShapeWrapper::run_wrapper(), MBMesquite::ShapeImprover::run_wrapper(), MBMesquite::ShapeImprovementWrapper::run_wrapper(), MBMesquite::LaplaceWrapper::run_wrapper(), MBMesquite::UntangleWrapper::run_wrapper(), ParShapeImprover::ParShapeImprovementWrapper::run_wrapper(), MBMesquite::DeformingDomainWrapper::run_wrapper(), MBMesquite::NonSmoothDescent::search_direction(), MBMesquite::MsqIMesh::set_active_set(), MBMesquite::MsqMOAB::set_active_set(), MBMesquite::MeshImpl::set_all_fixed_flags(), MBMesquite::MeshImpl::set_all_slaved_flags(), MBMesquite::MsqMOAB::set_fixed_tag(), MBMesquite::MsqIMesh::set_fixed_tag(), MBMesquite::PatchData::set_free_vertices_constrained(), MBMesquite::InstructionQueue::set_master_quality_improver(), MBMesquite::TagVertexMesh::set_mesh(), MBMesquite::PatchData::set_mesh_entities(), MBMesquite::MeshImpl::set_skin_flags(), MBMesquite::MsqMOAB::set_slaved_tag(), MBMesquite::MsqIMesh::set_slaved_tag(), MBMesquite::TagVertexMesh::set_tag_name(), MBMesquite::PatchData::set_vertex_coordinates(), MBMesquite::XYRectangle::setup(), MBMesquite::MeshImplData::skin(), MBMesquite::DeformingCurveSmoother::smooth_curve(), MBMesquite::ParallelHelperImpl::smoothing_close(), MBMesquite::ParallelHelperImpl::smoothing_init(), MBMesquite::PatchData::snap_vertex_to_domain(), MBMesquite::EdgeIterator::step(), MBMesquite::NonSmoothDescent::step_acceptance(), MBMesquite::DeformingDomainWrapper::store_initial_mesh(), MBMesquite::DeformingCurveSmoother::store_initial_mesh(), tag_patch_slaved(), MBMesquite::MeshImpl::tag_properties(), MBMesquite::MeshImpl::tag_to_bool(), MsqMeshEntityTest::test_check_element_orientation(), MBMesquite::DomainClassifier::test_valid_classification(), untangle_function_2d(), MBMesquite::PatchData::update_cached_normals(), MBMesquite::PatchData::update_mesh(), MBMesquite::PatchData::update_slave_node_coordinates(), MBMesquite::vert_classify_elements(), MBMesquite::DomainClassifier::vertex_normal_at(), MBMesquite::TagVertexMesh::vertex_set_coordinates(), MBMesquite::MsqIMesh::vertices_get_attached_elements(), MBMesquite::MsqMOAB::vertices_get_attached_elements(), MBMesquite::MeshImpl::vertices_get_attached_elements(), MBMesquite::MeshImpl::vertices_get_byte(), MBMesquite::TagVertexMesh::vertices_get_coordinates(), MBMesquite::MeshImpl::vertices_get_coordinates(), MBMesquite::MeshImpl::vertices_get_fixed_flag(), MBMesquite::MeshImpl::vertices_get_slaved_flag(), MBMesquite::MeshImpl::vertices_set_byte(), MBMesquite::MeshImpl::vertices_set_fixed_flag(), MBMesquite::MeshImpl::vtk_create_structured_elems(), MBMesquite::MeshImpl::vtk_read_cell_data(), MBMesquite::MeshImpl::vtk_read_dataset(), MBMesquite::MeshImpl::vtk_read_field(), MBMesquite::MeshImpl::vtk_read_point_data(), MBMesquite::MeshImpl::vtk_read_polydata(), MBMesquite::MeshImpl::vtk_read_polygons(), MBMesquite::MeshImpl::vtk_read_rectilinear_grid(), MBMesquite::MeshImpl::vtk_read_structured_grid(), MBMesquite::MeshImpl::vtk_read_structured_points(), MBMesquite::MeshImpl::vtk_read_unstructured_grid(), MBMesquite::MeshImpl::vtk_store_cell_data(), MBMesquite::MeshImpl::vtk_store_point_data(), MBMesquite::MeshImpl::vtk_write_attrib_data(), MBMesquite::TMPQualityMetric::weight(), MBMesquite::MeshWriter::write_eps(), MBMesquite::MeshWriter::write_eps_triangle(), MBMesquite::MeshImpl::write_exodus(), MBMesquite::MeshWriter::write_gnuplot(), MBMesquite::MeshWriter::write_gnuplot_animator(), MBMesquite::MeshWriter::write_gnuplot_overlay(), MBMesquite::MeshWriter::write_stl(), MBMesquite::MeshWriter::write_svg(), MBMesquite::MeshWriter::write_vtk(), and MBMesquite::MeshImpl::write_vtk().

#define MSQ_ERRZERO (   err)    if( MSQ_CHKERR( err ) ) return 0

Return zero/NULL on error.

Definition at line 62 of file MsqError.hpp.

Referenced by MBMesquite::MeshImplData::add_element(), MBMesquite::ArrayMesh::add_read_only_tag_data(), MBMesquite::MeshImplData::add_vertex(), MBMesquite::ArrayMesh::add_writable_tag_data(), MBMesquite::PMeanPMetric::average(), MBMesquite::AveragingQM::average_corner_gradients(), MBMesquite::RefSizeTargetCalculator::average_edge_length(), MBMesquite::PMeanPMetric::average_with_gradient(), MBMesquite::PMeanPMetric::average_with_Hessian(), MBMesquite::PMeanPMetric::average_with_Hessian_diagonal(), MBMesquite::PMeanPMetric::average_with_indices(), MBMesquite::NonSmoothDescent::check_equilibrium(), check_global_patch_slaved(), check_no_slaved_corners(), check_results(), check_slaved_coords(), MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_b(), MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_b_no_all(), MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_nb(), MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_nb_no_all(), MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_tnb(), MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_tnb_no_all(), compare_node_coords(), MBMesquite::NonSmoothDescent::compute_function(), MBMesquite::NonSmoothDescent::compute_gradient(), MBMesquite::ObjectiveFunction::compute_patch_numerical_gradient(), MBMesquite::MsqMeshEntity::compute_signed_area(), MBMesquite::ObjectiveFunction::compute_subpatch_numerical_gradient(), MBMesquite::MsqMeshEntity::compute_unsigned_area(), MBMesquite::condition_number_2d(), ParShapeImprover::count_invalid_elements(), create_instruction_queue(), MBMesquite::TerminationCriterion::cull_vertices(), MBMesquite::do_finite_difference(), MBMesquite::do_numerical_gradient(), MBMesquite::do_numerical_hessian(), MBMesquite::TPower2::eval(), MBMesquite::TSum::eval(), MBMesquite::EdgeLengthMetric::evaluate(), MBMesquite::TOffset::evaluate(), MBMesquite::TScale::evaluate(), MBMesquite::ElementAvgQM::evaluate(), MBMesquite::VertexMaxQM::evaluate(), MBMesquite::TMixed::evaluate(), MBMesquite::AspectRatioGammaQualityMetric::evaluate(), MBMesquite::VertexConditionNumberQualityMetric::evaluate(), MBMesquite::LocalSizeQualityMetric::evaluate(), MBMesquite::AddQualityMetric::evaluate(), MBMesquite::ConditionNumberQualityMetric::evaluate(), MBMesquite::AffineMapMetric::evaluate(), MBMesquite::IdealWeightMeanRatio::evaluate(), MBMesquite::TMPQualityMetric::evaluate(), MBMesquite::UntangleBetaQualityMetric::evaluate(), MBMesquite::IdealWeightInverseMeanRatio::evaluate(), MBMesquite::CompareQM::evaluate(), MBMesquite::MultiplyQualityMetric::evaluate(), MBMesquite::NonGradient::evaluate(), CompareMetric::evaluate(), MBMesquite::EdgeLengthQualityMetric::evaluate_common(), MBMesquite::EdgeLengthRangeQualityMetric::evaluate_common(), MBMesquite::TQualityMetric::evaluate_internal(), MBMesquite::AWQualityMetric::evaluate_internal(), MBMesquite::TMPQualityMetric::evaluate_surface_common(), MBMesquite::TOffset::evaluate_with_grad(), MBMesquite::TScale::evaluate_with_grad(), MBMesquite::TMixed::evaluate_with_grad(), MBMesquite::EdgeLengthMetric::evaluate_with_gradient(), MBMesquite::AddQualityMetric::evaluate_with_gradient(), MBMesquite::TQualityMetric::evaluate_with_gradient(), MBMesquite::AWQualityMetric::evaluate_with_gradient(), MBMesquite::IdealWeightMeanRatio::evaluate_with_gradient(), MBMesquite::IdealWeightInverseMeanRatio::evaluate_with_gradient(), MBMesquite::CompareQM::evaluate_with_gradient(), MBMesquite::MultiplyQualityMetric::evaluate_with_gradient(), MBMesquite::QualityMetric::evaluate_with_gradient(), CompareMetric::evaluate_with_gradient(), MBMesquite::ObjectiveFunction::evaluate_with_gradient(), MBMesquite::TOffset::evaluate_with_hess(), MBMesquite::TScale::evaluate_with_hess(), MBMesquite::TMixed::evaluate_with_hess(), MBMesquite::AddQualityMetric::evaluate_with_Hessian(), MBMesquite::AWQualityMetric::evaluate_with_Hessian(), MBMesquite::TQualityMetric::evaluate_with_Hessian(), MBMesquite::IdealWeightMeanRatio::evaluate_with_Hessian(), MBMesquite::IdealWeightInverseMeanRatio::evaluate_with_Hessian(), MBMesquite::MultiplyQualityMetric::evaluate_with_Hessian(), MBMesquite::CompareQM::evaluate_with_Hessian(), CompareMetric::evaluate_with_Hessian(), MBMesquite::QualityMetric::evaluate_with_Hessian(), MBMesquite::AWQualityMetric::evaluate_with_Hessian_diagonal(), MBMesquite::TQualityMetric::evaluate_with_Hessian_diagonal(), MBMesquite::IdealWeightMeanRatio::evaluate_with_Hessian_diagonal(), MBMesquite::IdealWeightInverseMeanRatio::evaluate_with_Hessian_diagonal(), MBMesquite::CompareQM::evaluate_with_Hessian_diagonal(), CompareMetric::evaluate_with_Hessian_diagonal(), MBMesquite::ObjectiveFunction::evaluate_with_Hessian_diagonal(), MBMesquite::VertexMaxQM::evaluate_with_indices(), MBMesquite::VertexConditionNumberQualityMetric::evaluate_with_indices(), MBMesquite::LocalSizeQualityMetric::evaluate_with_indices(), MBMesquite::AddQualityMetric::evaluate_with_indices(), MBMesquite::TMPQualityMetric::evaluate_with_indices(), MBMesquite::CompareQM::evaluate_with_indices(), MBMesquite::MultiplyQualityMetric::evaluate_with_indices(), CompareMetric::evaluate_with_indices(), MBMesquite::RefSizeTargetCalculator::get_2D_target(), MBMesquite::TargetReader::get_2D_target(), MBMesquite::CachingTargetCalculator::get_2D_target(), MBMesquite::RefSizeTargetCalculator::get_3D_target(), MBMesquite::TargetReader::get_3D_target(), MBMesquite::CachingTargetCalculator::get_3D_target(), get_cut_cube_example(), MBMesquite::get_delta_C(), MBMesquite::ObjectiveFunction::get_eps(), get_hex_3d_part_example(), MBMesquite::VertexMover::get_jacobi_coord_tag(), MBMesquite::PatchIterator::get_next_patch(), get_sphere_cube_example(), get_sphere_cylinder_example(), MBMesquite::ConjugateGradient::get_step(), MBMesquite::RefSizeTargetCalculator::get_surface_target(), MBMesquite::TargetReader::get_surface_target(), MBMesquite::CachingTargetCalculator::get_surface_target(), MBMesquite::get_tag(), MBMesquite::DeformingCurveSmoother::get_tag(), MBMesquite::QualityAssessor::get_tag(), MBMesquite::TargetWriter::get_tag_handle(), MBMesquite::MetricWeight::get_weight(), MBMesquite::InverseMetricWeight::get_weight(), MBMesquite::WeightReader::get_weight(), MBMesquite::TPower2::grad(), MBMesquite::TSum::grad(), MBMesquite::TSum::hess(), MBMesquite::TPower2::hess(), MBMesquite::ObjectiveFunctionTemplate::initialize_block_coordinate_descent(), MBMesquite::CompositeOFMultiply::initialize_block_coordinate_descent(), MBMesquite::PatchPowerMeanP::initialize_block_coordinate_descent(), MBMesquite::CompositeOFAdd::initialize_block_coordinate_descent(), MBMesquite::MsqMeshEntity::inverted_jacobian_2d(), MBMesquite::MsqMeshEntity::inverted_jacobian_3d(), MBMesquite::ParallelHelperImpl::is_our_element(), MBMesquite::is_side_boundary(), MBMesquite::TargetWriter::loop_over_mesh(), MBMesquite::VertexMover::loop_over_mesh(), MBMesquite::SlaveBoundaryVertices::loop_over_mesh(), MBMesquite::TagVertexMesh::loop_over_mesh(), MBMesquite::QualityAssessor::loop_over_mesh_internal(), MBMesquite::MeshUtil::meshes_are_different(), MBMesquite::next_vertex(), MBMesquite::SmartLaplacianSmoother::num_inverted(), MBMesquite::ArrayMesh::tag_create(), MBMesquite::MeshImpl::tag_create(), MBMesquite::MeshImpl::tag_get(), MBMesquite::MeshImpl::vtk_read_attrib_data(), MBMesquite::MeshImpl::vtk_read_color_attrib(), MBMesquite::MeshImpl::vtk_read_field_data(), MBMesquite::MeshImpl::vtk_read_scalar_attrib(), MBMesquite::MeshImpl::vtk_read_tensor_attrib(), MBMesquite::MeshImpl::vtk_read_texture_attrib(), and MBMesquite::MeshImpl::vtk_read_vector_attrib().

#define MSQ_SETERR (   err)    MBMesquite::MsqError::setter( err, MSQ_FUNCTION, __FILE__, __LINE__ ).set

Macro to set error - use err.clear() to clear.

Set the error object to the specified error code and optional error message, and push the current file/line onto the stack trace. Examples:

Definition at line 79 of file MsqError.hpp.

Referenced by MBMesquite::TerminationCriterion::accumulate_inner(), MBMesquite::MsqHessian::add(), MBMesquite::InstructionQueue::add_preconditioner(), MBMesquite::AddQualityMetric::AddQualityMetric(), MBMesquite::MeshImplData::allocate_elements(), MBMesquite::ArrayMesh::allocate_tag(), MBMesquite::MeshImplData::allocate_vertices(), MBMesquite::average_corner_diagonals(), MBMesquite::AveragingQM::average_corner_hessians(), MBMesquite::RefSizeTargetCalculator::average_edge_length(), MBMesquite::AveragingQM::average_metric_and_weights(), MBMesquite::AveragingQM::average_metrics(), MBMesquite::MsqMeshEntity::check_element_orientation_corners(), MBMesquite::MsqIMesh::check_valid_flag_tag(), MBMesquite::DomainClassifier::classify_by_tag(), MBMesquite::DomainClassifier::classify_skin_geometrically(), MBMesquite::MeshImplData::clear_element(), MBMesquite::InstructionQueue::clear_master(), MBMesquite::MsqIRel::closest_point(), MBMesquite::PointDomain::closest_point(), MBMesquite::LineDomain::closest_point(), MBMesquite::MsqIGeom::closest_point(), MBMesquite::CircleDomain::closest_point(), MBMesquite::LinearTriangle::coefficients(), MBMesquite::LinearTetrahedron::coefficients(), MBMesquite::LinearPrism::coefficients(), MBMesquite::LinearQuadrilateral::coefficients(), MBMesquite::LinearHexahedron::coefficients(), MBMesquite::TriLagrangeShape::coefficients(), MBMesquite::QuadLagrangeShape::coefficients(), MBMesquite::TetLagrangeShape::coefficients(), MBMesquite::LinearPyramid::coefficients(), MBMesquite::HexLagrangeShape::coefficients(), compare_nodes(), MBMesquite::MsqMeshEntity::compute_corner_normals(), MBMesquite::ObjectiveFunction::compute_patch_numerical_gradient(), MBMesquite::MsqMeshEntity::compute_signed_area(), MBMesquite::ObjectiveFunction::compute_subpatch_numerical_gradient(), MBMesquite::MsqMeshEntity::compute_unsigned_area(), MBMesquite::ConjugateGradient::ConjugateGradient(), MBMesquite::MappingFunction::convert_connectivity_indices_impl(), MBMesquite::NonSmoothDescent::convex_hull_test(), MBMesquite::MeshImplData::copy_higher_order(), MBMesquite::MeshImplTags::create(), MBMesquite::BoundedCylinderDomain::create_curve(), MBMesquite::TerminationCriterion::cull_vertices(), MBMesquite::MeshImplData::delete_vertex(), MBMesquite::LinearTriangle::derivatives(), MBMesquite::LinearTetrahedron::derivatives(), MBMesquite::LinearPrism::derivatives(), MBMesquite::LinearHexahedron::derivatives(), MBMesquite::LinearQuadrilateral::derivatives(), MBMesquite::TriLagrangeShape::derivatives(), MBMesquite::QuadLagrangeShape::derivatives(), MBMesquite::TetLagrangeShape::derivatives(), MBMesquite::LinearPyramid::derivatives(), MBMesquite::HexLagrangeShape::derivatives(), MBMesquite::MeshImplTags::destroy(), MBMesquite::dimension_sort_domains(), MBMesquite::do_finite_difference(), MBMesquite::do_numerical_hessian(), MBMesquite::MsqIRel::domain_DoF(), MBMesquite::MsqIGeom::domain_DoF(), MBMesquite::MeshUtil::edge_length_distribution(), elem_areas(), MBMesquite::MeshImplData::element_connectivity(), MBMesquite::MeshImplData::element_topology(), MBMesquite::MsqIMesh::elements_get_topologies(), MBMesquite::TShapeOrientB1::evaluate(), MBMesquite::TShapeSize2DB2::evaluate(), MBMesquite::TShapeSize3DB2::evaluate(), MBMesquite::TShapeSizeOrientB1::evaluate(), MBMesquite::TSizeB1::evaluate(), MBMesquite::TInverseMeanRatio::evaluate(), MBMesquite::TShapeSizeB3::evaluate(), MBMesquite::InvTransBarrier::evaluate(), MBMesquite::AWShape2DB1::evaluate(), MBMesquite::TShapeOrientB2::evaluate(), MBMesquite::TShapeSizeOrientB2::evaluate(), MBMesquite::AWShapeSizeB1::evaluate(), MBMesquite::AWSizeB1::evaluate(), MBMesquite::TShape3DB2::evaluate(), MBMesquite::TShapeB1::evaluate(), MBMesquite::TShapeSize3DB4::evaluate(), MBMesquite::LInfTemplate::evaluate(), MBMesquite::MaxTemplate::evaluate(), MBMesquite::AspectRatioGammaQualityMetric::evaluate(), MBMesquite::VertexConditionNumberQualityMetric::evaluate(), MBMesquite::LocalSizeQualityMetric::evaluate(), MBMesquite::ConditionNumberQualityMetric::evaluate(), MBMesquite::TMetricNonBarrier2D::evaluate(), FauxObjectiveFunction::evaluate(), MBMesquite::AffineMapMetric::evaluate(), MBMesquite::TMetricBarrier2D::evaluate(), MBMesquite::AWMetricNonBarrier2D::evaluate(), MBMesquite::IdealWeightMeanRatio::evaluate(), MBMesquite::TMetricNonBarrier3D::evaluate(), MBMesquite::AWMetricBarrier2D::evaluate(), MBMesquite::UntangleBetaQualityMetric::evaluate(), MBMesquite::IdealWeightInverseMeanRatio::evaluate(), MBMesquite::TMetricBarrier3D::evaluate(), MBMesquite::AWMetricNonBarrier3D::evaluate(), NumericalTestOF::evaluate(), MBMesquite::AWMetricBarrier3D::evaluate(), MBMesquite::NonGradient::evaluate(), CompareMetric::evaluate(), OFTestQM::evaluate(), MBMesquite::OFEvaluator::evaluate(), MBMesquite::TMetric2D::evaluate(), MBMesquite::TMetric3D::evaluate(), MBMesquite::AWMetric2D::evaluate(), MBMesquite::AWMetric3D::evaluate(), DistTestMetric::evaluate(), OFTestBadQM::evaluate(), MBMesquite::TQualityMetric::evaluate_internal(), MBMesquite::AWQualityMetric::evaluate_internal(), MBMesquite::TMPQualityMetric::evaluate_surface_common(), MBMesquite::TShapeOrientB1::evaluate_with_grad(), MBMesquite::TShapeSize2DB2::evaluate_with_grad(), MBMesquite::TShapeSizeB1::evaluate_with_grad(), MBMesquite::TShapeSizeOrientB1::evaluate_with_grad(), MBMesquite::TSizeB1::evaluate_with_grad(), MBMesquite::TShapeSize3DB2::evaluate_with_grad(), MBMesquite::TShapeSizeB3::evaluate_with_grad(), MBMesquite::TInverseMeanRatio::evaluate_with_grad(), MBMesquite::TShapeSizeOrientB2::evaluate_with_grad(), MBMesquite::TShapeOrientB2::evaluate_with_grad(), MBMesquite::AWSizeB1::evaluate_with_grad(), MBMesquite::TShape3DB2::evaluate_with_grad(), MBMesquite::TShapeB1::evaluate_with_grad(), MBMesquite::TShapeSize3DB4::evaluate_with_grad(), MBMesquite::TQualityMetric::evaluate_with_gradient(), MBMesquite::AWQualityMetric::evaluate_with_gradient(), MBMesquite::IdealWeightMeanRatio::evaluate_with_gradient(), MBMesquite::IdealWeightInverseMeanRatio::evaluate_with_gradient(), MBMesquite::QualityMetric::evaluate_with_gradient(), CompareMetric::evaluate_with_gradient(), MetricLogger::evaluate_with_gradient(), OFTestBadQM::evaluate_with_gradient(), MBMesquite::TShapeSizeB1::evaluate_with_hess(), MBMesquite::TSizeB1::evaluate_with_hess(), MBMesquite::TShapeSizeOrientB1::evaluate_with_hess(), MBMesquite::TShapeOrientB1::evaluate_with_hess(), MBMesquite::TShapeSize3DB2::evaluate_with_hess(), MBMesquite::TShapeSize2DB2::evaluate_with_hess(), MBMesquite::TShapeSizeB3::evaluate_with_hess(), MBMesquite::TInverseMeanRatio::evaluate_with_hess(), MBMesquite::TShapeOrientB2::evaluate_with_hess(), MBMesquite::TShapeSizeOrientB2::evaluate_with_hess(), MBMesquite::TShape3DB2::evaluate_with_hess(), MBMesquite::TShapeB1::evaluate_with_hess(), MBMesquite::TShapeSize3DB4::evaluate_with_hess(), MBMesquite::CompositeOFMultiply::evaluate_with_Hessian(), MBMesquite::AWQualityMetric::evaluate_with_Hessian(), MBMesquite::TQualityMetric::evaluate_with_Hessian(), MBMesquite::IdealWeightMeanRatio::evaluate_with_Hessian(), MBMesquite::LPtoPTemplate::evaluate_with_Hessian(), MBMesquite::IdealWeightInverseMeanRatio::evaluate_with_Hessian(), CompareMetric::evaluate_with_Hessian(), MBMesquite::QualityMetric::evaluate_with_Hessian(), MBMesquite::ObjectiveFunction::evaluate_with_Hessian(), MetricLogger::evaluate_with_Hessian(), OFTestBadQM::evaluate_with_Hessian(), MBMesquite::AWQualityMetric::evaluate_with_Hessian_diagonal(), MBMesquite::TQualityMetric::evaluate_with_Hessian_diagonal(), MBMesquite::IdealWeightMeanRatio::evaluate_with_Hessian_diagonal(), MBMesquite::LPtoPTemplate::evaluate_with_Hessian_diagonal(), MBMesquite::IdealWeightInverseMeanRatio::evaluate_with_Hessian_diagonal(), CompareMetric::evaluate_with_Hessian_diagonal(), MBMesquite::AffineMapMetric::evaluate_with_indices(), CompareMetric::evaluate_with_indices(), MetricLogger::evaluate_with_indices(), DistTestMetric::evaluate_with_indices(), OFTestBadQM::evaluate_with_indices(), MBMesquite::PatchData::fill(), MBMesquite::PatchData::fill_global_patch(), MBMesquite::MeshWriter::find_gnuplot_agregate_range(), MBMesquite::VtkTypeInfo::find_type(), MBMesquite::SphericalDomain::fit_vertices(), MBMesquite::PlanarDomain::fit_vertices(), MBMesquite::MeshImplData::fix_vertex(), MBMesquite::NonSmoothDescent::form_PD_grammian(), MBMesquite::LVQDTargetCalculator::get_2D_target(), MBMesquite::TargetReader::get_2D_target(), MBMesquite::CachingTargetCalculator::get_2D_target(), LVQDTargetTest::TargetError::get_2D_target(), MBMesquite::TargetReader::get_3D_target(), LVQDTargetTest::TargetError::get_3D_target(), MBMesquite::MeshImplData::get_adjacent_elements(), MBMesquite::MsqIMesh::get_adjacent_entities(), MBMesquite::MsqMOAB::get_adjacent_entities(), FakeMesh::get_all_elements(), MBMesquite::MsqIMesh::get_all_elements(), FakeMesh::get_all_vertices(), MBMesquite::FileTokenizer::get_boolean_internal(), MBMesquite::FileTokenizer::get_byte_internal(), MBMesquite::MsqMeshEntity::get_connected_vertices(), MBMesquite::get_delta_C(), MBMesquite::PatchData::get_domain_normal_at_corner(), MBMesquite::PatchData::get_domain_normal_at_element(), MBMesquite::PatchData::get_domain_normal_at_mid_edge(), MBMesquite::PatchData::get_domain_normal_at_sample(), MBMesquite::PatchData::get_domain_normal_at_vertex(), MBMesquite::PatchData::get_domain_normals_at_corners(), MBMesquite::FileTokenizer::get_double_internal(), MBMesquite::PatchData::get_element_array(), MBMesquite::MeshImplTags::get_element_data(), MBMesquite::AddQualityMetric::get_evaluations(), MBMesquite::CompareQM::get_evaluations(), MBMesquite::MultiplyQualityMetric::get_evaluations(), CompareMetric::get_evaluations(), MBMesquite::get_field_names(), MBMesquite::MsqMOAB::get_flag_data(), MBMesquite::MsqIMesh::get_flag_data(), MBMesquite::FileTokenizer::get_float_internal(), MBMesquite::QualityAssessor::Assessor::get_histogram(), MBMesquite::FileTokenizer::get_integer_internal(), MBMesquite::QualityAssessor::get_inverted_element_count(), MBMesquite::MsqMeshEntity::get_local_matrix_map_about_vertex(), MBMesquite::FileTokenizer::get_long_int_internal(), MBMesquite::PatchData::get_minmax_element_unsigned_area(), MBMesquite::FileTokenizer::get_newline(), MBMesquite::PatchIterator::get_next_patch(), DummyRefMesh::get_reference_vertex_coordinates(), MBMesquite::PatchData::get_sample_location(), MBMesquite::FileTokenizer::get_short_int_internal(), MBMesquite::ConjugateGradient::get_step(), MBMesquite::FileTokenizer::get_string(), MBMesquite::PatchData::get_subpatch(), MBMesquite::LVQDTargetCalculator::get_surface_target(), MBMesquite::TargetReader::get_surface_target(), MBMesquite::CachingTargetCalculator::get_surface_target(), LVQDTargetTest::TargetError::get_surface_target(), MBMesquite::get_tag(), MBMesquite::DeformingCurveSmoother::get_tag(), MBMesquite::QualityAssessor::get_tag(), MBMesquite::TargetWriter::get_tag_handle(), MBMesquite::PatchData::get_vertex_array(), MBMesquite::MeshImplData::get_vertex_byte(), MBMesquite::MeshImplData::get_vertex_coords(), MBMesquite::MeshImplTags::get_vertex_data(), MBMesquite::InverseMetricWeight::get_weight(), MBMesquite::MetricWeight::get_weight(), MBMesquite::NonGradient::getPatchDimension(), MBMesquite::MappingFunction2D::ideal(), MBMesquite::MappingFunction3D::ideal(), MBMesquite::TargetCalculator::ideal_shape_2D(), MBMesquite::TargetCalculator::ideal_shape_3D(), MBMesquite::TargetCalculator::ideal_skew_2D(), MBMesquite::TargetCalculator::ideal_skew_3D(), MBMesquite::CompareQM::index_mismatch(), MBMesquite::MsqMOAB::init_active_mesh(), MBMesquite::MsqIMesh::init_active_mesh(), MBMesquite::NonSmoothDescent::init_max_step_length(), MBMesquite::TagVertexMesh::initialize(), MBMesquite::OFEvaluator::initialize(), MBMesquite::MsqHessian::initialize(), MBMesquite::ObjectiveFunctionTemplate::initialize_block_coordinate_descent(), DummyOF::initialize_block_coordinate_descent(), MBMesquite::NonGradient::initialize_mesh_iteration(), MBMesquite::Instruction::initialize_vertex_byte(), MBMesquite::InstructionQueue::insert_preconditioner(), MBMesquite::InstructionQueue::insert_quality_assessor(), MBMesquite::Vector3D::interior_angle(), MBMesquite::TargetCalculator::jacobian_2D(), MBMesquite::TargetCalculator::jacobian_3D(), MBMesquite::MeshUtil::lambda_distribution(), MeshImplTest::load_vtk(), MBMesquite::TargetWriter::loop_over_mesh(), MBMesquite::VertexMover::loop_over_mesh(), MBMesquite::SlaveBoundaryVertices::loop_over_mesh(), MBMesquite::TagVertexMesh::loop_over_mesh(), MBMesquite::LPtoPTemplate::LPtoPTemplate(), main(), make_domain(), MBMesquite::FileTokenizer::match_token(), MBMesquite::PatchData::move_free_vertices_constrained(), MBMesquite::PatchData::move_vertex(), MBMesquite::MsqIMesh::MsqIMesh(), MBMesquite::MultiplyQualityMetric::MultiplyQualityMetric(), MBMesquite::NonGradient::NonGradient(), UnOptimizer::optimize_vertex_positions(), MBMesquite::TrustRegion::optimize_vertex_positions(), MBMesquite::QuasiNewton::optimize_vertex_positions(), MBMesquite::ConjugateGradient::optimize_vertex_positions(), MBMesquite::SteepestDescent::optimize_vertex_positions(), MBMesquite::FeasibleNewton::optimize_vertex_positions(), MBMesquite::NonSmoothDescent::optimize_vertex_positions(), MBMesquite::NonGradient::optimize_vertex_positions(), MBMesquite::PatchData::project_gradient(), MBMesquite::MeshImplTags::properties(), MBMesquite::MeshImpl::read_exodus(), MBMesquite::MeshImpl::read_vtk(), MBMesquite::ArrayMesh::release_entity_handles(), MBMesquite::InstructionQueue::remove_preconditioner(), MBMesquite::InstructionQueue::remove_quality_assessor(), MBMesquite::InstructionQueue::remove_tag_vertex_mesh(), MBMesquite::InstructionQueue::remove_vertex_slaver(), MBMesquite::TerminationCriterion::reset_inner(), MBMesquite::MeshImplData::reset_vertex(), MBMesquite::InstructionQueue::run_common(), run_smoother(), MBMesquite::LaplaceWrapper::run_wrapper(), MBMesquite::DeformingDomainWrapper::run_wrapper(), MBMesquite::NonSmoothDescent::search_direction(), MBMesquite::MeshImplData::set_element(), MBMesquite::MeshImplTags::set_element_data(), MBMesquite::PatchData::set_free_vertices_constrained(), MBMesquite::PatchData::set_mesh_entities(), MBMesquite::IdealWeightInverseMeanRatio::set_metric_power(), MBMesquite::PatchData::set_to_vertices_memento(), MBMesquite::MeshImplData::set_vertex_byte(), MBMesquite::PatchData::set_vertex_coordinates(), MBMesquite::MeshImplData::set_vertex_coords(), MBMesquite::MeshImplTags::set_vertex_data(), MBMesquite::XYRectangle::setup(), MBMesquite::NonSmoothDescent::singular_test(), MBMesquite::MeshImplData::slave_vertex(), MBMesquite::DeformingCurveSmoother::smooth_curve(), MBMesquite::ParallelHelperImpl::smoothing_init(), MBMesquite::DeformingCurveSmoother::store_initial_mesh(), MBMesquite::TagVertexMesh::tag_create(), MBMesquite::MsqMOAB::tag_create(), MBMesquite::MsqIMesh::tag_create(), MBMesquite::MsqIMesh::tag_delete(), MBMesquite::ArrayMesh::tag_delete(), MBMesquite::TagVertexMesh::tag_get(), MBMesquite::MsqIMesh::tag_get(), MBMesquite::ArrayMesh::tag_get(), MBMesquite::MeshImpl::tag_get(), MBMesquite::MsqIMesh::tag_get_data(), MBMesquite::ArrayMesh::tag_get_element_data(), MBMesquite::ArrayMesh::tag_get_vertex_data(), MBMesquite::MeshImplTags::tag_has_element_data(), MBMesquite::MeshImplTags::tag_has_vertex_data(), MBMesquite::MsqMOAB::tag_properties(), MBMesquite::MsqIMesh::tag_properties(), MBMesquite::MsqIMesh::tag_set_data(), MBMesquite::ArrayMesh::tag_set_element_data(), MBMesquite::ArrayMesh::tag_set_vertex_data(), MBMesquite::MeshImpl::tag_to_bool(), MBMesquite::DomainClassifier::test_valid_classification(), MBMesquite::OFEvaluator::update(), MBMesquite::PatchData::update_cached_normals(), MBMesquite::PatchData::update_mesh(), MBMesquite::PatchData::update_slave_node_coordinates(), MBMesquite::MeshImplData::vertex_adjacencies(), MBMesquite::MsqIMesh::vertex_get_byte(), MBMesquite::MeshImplData::vertex_is_fixed(), MBMesquite::MeshImplData::vertex_is_slaved(), MBMesquite::MsqIRel::vertex_normal_at(), MBMesquite::PointDomain::vertex_normal_at(), MBMesquite::LineDomain::vertex_normal_at(), MBMesquite::MsqIGeom::vertex_normal_at(), MBMesquite::CircleDomain::vertex_normal_at(), MBMesquite::DomainClassifier::vertex_normal_at(), MBMesquite::MsqIMesh::vertex_set_byte(), MBMesquite::MsqIMesh::vertex_set_coordinates(), MBMesquite::ArrayMesh::vertex_set_coordinates(), FakeMesh::vertices_get_attached_elements(), MBMesquite::MsqIMesh::vertices_get_attached_elements(), FakeMesh::vertices_get_byte(), MBMesquite::MsqIMesh::vertices_get_byte(), MBMesquite::MsqIMesh::vertices_get_coordinates(), MBMesquite::ArrayMesh::vertices_get_coordinates(), FakeMesh::vertices_get_fixed_flag(), MBMesquite::ParallelMeshImpl::vertices_get_global_id(), MBMesquite::ParallelMeshImpl::vertices_get_processor_id(), MBMesquite::ArrayMesh::vertices_get_slaved_flag(), FakeMesh::vertices_set_byte(), MBMesquite::MsqIMesh::vertices_set_byte(), MBMesquite::MeshImpl::vtk_create_structured_elems(), MBMesquite::MeshImpl::vtk_read_color_attrib(), MBMesquite::MeshImpl::vtk_read_dataset(), MBMesquite::MeshImpl::vtk_read_field_data(), MBMesquite::MeshImpl::vtk_read_polydata(), MBMesquite::MeshImpl::vtk_read_rectilinear_grid(), MBMesquite::MeshImpl::vtk_read_scalar_attrib(), MBMesquite::MeshImpl::vtk_read_structured_grid(), MBMesquite::MeshImpl::vtk_read_structured_points(), MBMesquite::MeshImpl::vtk_read_texture_attrib(), MBMesquite::MeshImpl::vtk_read_typed_data(), MBMesquite::MeshImpl::vtk_read_unstructured_grid(), MBMesquite::MeshImpl::vtk_store_cell_data(), MBMesquite::MeshImpl::vtk_store_point_data(), MBMesquite::MeshImpl::vtk_write_attrib_data(), MBMesquite::MeshWriter::write_eps(), MBMesquite::MeshWriter::write_eps_triangle(), MBMesquite::MeshImpl::write_exodus(), MBMesquite::MeshWriter::write_gnuplot(), MBMesquite::MeshWriter::write_gnuplot_animator(), MBMesquite::MeshWriter::write_gnuplot_overlay(), MBMesquite::TerminationCriterion::write_iterations(), MBMesquite::MeshWriter::write_stl(), MBMesquite::MeshWriter::write_svg(), MBMesquite::MeshImpl::write_vtk(), and MBMesquite::MeshWriter::write_vtk().


Function Documentation

MESQUITE_EXPORT std::ostream & MBMesquite::operator<< ( std::ostream &  str,
const MsqError::Trace &  tr 
)

Print MsqError::Trace.

Definition at line 153 of file MsqError.cpp.

References MBMesquite::MsqError::Trace::file, MBMesquite::MsqError::Trace::function, and MBMesquite::MsqError::Trace::line.

{
    return ( str << tr.function << " at " << tr.file << ":" << tr.line );
}
MESQUITE_EXPORT std::ostream & MBMesquite::operator<< ( std::ostream &  str,
const MsqError &  err 
)

Print message and stack trace.

Definition at line 158 of file MsqError.cpp.

References MBMesquite::MsqError::error_code(), MBMesquite::MsqError::error_message(), and MBMesquite::MsqError::stack().

{
    str << "MESQUITE ERROR " << (int)err.error_code() << " : " << err.error_message() << std::endl;

    MsqError::StackTrace::const_iterator iter      = err.stack().begin();
    const MsqError::StackTrace::const_iterator end = err.stack().end();
    if( iter != end )
    {
        str << "  at " << *iter << std::endl;
        ++iter;
    }
    for( ; iter != end; ++iter )
        str << "  in " << *iter << std::endl;

    return str;
}
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines