]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
Petsc: compilation should use release mode
authornghodban <Nabil.Ghodbane@c-s.fr>
Mon, 4 Jan 2021 13:20:57 +0000 (14:20 +0100)
committernghodban <Nabil.Ghodbane@c-s.fr>
Mon, 4 Jan 2021 13:20:57 +0000 (14:20 +0100)
products/compil_scripts/petsc.sh
products/env_scripts/petsc.py

index feaf62e3bcf93d1c6e1634e7611eacf57ce75e18..a89500b62e6120c7044c427989403a0c10d63020 100755 (executable)
@@ -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
index 8cf89b0ee30b71993c9a8bbe84e7243b7165067a..96d52fa9c49d2724a3ef667e23584cb911414d01 100644 (file)
@@ -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