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"
|
-I$MARC_SOURCE/${BCS_DIR}/common -I$MARC_SOURCE/mumpssolver/include $I8DEFINES -DLinux -DLINUX -DLinux_intel $FDEFINES $DDM"
|
||||||
|
|
||||||
# determine DAMASK version
|
# determine DAMASK version
|
||||||
HIT=0
|
if test -n "$DAMASK_USER"; then
|
||||||
for arg in "$@"
|
DAMASKROOT=`dirname $DAMASK_USER`/..
|
||||||
do
|
read DAMASKVERSION < $DAMASKROOT/VERSION
|
||||||
if [ $HIT = 1 ]
|
DAMASKVERSION="'"$DAMASKVERSION"'"
|
||||||
then
|
else
|
||||||
DAMASKPATH=`dirname $arg`
|
DAMASKVERSION="'N/A'"
|
||||||
break
|
fi
|
||||||
elif [ ${arg:0:2} = -u -o ${arg:0:2} = -U ]
|
|
||||||
then
|
|
||||||
HIT=1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
read DAMASKVERSION < $DAMASKPATH/../VERSION
|
|
||||||
DAMASKVERSION="'"$DAMASKVERSION"'"
|
|
||||||
|
|
||||||
# DAMASK compiler calls: additional flags are in line 2 OpenMP flags in line 3
|
# 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 \
|
DFORTLOW="$FCOMP $FORT_OPT $PROFILE -O0 $I8FFLAGS -I$MARC_SOURCE/common \
|
||||||
|
|
|
@ -299,6 +299,20 @@ fi
|
||||||
|
|
||||||
. "$DIR/getarch"
|
. "$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
|
. $MARC_INCLUDE
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -299,6 +299,20 @@ fi
|
||||||
|
|
||||||
. "$DIR/getarch"
|
. "$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
|
. $MARC_INCLUDE
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -299,6 +299,20 @@ fi
|
||||||
|
|
||||||
. "$DIR/getarch"
|
. "$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
|
. $MARC_INCLUDE
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -299,6 +299,20 @@ fi
|
||||||
|
|
||||||
. "$DIR/getarch"
|
. "$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
|
. $MARC_INCLUDE
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -299,6 +299,20 @@ fi
|
||||||
|
|
||||||
. "$DIR/getarch"
|
. "$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
|
. $MARC_INCLUDE
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -299,6 +299,20 @@ fi
|
||||||
|
|
||||||
. "$DIR/getarch"
|
. "$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
|
. $MARC_INCLUDE
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue