Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

endrun.c File Reference

Termination of simulation. More...

#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.


void endrun (int ierr)

Detailed Description

Termination of simulation.

This file contains routines for termination of the simulation.

Definition in file endrun.c.

Function Documentation

void endrun int  ierr  ) 

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().

Generated on Sun May 22 17:33:30 2005 for GADGET-2 by  doxygen