This commit is contained in:
Martin Diehl 2022-09-10 13:07:06 +02:00
parent e24e7f9121
commit a2b075c031
3 changed files with 34 additions and 34 deletions

View File

@ -1,5 +1,5 @@
--- run_damask_hmp.orig 2022-09-10 12:21:10.390110879 +0200 ---
+++ run_damask_hmp 2022-09-10 12:32:42.804232871 +0200 +++
@@ -302,7 +302,23 @@ @@ -302,7 +302,23 @@
. "$DIR/getarch" . "$DIR/getarch"

View File

@ -1,5 +1,5 @@
--- run_damask_lmp.orig 2022-09-10 12:21:10.760114849 +0200 ---
+++ run_damask_lmp 2022-09-10 12:31:51.623680675 +0200 +++
@@ -302,7 +302,23 @@ @@ -302,7 +302,23 @@
. "$DIR/getarch" . "$DIR/getarch"

View File

@ -1,5 +1,5 @@
--- run_damask_mp.orig 2022-09-10 12:21:11.130118821 +0200 ---
+++ run_damask_mp 2022-09-10 12:32:23.577358746 +0200 +++
@@ -302,7 +302,23 @@ @@ -302,7 +302,23 @@
. "$DIR/getarch" . "$DIR/getarch"
@ -124,7 +124,7 @@
User objects/libs : $objs User objects/libs : $objs
Restart file job ID : $rid Restart file job ID : $rid
Substructure file ID : $sid Substructure file ID : $sid
@@ -1689,7 +1674,7 @@ @@ -1687,7 +1672,7 @@
;; ;;
esac esac
fi fi
@ -133,7 +133,7 @@
read value read value
if test "$value" if test "$value"
then then
@@ -1698,50 +1683,19 @@ @@ -1696,50 +1681,19 @@
user= user=
;; ;;
*) *)
@ -190,7 +190,7 @@
;; ;;
esac esac
fi fi
@@ -2276,11 +2230,12 @@ @@ -2274,11 +2228,12 @@
# #
# user subroutine used # user subroutine used
# #
@ -205,7 +205,7 @@
case $program in case $program in
\/* | \.\/*) \/* | \.\/*)
bd= bd=
@@ -2393,7 +2348,7 @@ @@ -2391,7 +2346,7 @@
fi fi
if test "$user" if test "$user"
then then
@ -214,7 +214,7 @@
usersub=1 usersub=1
fi fi
export execpath export execpath
@@ -3276,44 +3231,27 @@ @@ -3274,44 +3229,27 @@
echo echo
if test "$user" if test "$user"
then then
@ -240,7 +240,7 @@
if test $MACHINENAME = "CRAY" if test $MACHINENAME = "CRAY"
then then
- $FORTRAN $usersub || \ - $FORTRAN $usersub || \
+ $DFORTRANMP $user || \ + $DFORTHIGHMP $user || \
{ {
- echo "$0: compile failed for $user.f" - echo "$0: compile failed for $user.f"
+ echo "$0: compile failed for $user" + echo "$0: compile failed for $user"
@ -249,7 +249,7 @@
/bin/rm $program 2>/dev/null /bin/rm $program 2>/dev/null
else else
- $FORTRAN $usersub -o $userobj || \ - $FORTRAN $usersub -o $userobj || \
+ $DFORTRANMP $user -o $userobj || \ + $DFORTHIGHMP $user -o $userobj || \
{ {
- echo "$0: compile failed for $user.f" - echo "$0: compile failed for $user.f"
+ echo "$0: compile failed for $user" + echo "$0: compile failed for $user"
@ -264,7 +264,7 @@
fi fi
@@ -3333,6 +3271,7 @@ @@ -3331,6 +3269,7 @@
$TKLIBS \ $TKLIBS \
$MRCLIBS \ $MRCLIBS \
$METISLIBS \ $METISLIBS \
@ -272,7 +272,7 @@
$SFLIB \ $SFLIB \
$OPENSSL_LIB \ $OPENSSL_LIB \
$SYSLIBS \ $SYSLIBS \
@@ -3346,6 +3285,9 @@ @@ -3344,6 +3283,9 @@
prgsav=yes prgsav=yes
fi fi
/bin/rm $userobj 2>/dev/null /bin/rm $userobj 2>/dev/null
@ -282,7 +282,7 @@
# #
# run marc # run marc
@@ -3392,7 +3334,7 @@ @@ -3390,7 +3332,7 @@
fi fi
else else
if test $cpdll = yes; then if test $cpdll = yes; then
@ -291,7 +291,7 @@
/bin/cp $DIRJOB/$marcdll $DIRJOB/${filename}_$marcdll 2>/dev/null /bin/cp $DIRJOB/$marcdll $DIRJOB/${filename}_$marcdll 2>/dev/null
fi fi
if test $rmdll = yes if test $rmdll = yes
@@ -3558,7 +3500,7 @@ @@ -3556,7 +3498,7 @@
# first copy over the user sub if local directories # first copy over the user sub if local directories
if test ${dirstatus[$counter]} = "local" if test ${dirstatus[$counter]} = "local"
then then
@ -300,12 +300,12 @@
fi fi
# do the compilation on the other machine # do the compilation on the other machine
if test ${dirstatus[$counter]} = "shared" if test ${dirstatus[$counter]} = "shared"
@@ -3571,21 +3513,21 @@ @@ -3569,21 +3511,21 @@
remoteuser=$DIR1/`$BASENAME $user` remoteuser=$DIR1/`$BASENAME $user`
$RSH $i /bin/rm $remoteprog 2> /dev/null $RSH $i /bin/rm $remoteprog 2> /dev/null
echo echo
- $RSH $i $DIR2/tools/comp_user $DIR2 $DIR1 $remoteuser $remoteprog - $RSH $i $DIR2/tools/comp_user $DIR2 $DIR1 $remoteuser $remoteprog
+ $RSH $i $DIR2/tools/comp_damask_mp $DIR2 $DIR1 $remoteuser $remoteprog + $RSH $i $DIR2/tools/comp_damask_hmp $DIR2 $DIR1 $remoteuser $remoteprog
# check if successful, the new executable should be there # check if successful, the new executable should be there
line=`$RSH $i /bin/ls $remoteprog 2> /dev/null` line=`$RSH $i /bin/ls $remoteprog 2> /dev/null`
if test "$line" if test "$line"
@ -325,7 +325,7 @@
fi fi
fi fi
fi fi
@@ -3595,39 +3537,27 @@ @@ -3593,39 +3535,27 @@
if test "$userhost" if test "$userhost"
then then
echo echo
@ -345,7 +345,7 @@
if test $MACHINENAME = "CRAY" if test $MACHINENAME = "CRAY"
then then
- $FORTRAN $usersub || \ - $FORTRAN $usersub || \
+ $DFORTRANMP $user || \ + $DFORTHIGHMP $user || \
{ {
- echo "$0: compile failed for $user.f" - echo "$0: compile failed for $user.f"
+ echo "$0: compile failed for $user" + echo "$0: compile failed for $user"
@ -355,7 +355,7 @@
/bin/rm $program 2>/dev/null /bin/rm $program 2>/dev/null
else else
- $FORTRAN $usersub -o $userobj || \ - $FORTRAN $usersub -o $userobj || \
+ $DFORTRANMP $user -o $userobj || \ + $DFORTHIGHMP $user -o $userobj || \
{ {
- echo "$0: compile failed for $user.f" - echo "$0: compile failed for $user.f"
+ echo "$0: compile failed for $user" + echo "$0: compile failed for $user"
@ -371,7 +371,7 @@
fi # if test $user fi # if test $user
@@ -3647,6 +3577,7 @@ @@ -3645,6 +3575,7 @@
$TKLIBS \ $TKLIBS \
$MRCLIBS \ $MRCLIBS \
$METISLIBS \ $METISLIBS \
@ -379,7 +379,7 @@
$SFLIB \ $SFLIB \
$OPENSSL_LIB \ $OPENSSL_LIB \
$SYSLIBS \ $SYSLIBS \
@@ -3688,6 +3619,9 @@ @@ -3686,6 +3617,9 @@
prgsav=yes prgsav=yes
fi # if test $link fi # if test $link
/bin/rm $userobj 2>/dev/null /bin/rm $userobj 2>/dev/null
@ -389,7 +389,7 @@
# #
# run marc # run marc
@@ -3781,7 +3715,7 @@ @@ -3779,7 +3713,7 @@
else else
#dllrun >0 #dllrun >0
if test $cpdll = yes; then if test $cpdll = yes; then
@ -398,7 +398,7 @@
/bin/cp $DIRJOB/$marcdll $DIRJOB/${filename}_$marcdll 2>/dev/null /bin/cp $DIRJOB/$marcdll $DIRJOB/${filename}_$marcdll 2>/dev/null
fi fi
if test $rmdll = yes;then if test $rmdll = yes;then
@@ -3906,7 +3840,7 @@ @@ -3904,7 +3838,7 @@
# first copy over the user sub if local directories # first copy over the user sub if local directories
if test ${dirstatus[$counter]} = "local" if test ${dirstatus[$counter]} = "local"
then then
@ -407,12 +407,12 @@
fi fi
# do the compilation on the other machine # do the compilation on the other machine
if test ${dirstatus[$counter]} = "shared" if test ${dirstatus[$counter]} = "shared"
@@ -3919,20 +3853,20 @@ @@ -3917,20 +3851,20 @@
remoteuser=$DIR1/`$BASENAME $user` remoteuser=$DIR1/`$BASENAME $user`
$RSH $i /bin/rm $remoteprog 2> /dev/null $RSH $i /bin/rm $remoteprog 2> /dev/null
echo echo
- $RSH $i $DIR2/tools/comp_user $DIR2 $DIR1 $remoteuser $remoteprog - $RSH $i $DIR2/tools/comp_user $DIR2 $DIR1 $remoteuser $remoteprog
+ $RSH $i $DIR2/tools/comp_damask_mp $DIR2 $DIR1 $remoteuser $remoteprog + $RSH $i $DIR2/tools/comp_damask_hmp $DIR2 $DIR1 $remoteuser $remoteprog
# check if successful, the new executable should be there # check if successful, the new executable should be there
line=`$RSH $i /bin/ls $remoteprog 2> /dev/null` line=`$RSH $i /bin/ls $remoteprog 2> /dev/null`
if test "$line" if test "$line"
@ -431,7 +431,7 @@
fi fi
fi fi
fi fi
@@ -3942,37 +3876,25 @@ @@ -3940,37 +3874,25 @@
if test "$userhost" if test "$userhost"
then then
echo echo
@ -451,7 +451,7 @@
if test $MACHINENAME = "CRAY" if test $MACHINENAME = "CRAY"
then then
- $FORTRAN $usersub || \ - $FORTRAN $usersub || \
+ $DFORTRANMP $user || \ + $DFORTHIGHMP $user || \
{ {
- echo "$0: compile failed for $user.f" - echo "$0: compile failed for $user.f"
+ echo "$0: compile failed for $user" + echo "$0: compile failed for $user"
@ -460,7 +460,7 @@
/bin/rm $program 2>/dev/null /bin/rm $program 2>/dev/null
else else
- $FORTRAN $usersub -o $userobj || \ - $FORTRAN $usersub -o $userobj || \
+ $DFORTRANMP $user -o $userobj || \ + $DFORTHIGHMP $user -o $userobj || \
{ {
- echo "$0: compile failed for $user.f" - echo "$0: compile failed for $user.f"
+ echo "$0: compile failed for $user" + echo "$0: compile failed for $user"
@ -475,7 +475,7 @@
fi # if test $user fi # if test $user
@@ -3992,6 +3914,7 @@ @@ -3990,6 +3912,7 @@
$TKLIBS \ $TKLIBS \
$MRCLIBS \ $MRCLIBS \
$METISLIBS \ $METISLIBS \
@ -483,7 +483,7 @@
$SFLIB \ $SFLIB \
$OPENSSL_LIB \ $OPENSSL_LIB \
$SYSLIBS \ $SYSLIBS \
@@ -4032,7 +3955,9 @@ @@ -4030,7 +3953,9 @@
prgsav=yes prgsav=yes
fi # if test $link fi # if test $link
/bin/rm $userobj 2>/dev/null /bin/rm $userobj 2>/dev/null
@ -494,7 +494,7 @@
# done if no job id given # done if no job id given
if test -z "$jid" if test -z "$jid"
then then
@@ -4151,7 +4076,7 @@ @@ -4149,7 +4074,7 @@
else else
#dllrun >0 #dllrun >0
if test $cpdll = yes; then if test $cpdll = yes; then