Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
use temp file for fortran instead of fixed name, which conflicted with -j
authorAugustin Degomme <degomme@idpann.imag.fr>
Thu, 13 Dec 2012 09:30:05 +0000 (10:30 +0100)
committerAugustin Degomme <degomme@idpann.imag.fr>
Wed, 16 Jan 2013 10:32:06 +0000 (11:32 +0100)
src/smpi/smpif90.in

index 3724e84..5487477 100644 (file)
@@ -8,7 +8,7 @@ CMAKE_LINKARGS="-L@libdir@"
 FFLAGS="-O2 -ff2c "
 LINKARGS="-lsimgrid -lsmpi -lm -lgfortran"
 main_name=main
-TMPFILE=smpi_temp.f90
+TMPFILE=$(mktemp).f90
 CMDLINE=""
 while [ -n "$1" ]; do
   ARG="$1"
@@ -26,7 +26,7 @@ while [ -n "$1" ]; do
       fi
       #replace "program main_name by subroutine user\_main (and the end clause as well)"
       sed 's/[[:space:]]*program[[:space:]]*\([a-zA-Z0-9\-\_]*\)/subroutine user\_main /g'  ${ARG} > ${TMPFILE}
-      SRCFILE="./${TMPFILE}"
+      SRCFILE="${TMPFILE}"
       CMDLINE="${CMDLINE} ${SRCFILE} "
       ;;
    *)