PLUTO
al_finalize.c
Go to the documentation of this file.
1 /* ///////////////////////////////////////////////////////////////////// */
2 /*!
3  \file
4  \brief ArrayLib Finalization routine
5 
6  ArrayLib Finalization routine
7 
8  \author A. Malagoli (University of Chicago)
9  \date Jul 17, 1999
10 */
11 /* ///////////////////////////////////////////////////////////////////// */
12 #include <al_hidden.h>
13 
14 /* ********************************************************************* */
16 /*!
17  * Finalize the AL Tool.
18  * It contains a call to MPI_Finalize()
19  *********************************************************************** */
20 {
21  int myrank, nproc, errcode;
22 
23  MPI_Comm_rank(MPI_COMM_WORLD, &myrank);
24  MPI_Comm_size(MPI_COMM_WORLD, &nproc);
25 
26  /* Synchronize just in case */
27  MPI_Barrier(MPI_COMM_WORLD);
28 
29  errcode = MPI_Finalize();
30 
31 #ifdef DEBUG
32  printf("AL_Finalize: Called MPI_Finalize: %d\n",errcode);
33 #endif
34 
35  return errcode;
36 }
37 
int AL_Finalize()
Definition: al_finalize.c:15
Internal include file for the ArrayLib.