X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6a8d5cf4199454b5f811043c207d195107743e72..4c8cc143e9f531c24ca7f4d6e6b7b0a049404e35:/teshsuite/smpi/fort_args/fort_args.f90 diff --git a/teshsuite/smpi/fort_args/fort_args.f90 b/teshsuite/smpi/fort_args/fort_args.f90 index d1f4aea5b0..5d13591caa 100644 --- a/teshsuite/smpi/fort_args/fort_args.f90 +++ b/teshsuite/smpi/fort_args/fort_args.f90 @@ -1,9 +1,17 @@ -! Check that getarg does somethig sensible. +! Copyright (c) 2018-2021. The SimGrid Team. All rights reserved. + +! This program is free software; you can redistribute it and/or modify it +! under the terms of the license (GNU LGPL) which comes with this package. + +! Check that getarg does something 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 +30,5 @@ program getarg_1 I = 1000 CALL GETARG(I,ARGS) if (args.ne.'') STOP 6 + call MPI_Finalize(ierr) end