From: nghodban Date: Mon, 4 Jan 2021 13:20:57 +0000 (+0100) Subject: Petsc: compilation should use release mode X-Git-Tag: V9_7_0~172 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=200ed5fa129ce00d070133f52cc9c8058355ab1f;p=tools%2Fsat_salome.git Petsc: compilation should use release mode --- 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