Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
generate unique names, but easier for debug
[simgrid.git] / src / smpi / smpif90.in
index bb772b5..dadde6e 100644 (file)
@@ -24,7 +24,8 @@ while [ -n "$1" ]; do
       if [ -z $SRCFILE ] ; then
          SRCFILE="$ARG"
       fi
-      TMPFILE=$ARG\_.f90
+
+      TMPFILE=${ARG}\_$RANDOM.f90
       #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 /gI;s/[[:space:]]*use[[:space:]]*mpi/\include \"mpif\.h\" /gI'  ${ARG} > ${TMPFILE}
       SRCFILE="${TMPFILE}"