![]() |
ESPResSo 3.2.0-159-gf5c8922-git
Extensible Simulation Package for Soft Matter Research
|
Implementation of errorhandling.h. More...
#include <string.h>#include <stdlib.h>#include <signal.h>#include "utils.h"#include "errorhandling.h"#include "communication.h"
Go to the source code of this file.
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. | |
| static void | sigint_handler (int sig) |
| 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 = 0 |
Implementation of errorhandling.h.
Definition in file errorhandling.c.
| int check_runtime_errors | ( | ) |
check for runtime errors on all nodes.
This has to be called on all nodes synchronously.
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.
References core().
Referenced by add_forces_from_recv_buffer(), adress_dw_dir(), build_verlet_lists(), build_verlet_lists_and_calc_verlet_ia(), build_verlet_lists_and_calc_verlet_ia_iccp3m(), calc_radial_density_map(), calc_structurefactor(), check_cells_consistency(), check_particle_consistency(), check_particles(), check_tab_forcecap(), correct_vel_shake(), dfft_init(), fft_init(), get_name_of_bonded_ia(), ghost_communicator(), icosaederC(), init_random_seed(), integrate_ensemble_init(), inverse_weight(), layered_exchange_and_sort_particles(), lb_init_GPU(), local_place_particle(), local_remove_particle(), maxwell_velocitiesC(), MMM2D_setup_constants(), mpi_bcast_coulomb_params_slave(), mpi_call(), mpi_gather_stats(), mpi_gather_stats_slave(), mpi_get_particles(), MPI_Irecv(), MPI_Isend(), mpi_loop(), MPI_Recv(), MPI_Send(), MPI_Sendrecv(), mpifake_sendrecv(), mpifake_unpack_hvector(), mpifake_unpack_struct(), p3m_analytic_cotangent_sum(), prepare_send_buffer(), put_recv_buffer(), recv_particles(), reduce_forces_sum(), remove_all_bonds_to(), tclprint_to_result_overlapIA(), tf_set_params(), topology_init(), topology_release(), and velocitiesC().
| 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().
| static void sigint_handler | ( | int | sig | ) | [static] |
Definition at line 64 of file errorhandling.c.
References ERROR_SPRINTF, and runtime_error().
Referenced by register_sigint_handler().
| 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().
| int n_error_msg = 0 |
Definition at line 34 of file errorhandling.c.
Referenced by check_runtime_errors(), mpi_gather_runtime_errors(), mpi_gather_runtime_errors_slave(), and runtime_error().
1.7.5.1