From 200ed5fa129ce00d070133f52cc9c8058355ab1f Mon Sep 17 00:00:00 2001 From: nghodban Date: Mon, 4 Jan 2021 14:20:57 +0100 Subject: [PATCH] Petsc: compilation should use release mode --- products/compil_scripts/petsc.sh | 2 +- products/env_scripts/petsc.py | 22 +++++++++------------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/products/compil_scripts/petsc.sh b/products/compil_scripts/petsc.sh index feaf62e..a89500b 100755 --- a/products/compil_scripts/petsc.sh +++ b/products/compil_scripts/petsc.sh @@ -11,7 +11,7 @@ cp -r $SOURCE_DIR/* . CONFIGURE_FLAGS='' CONFIGURE_FLAGS=$CONFIGURE_FLAGS" --download-f2cblaslapack=ext/f2cblaslapack-3.4.2.q4" CONFIGURE_FLAGS=$CONFIGURE_FLAGS" --download-slepc=ext/slepc-3.14.0" - +CONFIGURE_FLAGS=$CONFIGURE_FLAGS" --with-debugging=0" # by default Petsc is build in debug mode echo if [ -n "${MPI_ROOT_DIR}" ] then diff --git a/products/env_scripts/petsc.py b/products/env_scripts/petsc.py index 8cf89b0..96d52fa 100644 --- a/products/env_scripts/petsc.py +++ b/products/env_scripts/petsc.py @@ -5,18 +5,14 @@ import os.path import platform def set_env(env, prereq_dir, version): - env.set('PETSCDIR', prereq_dir) - env.set('PETSC_ROOT_DIR', prereq_dir) - - env.set('PETSC_DIR', prereq_dir) - env.set('PETSC_ARCH', 'arch-linux2-c-debug') - - root = env.get('PETSCDIR') - - env.prepend('PATH', os.path.join(root, 'include')) - env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib')) - #env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'arch-linux2-c-debug', 'lib')) + env.set('PETSCDIR', prereq_dir) + env.set('PETSC_ROOT_DIR', prereq_dir) + env.set('PETSC_DIR', prereq_dir) + if platform.system() == "Windows" : + pass + else: + env.prepend('LD_LIBRARY_PATH', os.path.join(prereq_dir, 'lib')) + env.set('PETSC_ARCH', 'arch-linux-c-opt') - def set_nativ_env(env): - pass + pass -- 2.39.2