From 4fb3ce54a92cefac0fe608559b49eff8bee824ab Mon Sep 17 00:00:00 2001 From: BLANCO-GARCIA <oscar-roberto.blanco-garcia@synchrotron-soleil.fr> Date: Fri, 1 Sep 2023 14:15:41 +0200 Subject: [PATCH] fix bug; and changes output dir --- make_for_tracy3.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/make_for_tracy3.sh b/make_for_tracy3.sh index c025b3a..98fce5b 100755 --- a/make_for_tracy3.sh +++ b/make_for_tracy3.sh @@ -47,7 +47,7 @@ fi #dirName=/nfs/tegile/work/sources/physmach/blanco-garcia/codes if [ $1 == "opt" ] -then +then CC=icc CXX=icpc LDFLAGS="-L$dirnName/nrecipes/recipes_c-ansi/lib/" ./configure --prefix=$dir/$TRACY/tracy FFLAGS="-O2 -Wall -fbounds-check" CFLAGS="-O2 -Wall -fno-implicit-templates" CXXFLAGS="-O2 -Wall -fno-implicit-templates" # CC=gcc CXX=g++ LDFLAGS=" -L$dirnName/nrecipes/recipes_c-ansi/lib/ " ./configure FFLAGS="-O2 -Wall -fbounds-check " CFLAGS=" -Wall -ansi -fno-implicit-templates -Wunused-label -Wunused-dummy-argument -Wunused-variable " CXXFLAGS="-O2 -Wall -ansi " fi @@ -67,7 +67,6 @@ currentver="$(gcc -dumpversion)" echo "GCC is $currentver" requiredver="9.2.0" if [ "$(printf '%s\n' "$requiredver" "$currentver" | sort -V | head -n1)" = "$requiredver" ]; then - then CC=gcc CXX=g++ LDFLAGS="-L$NUM_REC/lib/ -I/usr/local/applications/tools/openmpi/4.1.1/include -L/usr/local/applications/tools/openmpi/4.1.1/lib -lmpi" ./configure --enable-mpi-exec FFLAGS="-O2 -Wall -fbounds-check " CFLAGS="-O2 -Wall -ansi " CXXFLAGS="-O2 -Wall -ansi -fno-implicit-templates -I/usr/local/applications/tools/openmpi/4.1.1/include -L/usr/local/applications/tools/openmpi/4.1.1/lib -lmpi_cxx -fopenmp " else # newer gcc versions require extra fortran flags @@ -80,4 +79,6 @@ fi make #make install DESTDIR=/usr/local/applis_pa/codes/tracy/bin -make install DESTDIR=~ +#make install DESTDIR=~ +make install DESTDIR=$dir/$TRACY/build +echo $dir/$TRACY/build -- GitLab