]> SALOME platform Git repositories - tools/solverlab.git/commitdiff
Salome HOME
Added petsc4py in PYTHONPATH\n Preload of libnetcdf on ubuntu 20
authormichael <michael@localhost.localdomain>
Sat, 30 Oct 2021 20:53:49 +0000 (22:53 +0200)
committermichael <michael@localhost.localdomain>
Sat, 30 Oct 2021 20:53:49 +0000 (22:53 +0200)
env_SOLVERLAB.sh

index 57dace3885d6d0eb9b984f4c98d3bfea24afdfa0..fb3442adc5ec89cbe3c108365738e559e12f5b0d 100644 (file)
@@ -14,17 +14,22 @@ export MEDCOUPLING_INCLUDE_DIR=@MEDCOUPLING_INCLUDE_DIR@
 export MEDCOUPLING_LIBRARIES=@MEDCOUPLING_LIBRARIES@
 export PV_LIB_DIR=@PV_LIB_DIR@
 export PV_PYTHON_DIR=@PV_PYTHON_DIR@
-export HDF5_ROOT=@HDF5_ROOT@/lib
+export HDF5_ROOT=@HDF5_ROOT@
 
-if [ @SOLVERLAB_WITH_MPI@ = ON ]
+if [ @SOLVERLAB_WITH_MPI@ = ON ] 
 then
   export mpirun=${PETSC_DIR}/${PETSC_ARCH}/bin/mpirun
   export mpiexec=${PETSC_DIR}/${PETSC_ARCH}/bin/mpiexec
 fi
 
 export COREFLOWS=$COREFLOWS_INSTALL/bin/Executable/COREFLOWSMainExe
-export LD_LIBRARY_PATH=$COREFLOWS_INSTALL/lib:$CDMATH_INSTALL/lib:${PETSC_DIR}/lib:$PETSC_LIBRARIES:${MEDCOUPLING_LIBRARIES}:${MEDFILE_ROOT_DIR}/lib:$MEDFILE_LIBRARIES:${MEDFILE_C_LIBRARIES}:$HDF5_ROOT:$PV_LIB_DIR:${LD_LIBRARY_PATH}
-export PYTHONPATH=$COREFLOWS_INSTALL/lib/coreflows:$COREFLOWS_INSTALL/bin/coreflows:$COREFLOWS_INSTALL/lib/python:$CDMATH_INSTALL/lib/cdmath:$CDMATH_INSTALL/bin/cdmath:$CDMATH_INSTALL/bin/cdmath/postprocessing:$PV_PYTHON_DIR:${PETSC_DIR}/${PETSC_ARCH}/lib:${PETSC_DIR}/lib:$PETSC_LIBRARIES:${MEDCOUPLING_LIBRARIES}:${MEDCOUPLING_LIBRARIES}/python@Python_VERSION_MAJOR@.@Python_VERSION_MINOR@/site-packages/:${MEDFILE_ROOT_DIR}/lib:$MEDFILE_LIBRARIES:${MEDFILE_C_LIBRARIES}:${PYTHONPATH}
+export LD_LIBRARY_PATH=$COREFLOWS_INSTALL/lib:$CDMATH_INSTALL/lib:${PETSC_DIR}/lib:$PETSC_LIBRARIES:${MEDCOUPLING_LIBRARIES}:${MEDFILE_ROOT_DIR}/lib:$MEDFILE_LIBRARIES:${MEDFILE_C_LIBRARIES}:$HDF5_ROOT/lib:$PV_LIB_DIR:${LD_LIBRARY_PATH}
+export PYTHONPATH=$COREFLOWS_INSTALL/bin:$COREFLOWS_INSTALL/lib:$COREFLOWS_INSTALL/lib/coreflows:$COREFLOWS_INSTALL/bin/coreflows:$COREFLOWS_INSTALL/lib/python:$CDMATH_INSTALL/lib/cdmath:$CDMATH_INSTALL/bin/cdmath:$CDMATH_INSTALL/bin/cdmath/postprocessing:$PV_PYTHON_DIR:${PETSC_DIR}/${PETSC_ARCH}/lib:${PETSC_DIR}/lib:$PETSC_LIBRARIES:${PETSC_DIR}/${PETSC_ARCH}/lib/petsc4py:${PETSC_DIR}/${PETSC_ARCH}/lib/petsc4py/lib/${PETSC_ARCH}:${PETSC_DIR}/lib/petsc4py:${PETSC_DIR}/lib/petsc4py/lib:${MEDCOUPLING_LIBRARIES}:${MEDCOUPLING_LIBRARIES}/python@Python_VERSION_MAJOR@.@Python_VERSION_MINOR@/site-packages/:${MEDFILE_ROOT_DIR}/lib:$MEDFILE_LIBRARIES:${MEDFILE_C_LIBRARIES}:${PYTHONPATH}
+
+if [ @PRELOAD_NETCDF_ON_UBUNTU20@ = ON ] 
+then
+    export  LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libnetcdf.so
+fi
 
 export SOLVERLAB_ROOT_DIR=$COREFLOWS_INSTALL
 export SOLVERLABGUI=$COREFLOWS_INSTALL/bin/salome/CoreFlows_Standalone.py