X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/13c82410baba7be2780087e4a9d96b008393d4d0..8fe7143ac15490fc64aaf5f88c08bcf489a1e9f1:/teshsuite/smpi/fort_args/fort_args.f90?ds=sidebyside diff --git a/teshsuite/smpi/fort_args/fort_args.f90 b/teshsuite/smpi/fort_args/fort_args.f90 index d1f4aea5b0..0e634ed320 100644 --- a/teshsuite/smpi/fort_args/fort_args.f90 +++ b/teshsuite/smpi/fort_args/fort_args.f90 @@ -1,9 +1,12 @@ ! Check that getarg does somethig sensible. program getarg_1 + use mpi CHARACTER*10 ARGS, ARGS2 INTEGER*4 I INTEGER*2 I2 + INTEGER ierr I = 0 + call MPI_Init(ierr) CALL GETARG(I,ARGS) ! This should return the invoking command. The actual value depends ! on the OS, but a blank string is wrong no matter what. @@ -22,4 +25,5 @@ program getarg_1 I = 1000 CALL GETARG(I,ARGS) if (args.ne.'') STOP 6 + call MPI_Finalize(ierr) end