testing/icgen/random_verschillende_resoluties_N-GenIC/gadget3_64/endrun.c
void endrun(int ierr)
{
  if(ierr)
    {
      printf("task %d: endrun called with an error level of %d\n\n\n", ThisTask, ierr);
      fflush(stdout);
      MPI_Abort(MPI_COMM_WORLD, ierr);
      exit(0);
    }

  MPI_Finalize();
  exit(0);
}
/*  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 will also
 *  appear in this case.
 *  For ierr=0, MPI is gracefully cleaned up, but this requires
 *  that all processors call endrun().
 */
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 will also
appear in this case.
For ierr=0, MPI is gracefully cleaned up, but this requires
that all processors call endrun().
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 will also appear in this case . For ierr = 0 MPI is gracefully cleaned up but this requires that all processors call endrun () .
void endrun(int ierr)
{
  if(ierr)
    {
      printf("task %d: endrun called with an error level of %d\n\n\n", ThisTask, ierr);
      fflush(stdout);
      MPI_Abort(MPI_COMM_WORLD, ierr);
      exit(0);
    }
  MPI_Finalize();
  exit(0);
}
void endrun ( int ierr ) { if ( ierr ) { printf ( " \n \n \n " , ThisTask , ierr ) ; fflush ( stdout ) ; MPI_Abort ( MPI_COMM_WORLD , ierr ) ; exit ( 0 ) ; } MPI_Finalize ( ) ; exit ( 0 ) ; }
This function aborts the simulations.
This function aborts the simulations .