From 7591f9d2dba3db40fed90e8b9f8437dde5fde517 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Tue, 3 Jan 2023 14:49:45 +0100 Subject: [PATCH] add switch in main application for Paraview Headless mode --- applications/SALOME-9.10.0-MPI.pyconf | 1 + products/compil_scripts/ParaView-5.11.0.sh | 2 +- products/compil_scripts/ParaView-5.9.0.sh | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/applications/SALOME-9.10.0-MPI.pyconf b/applications/SALOME-9.10.0-MPI.pyconf index 1c11273..6641518 100644 --- a/applications/SALOME-9.10.0-MPI.pyconf +++ b/applications/SALOME-9.10.0-MPI.pyconf @@ -21,6 +21,7 @@ APPLICATION : SALOME_USE_64BIT_IDS : '1' VTK_SMP_IMPLEMENTATION_TYPE : OpenMP # OpenMP # choose among: sequential / OpenMP / TBB switches SALOME_GMSH_HEADERS_STD : '1' + #PARAVIEW_HEADLESS_MODE : '1' } launch : { diff --git a/products/compil_scripts/ParaView-5.11.0.sh b/products/compil_scripts/ParaView-5.11.0.sh index 883cf48..80c43da 100755 --- a/products/compil_scripts/ParaView-5.11.0.sh +++ b/products/compil_scripts/ParaView-5.11.0.sh @@ -39,7 +39,7 @@ CMAKE_OPTIONS+=" -DPARAVIEW_ENABLE_CATALYST=ON" CMAKE_OPTIONS+=" -Dcatalyst_DIR=${CATALYST_ROOT_DIR}/lib/cmake/catalyst-2.0" ### spns #20550 - Headless mode -if [ -n "$PARAVIEW_HEADLESS_MODE" ]; then +if [ "$PARAVIEW_HEADLESS_MODE" == "1" ]; then EGL_FOUND=false LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION" case $LINUX_DISTRIBUTION in diff --git a/products/compil_scripts/ParaView-5.9.0.sh b/products/compil_scripts/ParaView-5.9.0.sh index 7956604..a935d83 100755 --- a/products/compil_scripts/ParaView-5.9.0.sh +++ b/products/compil_scripts/ParaView-5.9.0.sh @@ -38,7 +38,7 @@ CMAKE_OPTIONS+=" -DUSE_CATALYST:BOOL=ON" CMAKE_OPTIONS+=" -DPARAVIEW_ENABLE_CATALYST=ON" ### spns #20550 - Headless mode -if [ -n "$PARAVIEW_HEADLESS_MODE" ]; then +if [ "$PARAVIEW_HEADLESS_MODE" == "1" ]; then EGL_FOUND=false LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION" case $LINUX_DISTRIBUTION in -- 2.39.2