diff --git a/Conf/Analyse_args.sh b/Conf/Analyse_args.sh deleted file mode 100644 index 1b230cbc..00000000 --- a/Conf/Analyse_args.sh +++ /dev/null @@ -1,49 +0,0 @@ - if (( $# == 0 )); then - echo "*** Usage: $0 dell|cray|wcoss|theia|hera|gaea|jet|intel_general|gnu_general libver= [debug] [compileonly] [prefix=]" >&2 - exit 1 - fi - sys=${1,,} - [[ $sys == dell || $sys == cray || $sys == wcoss || \ - $sys == theia || $sys == hera || $sys == gaea || $sys == jet || \ - $sys == intel_general || $sys == gnu_general ]] || { - echo "*** Usage: $0 dell|cray|wcoss|theia|hera|gaea|jet|intel_general|gnu_general libver= [debug] [compileonly] [prefix=]" >&2 - exit 1 - } - - debg=false - inst=true - rinst=false - local=true - instloc="---" - (( nrinst = 0 )) - (( nconfm = 0 )) - for n in 2 3 4; do - if (( $# > (n-1) )); then - [[ ${!n,,} == debug ]] && debg=true - [[ ${!n,,} == compileonly ]] && inst=false - [[ ${!n,,} == libver=* ]] && libver=${!n:$(expr length "libver=")} - [[ ${!n,,} == prefix=* ]] && { - local=false - instloc=${!n:$(expr length "prefix=")} - [[ $instloc == /* ]] || { [[ -n $CDIR ]] && instloc=$CDIR/$instloc; } - } - [[ ${!n,,} == install ]] && (( nrinst = n )) - [[ ${!n,,} == confirm:yes ]] && (( nconfm = n-1 )) - fi - done - (( nrinst > 0 && nconfm == 0 )) && { - echo "*** Info: ignore unsupported option \"install\" ***" - (( nrinst = 0 )) - } - (( nrinst == 0 && nconfm > 0 )) && { - echo "*** Info: ignore \"confirm:YES\"; must be present along with \"install\" ***" - (( nrinst = 0 )) - } - (( nconfm > 0 && ! nrinst == nconfm )) && { - echo "*** Info: ignore \"confirm:YES\"; must be present immediately after \"install\" ***" - (( nrinst = 0 )) - } - (( nconfm > 0 && nrinst == nconfm )) && rinst=true - - $rinst && { local=false; inst=true; } - diff --git a/Conf/Collect_info.sh b/Conf/Collect_info.sh deleted file mode 100644 index 4b2d2397..00000000 --- a/Conf/Collect_info.sh +++ /dev/null @@ -1,107 +0,0 @@ - collect_info() { - local setx_status=${-//[^x]/} - [[ -n $setx_status ]] && set +x - - local lname=$1 - local precsn=$2 - local msgline=$3 - local msginfo=$4 - - local info - local oneline - - USEMPI=false - grep -i mpi <<< "$COMP" &> /dev/null && USEMPI=true - -# libver=${lname~~}_VER - [[ $precsn == "-" ]] && { - cflg=CFLAGS - fflg=FFLAGS - libfile=${lname}Lib - NCLIBVER="${lname,,} (${lname~~}) ${!libver}" - } || { - cflg=CFLAGS${precsn%/*} - [[ -z "${!cflg}" ]] && cflg=CFLAGS - fflg=FFLAGS${precsn%/*} - libfile=${lname}Lib${precsn#*/} - NCLIBVER="${lname,,} (${lname~~} _${precsn%/*}) ${!libver}" - } - mpicflg=MPI"$cflg" - mpifflg=MPI"$fflg" - - $USEMPI && mpiver=$(mpirun --version | grep Version | sed 's/://' | \ - tr -s " " | sed 's/^.* Version //; s/ Build.*$//') - - COMPILED="compiled by" - $CC --version | grep " (ICC) " &> /dev/null && - $FC --version | grep " (IFORT) " &> /dev/null && { - ccstr=$($CC --version | grep " (ICC) ") - cfstr=$($FC --version | grep " (IFORT) ") - COMPILER="${ccstr/(ICC)*/(ICC)}, $cfstr" - } || { - $CC --version | grep " (.*GCC.*) " &> /dev/null && - $FC --version | grep " (.*GCC.*) " &> /dev/null && { - ccstr=$($CC --version | grep " (.*GCC.*) ") - cfstr=$($FC --version | grep " (.*GCC.*) ") - COMPILER="${ccstr/ (*GCC*)*/}, $cfstr" - } || { - ccstr=$($CC --version | grep -E 'ICC|GCC') - cfstr=$($FC --version | grep -E 'IFORT|GCC') - COMPILER="$ccstr, $cfstr" - } - } - [[ -z "$USECC" || ${USECC,,} == no ]] && { COMPILER="$cfstr"; } - [[ -z "$USEFC" || ${USEFC,,} == no ]] && { COMPILER="$ccstr"; } - - $USEMPI && { COMPILER=" $COMPILER"; } - (( ${#COMPILER} > 50 )) && COMPILER=${COMPILER% (*)*} - - DATETIME="$(date +'on %x at %X')" - - oneline="nclibver = '$NCLIBVER'," - oneline="$oneline"$'\n'"compiled = ' $COMPILED'," - oneline="$oneline"$'\n'"compiler = ' $COMPILER'," - oneline="$oneline"$'\n'"datetime = ' $DATETIME'" - - info="*** ${lname} information ***" - info=$info$'\n'"LIBRARY NAME: ${lname~~}" - info=$info$'\n'"LIBRARY VERSION: ${!libver}" - [[ $precsn != "-" ]] && { - info=$info$'\n'"LIBRARY PRECISION: (_${precsn%/*})" - } - info=$info$'\n'"LIBRARY FILE NAME: ${!libfile}" - info=$info$'\n'"*** building information ***" - info=$info$'\n'"BUILDING TIME: $(date)" - info=$info$'\n'"SYSTEM/PLATFORM: $(uname -srm)" - [[ -n "$USECC" && ${USECC,,} != no ]] && { - $USEMPI && { - info=$info$'\n'"C COMPILER NAME: $MPICC" - info=$info$'\n'"C COMPILER VERSION: $($MPICC --version | head -1)" - info=$info$'\n'"MPICFLAGS: "${!mpicflg} - } || { - info=$info$'\n'"C COMPILER NAME: $CC" - info=$info$'\n'"C COMPILER VERSION: $($CC --version | head -1)" - info=$info$'\n'"CFLAGS: "${!cflg} - } - } - [[ -n "$USEFC" && ${USEFC,,} != no ]] && { - $USEMPI && { - info=$info$'\n'"FORTRAN COMPILER NAME: $MPIFC" - info=$info$'\n'"FORTRAN COMPILER VERSION: $($MPIFC --version | head -1)" - info=$info$'\n'"MPIFFLAGS: "${!mpifflg} - } || { - info=$info$'\n'"FORTRAN COMPILER NAME: $FC" - info=$info$'\n'"FORTRAN COMPILER VERSION: $($FC --version | head -1)" - info=$info$'\n'"FFLAGS: "${!fflg} - } - } - - $USEMPI && { info=$info$'\n'"MPI VERSION: $mpiver"; } - - [[ -n "$DEPS" ]] && { info=$info$'\n'"DEPENDENCES: $DEPS"; } - - eval $msgline="\"$oneline\"" - eval $msginfo="\"$info\"" - - [[ -n $setx_status ]] && set -x - } diff --git a/Conf/Gen_cfunction.sh b/Conf/Gen_cfunction.sh deleted file mode 100644 index 1428829c..00000000 --- a/Conf/Gen_cfunction.sh +++ /dev/null @@ -1,91 +0,0 @@ - gen_cfunction() { - local setx_status=${-//[^x]/} - [[ -n $setx_status ]] && set +x - - logFILE=$1 - oneLINE=$2 - libINFO=$3 - LIB=$(echo "${!libINFO}" | \ - grep "LIBRARY FILE NAME: " | \ - sed -e 's/LIBRARY FILE NAME: //') - [[ $LIB == lib*.a ]] || { - echo "??? gen_cfunction: unknown library name ($LIB) ???" >&2 - exit -1 - } - libNAME=$(echo ${LIB:3} | \ - sed -e 's/^\(.*\)_v[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+.*$/\1/') - cFunFILE=$(basename ${logFILE} .txt).c - oFunFILE=${cFunFILE/%.c/.o} - brfFunct=${libNAME}_brief_info - libFunct=${libNAME}_library_info - logFunct=${libNAME}_building_log - - cat << EOI > $cFunFILE -#include -#include -#include -#include - char *${brfFunct}(char *infoline); - int ${libFunct}(void); - int ${logFunct}(void); - static void tprintf(const char *str); - void ${brfFunct}_(char *oneline, size_t n) { - char infoline[256]; - ${brfFunct}(infoline); - strncpy(oneline, infoline, n); - return; - } - void ${libFunct}_(void) { - ${libFunct}(); - return; - } - void ${logFunct}_(void) { - ${logFunct}(); - return; - } - char *${brfFunct}(char *infoline) { - $(sed -e '1,$ s/^\(.*\) = '\''\(.*\)'\'',\?$/ const char \1[] = "\2";/g' <<< "${!oneLINE}") - infoline[0] = '\0'; - strcat(infoline, nclibver); - strcat(infoline, compiled); - strcat(infoline, compiler); - strcat(infoline, datetime); - return infoline; - } - int ${libFunct}(void) { -$(sed -e 's/^/ tprintf("/g; 1,$ s/$/");/g' <<< "${!libINFO}") - return 0; - } - int ${logFunct}(void) { - printf("... building log ...\n"); -$(sed -e 's/"/\\"/g; 1,$ s/%/%%/g; 1,$ s/^/ printf("/g; 1,$ s/$/\\n");/g' $logFILE) - return 0; - } - static void tprintf(const char *str) { - const char *boldon = "\e[1m"; - const char *boldoff = "\e[0m"; - char *str1 = strdup(str); - char *temp = strstr(str1, ": "); //Get the pointer to substr token - if (temp) { - temp += 2; - char *str2 = strdup(temp); - *temp = '\0'; - if (isatty(STDOUT_FILENO)) { - printf("%s%s%s%s\n", boldon, str1, boldoff, str2); - free(str2); - free(str1); - return; - } - free(str2); - } - free(str1); - printf("%s\n", str); - return; - } -EOI - - rm $logFILE - echo $cFunFILE - - [[ -n $setx_status ]] && set -x - } diff --git a/Conf/Ip_gnu_General.sh b/Conf/Ip_gnu_General.sh deleted file mode 100644 index 49629cbd..00000000 --- a/Conf/Ip_gnu_General.sh +++ /dev/null @@ -1,38 +0,0 @@ -# *** manually set environments (for gnu compiler) of ip *** - - : ${USERMODE:=false} # user mode (USERMODE) is closed by default - # set env var USERMODE to "true" to active it - ${USERMODE} && { - echo "Environment set by user" -# On theia/cray, user can load environment - module load gcc/6.2.0 - } - - export CC=gcc - export FC=gfortran - export CPP=cpp - export OMPCC="$CC -fopenmp" - export OMPFC="$FC -fopenmp" - export MPICC=mpigcc - export MPIFC=mpigfortran - - export DEBUG="-g -fbacktrace -O0" - export CFLAGS="-g -O3 -fPIC" - export FFLAGS="-g -fbacktrace -O3 -fconvert=little-endian -fPIC" - export FREEFORM="-ffree-form" - export FPPCPP="-cpp" - export CPPFLAGS="-P -traditional-cpp" - export MPICFLAGS="-g -O3 -fPIC" - export MPIFFLAGS="-g -fbacktrace -O3 -fconvert=little-endian -fPIC" - export MODPATH="-J" - export I4R4="" - export I4R8="-fdefault-real-8" - export I8R8="-fdefault-integer-8 -fdefault-real-8" - - export CPPDEFS="" - export CFLAGSDEFS="-DUNDERSCORE -DLINUX" - export FFLAGSDEFS="" - - export USECC="" - export USEFC="YES" - export DEPS="" diff --git a/Conf/Ip_intel_Cray.sh b/Conf/Ip_intel_Cray.sh deleted file mode 100644 index e245265f..00000000 --- a/Conf/Ip_intel_Cray.sh +++ /dev/null @@ -1,30 +0,0 @@ -# *** for WCOSS Cray (intel) *** - - export CC=cc - export FC=ftn - export CPP=cpp - export OMPCC="$CC -qopenmp" - export OMPFC="$FC -qopenmp" - export MPICC=$CC - export MPIFC=$FC - - export DEBUG="-g -traceback -O0" - export CFLAGS="-g -traceback -O3 -axCORE-AVX2 -fPIC" - export FFLAGS="-g -traceback -O3 -axCORE-AVX2 -fp-model strict -ip -convert little_endian -assume byterecl -fPIC" - export FPPCPP="-cpp" - export FREEFORM="-free" - export CPPFLAGS="-P -traditional-cpp" - export MPICFLAGS=$CFLAGS - export MPIFFLAGS=$FFLAGS - export MODPATH="-module " - export I4R4="-integer-size 32 -real-size 32" - export I4R8="-integer-size 32 -real-size 64" - export I8R8="-integer-size 64 -real-size 64" - - export CPPDEFS="" - export CFLAGSDEFS="-DUNDERSCORE -DLINUX" - export FFLAGSDEFS="" - - export USECC="" - export USEFC="YES" - export DEPS="" diff --git a/Conf/Ip_intel_Dell.sh b/Conf/Ip_intel_Dell.sh deleted file mode 100644 index a9752ec2..00000000 --- a/Conf/Ip_intel_Dell.sh +++ /dev/null @@ -1,30 +0,0 @@ -# *** for WCOSS Dell (intel) *** - - export CC=icc - export FC=ifort - export CPP=cpp - export OMPCC="$CC -qopenmp" - export OMPFC="$FC -qopenmp" - export MPICC=mpiicc - export MPIFC=mpiifort - - export DEBUG="-g -traceback -O0" - export CFLAGS="-g -traceback -O3 -fPIC" - export FFLAGS="-g -traceback -O3 -fp-model strict -ip -convert little_endian -assume byterecl -fPIC" - export FPPCPP="-cpp" - export FREEFORM="-free" - export CPPFLAGS="-P -traditional-cpp" - export MPICFLAGS="-g -traceback -O3 -fPIC" - export MPIFFLAGS="-g -traceback -O3 -fPIC" - export MODPATH="-module " - export I4R4="-integer-size 32 -real-size 32" - export I4R8="-integer-size 32 -real-size 64" - export I8R8="-integer-size 64 -real-size 64" - - export CPPDEFS="" - export CFLAGSDEFS="-DUNDERSCORE -DLINUX" - export FFLAGSDEFS="" - - export USECC="" - export USEFC="YES" - export DEPS="" diff --git a/Conf/Ip_intel_Gaea.sh b/Conf/Ip_intel_Gaea.sh deleted file mode 100644 index 15516216..00000000 --- a/Conf/Ip_intel_Gaea.sh +++ /dev/null @@ -1,30 +0,0 @@ -# *** for Theia/Gaea/Jet (intel) *** - - export CC=icc - export FC=ifort - export CPP=cpp - export OMPCC="$CC -qopenmp" - export OMPFC="$FC -qopenmp" - export MPICC=mpiicc - export MPIFC=mpiifort - - export DEBUG="-g -traceback -O0" - export CFLAGS="-g -O3 -traceback -xHOST -fPIC" - export FFLAGS="-g -O3 -traceback -xHOST -fp-model strict -ip -convert little_endian -assume byterecl -fPIC" - export FPPCPP="-cpp" - export FREEFORM="-free" - export CPPFLAGS="-P -traditional-cpp" - export MPICFLAGS="-g -O3 -traceback -xHOST -fPIC" - export MPIFFLAGS="-g -O3 -traceback -xHOST -xHOST -fp-model strict -ip -convert little_endian -assume byterecl -fPIC" - export MODPATH="-module " - export I4R4="-integer-size 32 -real-size 32" - export I4R8="-integer-size 32 -real-size 64" - export I8R8="-integer-size 64 -real-size 64" - - export CPPDEFS="" - export CFLAGSDEFS="-DUNDERSCORE -DLINUX" - export FFLAGSDEFS="" - - export USECC="" - export USEFC="YES" - export DEPS="" diff --git a/Conf/Ip_intel_General.sh b/Conf/Ip_intel_General.sh deleted file mode 100644 index cc028e06..00000000 --- a/Conf/Ip_intel_General.sh +++ /dev/null @@ -1,38 +0,0 @@ -# *** manually set environments (for intel compiler) of ip *** - - : ${USERMODE:=false} # user mode (USERMODE) is closed by default - # set env var USERMODE to "true" to active it - ${USERMODE} && { - echo "Environment set by user" -# On theia/cray, user can load environment - module load intel/18.0.1.163 - } - - export CC=icc - export FC=ifort - export CPP=cpp - export OMPCC="$CC -qopenmp" - export OMPFC="$FC -qopenmp" - export MPICC=mpiicc - export MPIFC=mpiifort - - export DEBUG="-g -traceback -O0" - export CFLAGS="-g -traceback -O3 -fPIC" - export FFLAGS="-g -traceback -O3 -fp-model strict -ip -convert little_endian -assume byterecl -fPIC" - export FPPCPP="-cpp" - export FREEFORM="-free" - export CPPFLAGS="-P -traditional-cpp" - export MPICFLAGS="-g -traceback -O3 -fPIC" - export MPIFFLAGS="-g -traceback -O3 -fPIC" - export MODPATH="-module " - export I4R4="-integer-size 32 -real-size 32" - export I4R8="-integer-size 32 -real-size 64" - export I8R8="-integer-size 64 -real-size 64" - - export CPPDEFS="" - export CFLAGSDEFS="-DUNDERSCORE -DLINUX" - export FFLAGSDEFS="" - - export USECC="" - export USEFC="YES" - export DEPS="" diff --git a/Conf/Ip_intel_Hera.sh b/Conf/Ip_intel_Hera.sh deleted file mode 100644 index ac367907..00000000 --- a/Conf/Ip_intel_Hera.sh +++ /dev/null @@ -1,34 +0,0 @@ -# *** for Hera (intel) *** - $rinst && { - grep -E "(^|:|/)ip/" <<< "$LOADEDMODULES" &> /dev/null \ - || module load ip/3.0.2 - } - - export CC=icc - export FC=ifort - export CPP=cpp - export OMPCC="$CC -qopenmp" - export OMPFC="$FC -qopenmp" - export MPICC=mpiicc - export MPIFC=mpiifort - - export DEBUG="-g -traceback -O0" - export CFLAGS="-g -O3 -ftz -traceback -xHOST -axcore-avx512 -fPIC" - export FFLAGS="-g -O3 -ftz -traceback -fpe0 -xHOST -axcore-avx512 -fp-model strict -ip -convert little_endian -assume byterecl -fPIC" - export FPPCPP="-cpp" - export FREEFORM="-free" - export CPPFLAGS="-P -traditional-cpp" - export MPICFLAGS="-g -O3 -ftz -traceback -xHOST -axcore-avx512 -fPIC" - export MPIFFLAGS="-g -O3 -ftz -traceback -fpe0 -xHOST -axcore-avx512 -fPIC" - export MODPATH="-module " - export I4R4="-integer-size 32 -real-size 32" - export I4R8="-integer-size 32 -real-size 64" - export I8R8="-integer-size 64 -real-size 64" - - export CPPDEFS="" - export CFLAGSDEFS="-DUNDERSCORE -DLINUX" - export FFLAGSDEFS="" - - export USECC="" - export USEFC="YES" - export DEPS="" diff --git a/Conf/Ip_intel_Jet.sh b/Conf/Ip_intel_Jet.sh deleted file mode 100644 index 15516216..00000000 --- a/Conf/Ip_intel_Jet.sh +++ /dev/null @@ -1,30 +0,0 @@ -# *** for Theia/Gaea/Jet (intel) *** - - export CC=icc - export FC=ifort - export CPP=cpp - export OMPCC="$CC -qopenmp" - export OMPFC="$FC -qopenmp" - export MPICC=mpiicc - export MPIFC=mpiifort - - export DEBUG="-g -traceback -O0" - export CFLAGS="-g -O3 -traceback -xHOST -fPIC" - export FFLAGS="-g -O3 -traceback -xHOST -fp-model strict -ip -convert little_endian -assume byterecl -fPIC" - export FPPCPP="-cpp" - export FREEFORM="-free" - export CPPFLAGS="-P -traditional-cpp" - export MPICFLAGS="-g -O3 -traceback -xHOST -fPIC" - export MPIFFLAGS="-g -O3 -traceback -xHOST -xHOST -fp-model strict -ip -convert little_endian -assume byterecl -fPIC" - export MODPATH="-module " - export I4R4="-integer-size 32 -real-size 32" - export I4R8="-integer-size 32 -real-size 64" - export I8R8="-integer-size 64 -real-size 64" - - export CPPDEFS="" - export CFLAGSDEFS="-DUNDERSCORE -DLINUX" - export FFLAGSDEFS="" - - export USECC="" - export USEFC="YES" - export DEPS="" diff --git a/Conf/Ip_intel_Theia.sh b/Conf/Ip_intel_Theia.sh deleted file mode 100644 index 88960467..00000000 --- a/Conf/Ip_intel_Theia.sh +++ /dev/null @@ -1,30 +0,0 @@ -# *** for Theia (intel) *** - - export CC=icc - export FC=ifort - export CPP=cpp - export OMPCC="$CC -qopenmp" - export OMPFC="$FC -qopenmp" - export MPICC=mpiicc - export MPIFC=mpiifort - - export DEBUG="-g -traceback -O0" - export CFLAGS="-g -O3 -ftz -traceback -xHOST -axcore-avx512 -fPIC" - export FFLAGS="-g -O3 -ftz -traceback -fpe0 -xHOST -axcore-avx512 -fp-model strict -ip -convert little_endian -assume byterecl -fPIC" - export FPPCPP="-cpp" - export FREEFORM="-free" - export CPPFLAGS="-P -traditional-cpp" - export MPICFLAGS="-g -O3 -ftz -traceback -xHOST -axcore-avx512 -fPIC" - export MPIFFLAGS="-g -O3 -ftz -traceback -fpe0 -xHOST -axcore-avx512 -fPIC" - export MODPATH="-module " - export I4R4="-integer-size 32 -real-size 32" - export I4R8="-integer-size 32 -real-size 64" - export I8R8="-integer-size 64 -real-size 64" - - export CPPDEFS="" - export CFLAGSDEFS="-DUNDERSCORE -DLINUX" - export FFLAGSDEFS="" - - export USECC="" - export USEFC="YES" - export DEPS="" diff --git a/Conf/Ip_intel_Wcoss.sh b/Conf/Ip_intel_Wcoss.sh deleted file mode 100644 index df3d6a9d..00000000 --- a/Conf/Ip_intel_Wcoss.sh +++ /dev/null @@ -1,30 +0,0 @@ -# *** for WCOSS IBM phase1 (intel) *** - - export CC=icc - export FC=ifort - export CPP=cpp - export OMPCC="$CC -qopenmp" - export OMPFC="$FC -qopenmp" - export MPICC=mpiicc - export MPIFC=mpiifort - - export DEBUG="-g -traceback -O0" - export CFLAGS="-g -traceback -O3 -fPIC" - export FFLAGS="-g -traceback -O3 -fp-model strict -ip -convert little_endian -assume byterecl -fPIC" - export FPPCPP="-cpp" - export FREEFORM="-free" - export CPPFLAGS="-P -traditional-cpp" - export MPICFLAGS="-g -traceback -O3 -fPIC" - export MPIFFLAGS="-g -traceback -O3 -fPIC" - export MODPATH="-module " - export I4R4="-integer-size 32 -real-size 32" - export I4R8="-integer-size 32 -real-size 64" - export I8R8="-integer-size 64 -real-size 64" - - export CPPDEFS="" - export CFLAGSDEFS="-DUNDERSCORE -DLINUX" - export FFLAGSDEFS="" - - export USECC="" - export USEFC="YES" - export DEPS="" diff --git a/Conf/Reset_version.sh b/Conf/Reset_version.sh deleted file mode 100644 index 6d8bff57..00000000 --- a/Conf/Reset_version.sh +++ /dev/null @@ -1,18 +0,0 @@ - reset_version() { - local setx_status=${-//[^x]/} - [[ -n $setx_status ]] && set +x - (( $# == 2 )) && { - local var=$1 - local ver_name=${var^^}_VER - local old_ver=${!ver_name} - local new_ver=$2 - } || { - local var=$1 - local old_ver=$2 - local new_ver=$3 - } - for vline in "$(env | grep ${var^^})"; do - eval ${vline//${old_ver}/${new_ver}} - done - [[ -n $setx_status ]] && set -x - } diff --git a/README.md b/README.md index a672ac03..1fb290e7 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,8 @@ make test ``` ### Version -3.2.0 + +3.3.0 ### Authors diff --git a/VERSION b/VERSION index 944880fa..15a27998 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.2.0 +3.3.0 diff --git a/build_ip.sh b/build_ip.sh deleted file mode 100755 index da70cd6f..00000000 --- a/build_ip.sh +++ /dev/null @@ -1,164 +0,0 @@ -#!/bin/bash - - : ${THISDIR:=$(dirname $(readlink -f -n ${BASH_SOURCE[0]}))} - CDIR=$PWD; cd $THISDIR - - source ./Conf/Analyse_args.sh - source ./Conf/Collect_info.sh - source ./Conf/Gen_cfunction.sh - source ./Conf/Reset_version.sh - - if [[ ${sys} == "intel_general" ]]; then - sys6=${sys:6} - source ./Conf/Ip_${sys:0:5}_${sys6^}.sh - rinst=false - elif [[ ${sys} == "gnu_general" ]]; then - sys4=${sys:4} - source ./Conf/Ip_${sys:0:3}_${sys4^}.sh - rinst=false - else - source ./Conf/Ip_intel_${sys^}.sh - fi - $CC --version &> /dev/null || { - echo "??? IP: compilers not set." >&2 - exit 1 - } - [[ -z ${IP_VER+x} || -z ${IP_LIB4+x} ]] && { - [[ -z ${libver+x} || -z ${libver} ]] && { - echo "??? IP: \"libver\" not set." >&2 - exit - } - IP_INC4=${libver}_4 - IP_INC8=${libver}_8 - IP_INCd=${libver}_d - IP_LIB4=lib${libver}_4.a - IP_LIB8=lib${libver}_8.a - IP_LIBd=lib${libver}_d.a - IP_VER=v${libver##*_v} - } - -set -x - ipLib4=$(basename $IP_LIB4) - ipLib8=$(basename $IP_LIB8) - ipLibd=$(basename $IP_LIBd) - ipInc4=$(basename $IP_INC4) - ipInc8=$(basename $IP_INC8) - ipIncd=$(basename $IP_INCd) - -################# - cd src -################# - -#------------------------------------------------------------------- -# Start building libraries -# - echo - echo " ... build (i4/r4) ip library ..." - echo - make clean LIB=$ipLib4 MOD=$ipInc4 - mkdir -p $ipInc4 - FFLAGS4="$I4R4 $FFLAGS ${MODPATH}$ipInc4" - collect_info ip 4 OneLine4 LibInfo4 - ipInfo4=ip_info_and_log4.txt - $debg && make debug CPPDEFS="-DLSIZE=4" FFLAGS="$FFLAGS4" LIB=$ipLib4 \ - &> $ipInfo4 \ - || make build CPPDEFS="-DLSIZE=4" FFLAGS="$FFLAGS4" LIB=$ipLib4 \ - &> $ipInfo4 - make message MSGSRC="$(gen_cfunction $ipInfo4 OneLine4 LibInfo4)" LIB=$ipLib4 - - echo - echo " ... build (i8/r8) ip library ..." - echo - make clean LIB=$ipLib8 MOD=$ipInc8 - mkdir -p $ipInc8 - FFLAGS8="$I8R8 $FFLAGS ${MODPATH}$ipInc8" - collect_info ip 8 OneLine8 LibInfo8 - ipInfo8=ip_info_and_log8.txt - $debg && make debug CPPDEFS="-DLSIZE=8" FFLAGS="$FFLAGS8" LIB=$ipLib8 \ - &> $ipInfo8 \ - || make build CPPDEFS="-DLSIZE=8" FFLAGS="$FFLAGS8" LIB=$ipLib8 \ - &> $ipInfo8 - make message MSGSRC="$(gen_cfunction $ipInfo8 OneLine8 LibInfo8)" LIB=$ipLib8 - - echo - echo " ... build (i4/r8) ip library ..." - echo - make clean LIB=$ipLibd MOD=$ipIncd - mkdir -p $ipIncd - FFLAGSd="$I4R8 $FFLAGS ${MODPATH}$ipIncd" - collect_info ip d OneLined LibInfod - ipInfod=ip_info_and_logd.txt - $debg && make debug CPPDEFS="-DLSIZE=D" FFLAGS="$FFLAGSd" LIB=$ipLibd \ - &> $ipInfod \ - || make build CPPDEFS="-DLSIZE=D" FFLAGS="$FFLAGSd" LIB=$ipLibd \ - &> $ipInfod - make message MSGSRC="$(gen_cfunction $ipInfod OneLined LibInfod)" LIB=$ipLibd - - $inst && { -# -# Install libraries and source files -# - $local && { - instloc=.. - LIB_DIR=$instloc/lib - INCP_DIR=$instloc/include - [ -d $LIB_DIR ] || { mkdir -p $LIB_DIR; } - [ -d $INCP_DIR ] || { mkdir -p $INCP_DIR; } - LIB_DIR4=$LIB_DIR - LIB_DIR8=$LIB_DIR - LIB_DIRd=$LIB_DIR - INCP_DIR4=$INCP_DIR - INCP_DIR8=$INCP_DIR - INCP_DIRd=$INCP_DIR - SRC_DIR= - } || { - $rinst && { - LIB_DIR4=$(dirname ${IP_LIB4}) - LIB_DIR8=$(dirname ${IP_LIB8}) - LIB_DIRd=$(dirname ${IP_LIBd}) - INCP_DIR4=$(dirname $IP_INC4) - INCP_DIR8=$(dirname $IP_INC8) - INCP_DIRd=$(dirname $IP_INCd) - [ -d $IP_INC4 ] && { rm -rf $IP_INC4; } \ - || { mkdir -p $INCP_DIR4; } - [ -d $IP_INC8 ] && { rm -rf $IP_INC8; } \ - || { mkdir -p $INCP_DIR8; } - [ -d $IP_INCd ] && { rm -rf $IP_INCd; } \ - || { mkdir -p $INCP_DIRd; } - SRC_DIR=$IP_SRC - } || { - LIB_DIR=$instloc/lib - LIB_DIR4=$LIB_DIR - LIB_DIR8=$LIB_DIR - LIB_DIRd=$LIB_DIR - INCP_DIR=$instloc/include - INCP_DIR4=$INCP_DIR - INCP_DIR8=$INCP_DIR - INCP_DIRd=$INCP_DIR - IP_INC4=$INCP_DIR4/$IP_INC4 - IP_INC8=$INCP_DIR8/$IP_INC8 - IP_INCd=$INCP_DIRd/$IP_INCd - [ -d $IP_INC4 ] && { rm -rf $IP_INC4; } \ - || { mkdir -p $INCP_DIR4; } - [ -d $IP_INC8 ] && { rm -rf $IP_INC8; } \ - || { mkdir -p $INCP_DIR8; } - [ -d $IP_INCd ] && { rm -rf $IP_INCd; } \ - || { mkdir -p $INCP_DIRd; } - SRC_DIR=$instloc/src/${libver} - [[ $instloc == .. ]] && SRC_DIR= - } - [ -d $LIB_DIR4 ] || mkdir -p $LIB_DIR4 - [ -d $LIB_DIR8 ] || mkdir -p $LIB_DIR8 - [ -d $LIB_DIRd ] || mkdir -p $LIB_DIRd - [ -z $SRC_DIR ] || { [ -d $SRC_DIR ] || mkdir -p $SRC_DIR; } - } - - make clean LIB= - make install LIB=$ipLib4 MOD=$ipInc4 \ - LIB_DIR=$LIB_DIR4 INC_DIR=$INCP_DIR4 SRC_DIR= - make install LIB=$ipLib8 MOD=$ipInc8 \ - LIB_DIR=$LIB_DIR8 INC_DIR=$INCP_DIR8 SRC_DIR= - make install LIB=$ipLibd MOD=$ipIncd \ - LIB_DIR=$LIB_DIRd INC_DIR=$INCP_DIRd SRC_DIR=$SRC_DIR - } - diff --git a/src/Makefile b/src/Makefile deleted file mode 100644 index e12029d7..00000000 --- a/src/Makefile +++ /dev/null @@ -1,54 +0,0 @@ -SHELL=/bin/sh -# sources, headers, objects, library and etc. -SRCS_m = $(filter-out gdswzd_mod.f90, $(wildcard gdswzd*_mod.f90)) \ - gdswzd_mod.f90 -SRCS_f = $(SRCS_m) $(filter-out $(SRCS_m), $(wildcard *.f90)) -SRCS = $(SRCS_f) gdswzd_c.F90 -OBJS = $(patsubst %.f90, %.o, $(SRCS_f)) gdswzd_c.o - -all: build - -build: $(LIB) - -$(LIB): $(OBJS) - $(AR) $(ARFLAGS) $@ $^ - -debug: dbg_build - -dbg_build: override CFLAGS += $(DEBUG) -dbg_build: override FFLAGS += $(DEBUG) -dbg_build: $(LIB) - -%.o: %.c - $(CC) -c $(CFLAGS) $(CFLAGSDEFS) $< - -%.o: %.f - $(OMPFC) -c $(FFLAGS) $(FFLAGSDEFS) $< - -%.o: %.f90 - $(OMPFC) -c $(FREEFORM) $(FFLAGS) $(FFLAGSDEFS) $< - -%.f90: %.F90 - $(CPP) $(CPPFLAGS) $(CPPDEFS) $< $@ - -message: $(MSGSRC) - $(CC) -c $(MSGSRC) - $(AR) $(ARFLAGS) $(LIB) $(patsubst %.c, %.o, $(MSGSRC)) - $(RM) $(MSGSRC) $(patsubst %.c, %.o, $(MSGSRC)) - -install: - [[ -z "$(LIB)" || -z "$(LIB_DIR)" ]] || mv $(LIB) $(LIB_DIR) - [[ -z "$(MOD)" || -z "$(INC_DIR)" ]] || mv $(MOD) $(INC_DIR) - [[ -z "$(SRC_DIR)" ]] || cp ./* $(SRC_DIR) - -test: - @echo "*** unit test unavailable currently ***" - -clean: - $(RM) $(OBJS) $(LIB) - [[ -z "$(MOD)" ]] || $(RM) -r $(MOD) - -.SUFFIXES: .F90 .f90 .mod .o .a - -# Specify targets that do not generate filesystem objects -.PHONY: all build install debug dbg_build message test clean