ESPResSo 3.2.0-167-g2c9ead1-git
Extensible Simulation Package for Soft Matter Research
Defines | Functions | Variables
errorhandling.h File Reference

This file contains the errorhandling code for severe errors, like a broken bond or illegal parameter combinations. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define ERROR_SPRINTF   sprintf

Functions

char * runtime_error (int errlen)
int check_runtime_errors ()
 check for runtime errors on all nodes.
void errexit ()
 exit ungracefully, core dump if switched on.
void register_sigint_handler ()
 register a handler for sigint that translates it into an background error.

Variables

char * error_msg
 buffer for error messages during the integration process.
int n_error_msg

Detailed Description

This file contains the errorhandling code for severe errors, like a broken bond or illegal parameter combinations.

See section "Errorhandling for developers" for details on the error format and how to use this.

Definition in file errorhandling.h.


Define Documentation

#define ERROR_SPRINTF   sprintf

Definition at line 40 of file errorhandling.h.

Referenced by add_area_global_force(), add_bonded_energy(), add_bonded_force(), add_bonded_virials(), add_constraints_energy(), add_constraints_forces(), add_mmm2d_coulomb_pair_force(), add_three_body_bonded_stress(), add_volume_force(), analyze_activate(), analyze_fold_molecules(), bilayer_density_profile(), bilayer_density_profile_sphere(), calc_area_global(), calc_bonded_force(), calc_fluctuations(), calc_local_mol_info(), calc_long_range_forces_iccp3m(), calc_mol_info(), calc_mol_pos(), calc_mol_vel(), calc_three_body_bonded_forces(), calc_trap_force(), calc_volume(), change_particle_bond(), check_particle_force(), compare_buffers(), compute_pos_corr_vec(), compute_vel_corr_vec(), correct_pos_shake(), dd_create_cell_grid(), dd_exchange_and_sort_particles(), dd_on_geometry_change(), dd_position_to_cell(), distribute_tensors(), dp3m_mc_time(), dp3m_sanity_checks(), dp3m_sanity_checks_boxl(), ELC_init(), ELC_sanity_checks(), ELC_set_params(), fene_pair_energy(), fold_coordinate(), get_lipid_orients(), get_local_trapped_mols(), get_mol_com_particle(), get_mol_dist(), getintersection(), handle_collisions(), iccp3m_iteration(), iccp3m_sanity_check(), init_forces_iccp3m(), init_lattice(), layered_exchange_and_sort_particles(), layered_topology_init(), lb_calc_local_fields(), lb_calc_local_j(), lb_calc_local_pi(), lb_calc_local_rho(), lb_init_boundaries(), lb_lbfluid_set_agrid(), lb_local_fields_get_boundary_flag(), lb_sanity_checks(), local_setup_reaction(), local_stress_tensor_calc(), maggs_sanity_checks(), map_to_2dgrid(), mdlc_sanity_checks(), mdlc_set_params(), meta_init(), meta_perform(), mindist3(), MMM1D_sanity_checks(), MMM2D_init(), MMM2D_sanity_checks(), modes2d(), nemd_change_momentum(), nemd_init(), on_integration_start(), orient_order(), p3m_sanity_checks(), p3m_sanity_checks_boxl(), print_bond_len(), propagate_press_box_pos_and_rescale_npt(), put_mol_force_on_parts(), sigint_handler(), tclcommand_analyze_parse_and_print_dipmom_mol(), tclcommand_analyze_parse_and_print_dipole(), tclcommand_analyze_parse_and_print_energy_kinetic_mol(), tclcommand_analyze_parse_and_print_pressure_mol(), tclcommand_analyze_parse_get_folded_positions(), update_mol_pos_particle(), update_mol_vel_particle(), and vs_relate_to().


Function Documentation

int check_runtime_errors ( )

check for runtime errors on all nodes.

This has to be called on all nodes synchronously.

Returns:
the number of characters in the error messages of all nodes together.

Definition at line 49 of file errorhandling.c.

References comm_cart, MPI_Allreduce(), MPI_INT, MPI_SUM, and n_error_msg.

Referenced by integrate_vv(), lb_init(), mpi_bcast_parameter(), mpi_bcast_parameter_slave(), mpi_gather_runtime_errors(), mpi_gather_runtime_errors_slave(), mpi_iccp3m_init(), mpi_iccp3m_init_slave(), mpi_iccp3m_iteration(), mpi_iccp3m_iteration_slave(), mpi_integrate(), mpi_integrate_slave(), and on_integration_start().

void errexit ( )

exit ungracefully, core dump if switched on.

Definition at line 56 of file errorhandling.c.

void register_sigint_handler ( )

register a handler for sigint that translates it into an background error.

Definition at line 85 of file errorhandling.c.

References sigint_handler().

Referenced by on_program_start().

char* runtime_error ( int  errlen)

Definition at line 38 of file errorhandling.c.

References error_msg, n_error_msg, and realloc.

Referenced by add_area_global_force(), add_bonded_energy(), add_bonded_force(), add_bonded_virials(), add_constraints_energy(), add_constraints_forces(), add_mmm2d_coulomb_pair_force(), add_three_body_bonded_stress(), add_volume_force(), analyze_activate(), analyze_fold_molecules(), bilayer_density_profile(), bilayer_density_profile_sphere(), calc_area_global(), calc_bonded_force(), calc_fluctuations(), calc_local_mol_info(), calc_long_range_forces_iccp3m(), calc_mol_info(), calc_mol_pos(), calc_mol_vel(), calc_three_body_bonded_forces(), calc_trap_force(), calc_volume(), change_particle_bond(), check_particle_force(), compare_buffers(), compute_pos_corr_vec(), compute_vel_corr_vec(), correct_pos_shake(), dd_create_cell_grid(), dd_exchange_and_sort_particles(), dd_on_geometry_change(), dd_position_to_cell(), distribute_tensors(), dp3m_mc_time(), dp3m_sanity_checks(), dp3m_sanity_checks_boxl(), ELC_init(), ELC_sanity_checks(), ELC_set_params(), fene_pair_energy(), fold_coordinate(), get_lipid_orients(), get_local_trapped_mols(), get_mol_com_particle(), get_mol_dist(), getintersection(), handle_collisions(), iccp3m_iteration(), iccp3m_sanity_check(), init_forces_iccp3m(), init_lattice(), layered_exchange_and_sort_particles(), layered_topology_init(), lb_calc_local_fields(), lb_calc_local_j(), lb_calc_local_pi(), lb_calc_local_rho(), lb_init_boundaries(), lb_lbfluid_set_agrid(), lb_local_fields_get_boundary_flag(), lb_sanity_checks(), local_setup_reaction(), local_stress_tensor_calc(), maggs_sanity_checks(), map_to_2dgrid(), mdlc_sanity_checks(), mdlc_set_params(), meta_init(), meta_perform(), mindist3(), MMM1D_sanity_checks(), MMM2D_init(), MMM2D_sanity_checks(), modes2d(), nemd_change_momentum(), nemd_init(), on_integration_start(), orient_order(), p3m_sanity_checks(), p3m_sanity_checks_boxl(), print_bond_len(), propagate_press_box_pos_and_rescale_npt(), put_mol_force_on_parts(), sigint_handler(), tclcommand_analyze_parse_and_print_dipmom_mol(), tclcommand_analyze_parse_and_print_dipole(), tclcommand_analyze_parse_and_print_energy_kinetic_mol(), tclcommand_analyze_parse_and_print_pressure_mol(), tclcommand_analyze_parse_get_folded_positions(), update_mol_pos_particle(), update_mol_vel_particle(), and vs_relate_to().


Variable Documentation

char* error_msg

buffer for error messages during the integration process.

NULL if no errors occured.

Definition at line 33 of file errorhandling.c.

Referenced by dd_create_cell_grid(), local_setup_reaction(), mpi_gather_runtime_errors(), mpi_gather_runtime_errors_slave(), runtime_error(), and tclcommand_correlation_parse_corr().