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
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