Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update init
[simgrid.git] / teshsuite / smpi / mpich3-test / init / exitst2.c
index 7a9b19c..524fc52 100644 (file)
@@ -5,16 +5,16 @@
  */
 #include "mpi.h"
 
-/* 
- * This is a special test to check that mpiexec handles zero/non-zero 
- * return status from an application.  In this case, each process 
+/*
+ * This is a special test to check that mpiexec handles zero/non-zero
+ * return status from an application.  In this case, each process
  * returns a different return status
  */
-int main( int argc, char *argv[] )
+int main(int argc, char *argv[])
 {
     int rank;
-    MPI_Init( 0, 0 );
-    MPI_Comm_rank( MPI_COMM_WORLD, &rank );
-    MPI_Finalize( );
+    MPI_Init(&argc, &argv);
+    MPI_Comm_rank(MPI_COMM_WORLD, &rank);
+    MPI_Finalize();
     return rank;
 }