#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <mpi.h>
#include <signal.h>
#include <unistd.h>
#include "allvars.h"
#include "proto.h"
Go to the source code of this file.
Functions | |
void | endrun (int ierr) |
This file contains routines for termination of the simulation.
Definition in file endrun.c.
|
This function aborts the simulations. If a single processors wants an immediate termination, the function needs to be called with ierr>0. A bunch of MPI-error messages may also appear in this case. For ierr=0, MPI is gracefully cleaned up, but this requires that all processors call endrun(). Definition at line 25 of file endrun.c. References terminate_processes(), and ThisTask. Referenced by allocate_commbuffers(), allocate_memory(), density(), domain_decompose(), domain_exchangeParticles(), domain_topsplit(), domain_topsplit_local(), find_files(), force_create_empty_nodes(), force_treeallocate(), force_treebuild_single(), get_particles_in_block(), gravity_forcetest(), init(), long_range_force(), main(), my_fread(), my_fwrite(), ngb_treeallocate(), open_outputfiles(), pm_init_periodic_allocate(), read_file(), read_parameter_file(), readjust_timebase(), restart(), savepositions(), and write_file(). |