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