correctly determine DAMASK version
This commit is contained in:
parent
8d2037b834
commit
676ecb2ade
|
@ -442,20 +442,13 @@ FORTNA="$FCOMP $FORT_OPT -fno-alias -O3 $I8FFLAGS -I$MARC_SOURCE/common \
|
|||
-I$MARC_SOURCE/${BCS_DIR}/common -I$MARC_SOURCE/mumpssolver/include $I8DEFINES -DLinux -DLINUX -DLinux_intel $FDEFINES $DDM"
|
||||
|
||||
# determine DAMASK version
|
||||
HIT=0
|
||||
for arg in "$@"
|
||||
do
|
||||
if [ $HIT = 1 ]
|
||||
then
|
||||
DAMASKPATH=`dirname $arg`
|
||||
break
|
||||
elif [ ${arg:0:2} = -u -o ${arg:0:2} = -U ]
|
||||
then
|
||||
HIT=1
|
||||
fi
|
||||
done
|
||||
read DAMASKVERSION < $DAMASKPATH/../VERSION
|
||||
if test -n "$DAMASK_USER"; then
|
||||
DAMASKROOT=`dirname $DAMASK_USER`/..
|
||||
read DAMASKVERSION < $DAMASKROOT/VERSION
|
||||
DAMASKVERSION="'"$DAMASKVERSION"'"
|
||||
else
|
||||
DAMASKVERSION="'N/A'"
|
||||
fi
|
||||
|
||||
# DAMASK compiler calls: additional flags are in line 2 OpenMP flags in line 3
|
||||
DFORTLOW="$FCOMP $FORT_OPT $PROFILE -O0 $I8FFLAGS -I$MARC_SOURCE/common \
|
||||
|
|
|
@ -299,6 +299,20 @@ fi
|
|||
|
||||
. "$DIR/getarch"
|
||||
|
||||
# getting user subroutine file name
|
||||
found=0
|
||||
for i in "$@"; do
|
||||
if test $found = 1; then
|
||||
DAMASK_USER=$i
|
||||
found=0
|
||||
fi
|
||||
case $i in
|
||||
-u* | -U*)
|
||||
found=1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
# sourcing include_linux64 (needs DAMASK_USER to be set)
|
||||
. $MARC_INCLUDE
|
||||
#
|
||||
|
||||
|
|
|
@ -299,6 +299,20 @@ fi
|
|||
|
||||
. "$DIR/getarch"
|
||||
|
||||
# getting user subroutine file name
|
||||
found=0
|
||||
for i in "$@"; do
|
||||
if test $found = 1; then
|
||||
DAMASK_USER=$i
|
||||
found=0
|
||||
fi
|
||||
case $i in
|
||||
-u* | -U*)
|
||||
found=1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
# sourcing include_linux64 (needs DAMASK_USER to be set)
|
||||
. $MARC_INCLUDE
|
||||
#
|
||||
|
||||
|
|
|
@ -299,6 +299,20 @@ fi
|
|||
|
||||
. "$DIR/getarch"
|
||||
|
||||
# getting user subroutine file name
|
||||
found=0
|
||||
for i in "$@"; do
|
||||
if test $found = 1; then
|
||||
DAMASK_USER=$i
|
||||
found=0
|
||||
fi
|
||||
case $i in
|
||||
-u* | -U*)
|
||||
found=1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
# sourcing include_linux64 (needs DAMASK_USER to be set)
|
||||
. $MARC_INCLUDE
|
||||
#
|
||||
|
||||
|
|
|
@ -299,6 +299,20 @@ fi
|
|||
|
||||
. "$DIR/getarch"
|
||||
|
||||
# getting user subroutine file name
|
||||
found=0
|
||||
for i in "$@"; do
|
||||
if test $found = 1; then
|
||||
DAMASK_USER=$i
|
||||
found=0
|
||||
fi
|
||||
case $i in
|
||||
-u* | -U*)
|
||||
found=1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
# sourcing include_linux64 (needs DAMASK_USER to be set)
|
||||
. $MARC_INCLUDE
|
||||
#
|
||||
|
||||
|
|
|
@ -299,6 +299,20 @@ fi
|
|||
|
||||
. "$DIR/getarch"
|
||||
|
||||
# getting user subroutine file name
|
||||
found=0
|
||||
for i in "$@"; do
|
||||
if test $found = 1; then
|
||||
DAMASK_USER=$i
|
||||
found=0
|
||||
fi
|
||||
case $i in
|
||||
-u* | -U*)
|
||||
found=1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
# sourcing include_linux64 (needs DAMASK_USER to be set)
|
||||
. $MARC_INCLUDE
|
||||
#
|
||||
|
||||
|
|
|
@ -299,6 +299,20 @@ fi
|
|||
|
||||
. "$DIR/getarch"
|
||||
|
||||
# getting user subroutine file name
|
||||
found=0
|
||||
for i in "$@"; do
|
||||
if test $found = 1; then
|
||||
DAMASK_USER=$i
|
||||
found=0
|
||||
fi
|
||||
case $i in
|
||||
-u* | -U*)
|
||||
found=1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
# sourcing include_linux64 (needs DAMASK_USER to be set)
|
||||
. $MARC_INCLUDE
|
||||
#
|
||||
|
||||
|
|
Loading…
Reference in New Issue