]> SALOME platform Git repositories - plugins/ghs3dprlplugin.git/commitdiff
Salome HOME
23261: [CEA 1695] Patch for updating GHS3DPRLPLUGIN V7_8_0a2 V7_8_0b1
authoreap <eap@opencascade.com>
Wed, 30 Mar 2016 14:08:01 +0000 (17:08 +0300)
committereap <eap@opencascade.com>
Wed, 30 Mar 2016 14:08:01 +0000 (17:08 +0300)
bin/mg-tetra_hpc.bash
src/GHS3DPRLPlugin/GHS3DPRLPlugin_GHS3DPRL.cxx

index 4a2cd6c78b5db0de4894082aeb5d36673759b45b..786a422d3e21d68b11e41a1bfe86432ad83269a0 100755 (executable)
@@ -14,30 +14,30 @@ CURRENTDIR=`pwd`
 COMPILDIR=`dirname $0`
 echo "COMPILDIR" $COMPILDIR
 echo "CURRENTDIR" $CURRENTDIR
-if [[ $HOSTNAME == *hpcspot* ]]
-  then
-    HOST="hpcspot"
-  else
-    HOST="STANDART_CentOs6" #CentOs6 default
-fi
-echo "HOST" $HOST
+#if [[ $HOSTNAME == *hpcspot* ]]
+#  then
+#    HOST="hpcspot"
+#  else
+#    HOST="STANDART_CentOs6" #CentOs6 default
+#fi
+#echo "HOST" $HOST
 
 #we need to compile for mg-tetra_hpc.exe
 #DISTENE_LICENSE_FILE is for example, have to be set
-if [ $HOST == "hpcspot" ]
-  then
+#if [ $HOST == "hpcspot" ]
+#  then
     #env openmpi centos6.5 hpcspot.com
-    source /apps/mpi/openmpi-1.6-x86_64-gcc48/env.sh
+#    source /apps/mpi/openmpi-1.6-x86_64-gcc48/env.sh
     #export DISTENE_LICENSE_FILE="Use global envvar: DLIM8VAR"
     #export DLIM8VAR="dlim8 1:1:29030@10.27.51.1/002590c96d98::8fbdc02cde090ca0369ad028e839065b97709e3c33e640eb6a3c2c7e40fe3985"
-  else
+#  else
     #env openmpi centos6.5 standart lgls is206786
-    export WD2=/usr/lib64/openmpi
-    export PATH=$WD2/bin:${PATH}
-    export LD_LIBRARY_PATH=$COMPILDIR:$WD2/lib:${LD_LIBRARY_PATH}
+#    export WD2=/usr/lib64/openmpi
+#    export PATH=$WD2/bin:${PATH}
+#    export LD_LIBRARY_PATH=$COMPILDIR:$WD2/lib:${LD_LIBRARY_PATH}
     #export DISTENE_LICENSE_FILE="Use global envvar: DLIM8VAR"
     #export DLIM8VAR="dlim8 1:1:29030@132.166.151.49/84c419b8::87af196ab2a936ab31363624539bff8096fbe1f3c83028c8f6b399b0a904ef85"
-fi
+#fi
 
 cd $COMPILDIR
 if [ ! -f libmeshgems_mpi.so ]
@@ -53,6 +53,7 @@ env | grep DLIM
 
 #mg-tetra_hpc.exe_Linux_64_avril2014 --help
 #ldd `which mg-tetra_hpc.exe_Linux_64_avril2014`
-mpirun -n $2 mg-tetra_hpc.exe_Linux_64_avril2014 ${@:3:30}
+#mpirun -n $2 mg-tetra_hpc.exe_Linux_64_avril2014 ${@:3:30}
+mpirun -n $2 $MESHGEMS_ROOT_DIR/bin/run_mg-tetra_hpc.sh ${@:3:30}
 
 
index f716df2abec00661dc16dee3ea090aae50a7fc1c..d08bc1fdc191c5cef9878dc35321de6fd1585755 100755 (executable)
@@ -520,11 +520,11 @@ bool GHS3DPRLPlugin_GHS3DPRL::Compute(SMESH_Mesh& theMesh,
                      " --launchtetra=yes";
       //no more meshhole option
       //if (_ToMeshHoles) run_GHS3DPRL += " --meshholes=yes"; else run_GHS3DPRL += " --meshholes=no";
-      if (_ToMergeSubdomains) run_GHS3DPRL += " --merge_subdomains=yes"; else run_GHS3DPRL += " --merge_subdomains=no";
-      if (_ToTagSubdomains) run_GHS3DPRL += " --tag_subdomains=yes"; else run_GHS3DPRL += " --tag_subdomains=no";
-      if (_ToOutputInterfaces) run_GHS3DPRL += " --output_interfaces=yes"; else run_GHS3DPRL += " --output_interfaces=no";
-      if (_ToDiscardSubdomains) run_GHS3DPRL += " --discard_subdomains=yes"; else run_GHS3DPRL += " --discard_subdomains=no";
-      if (_Background) run_GHS3DPRL += " --background=yes"; else run_GHS3DPRL += " --background=no";
+      //if (_ToMergeSubdomains) run_GHS3DPRL += " --merge_subdomains=yes"; else run_GHS3DPRL += " --merge_subdomains=no";
+      //if (_ToTagSubdomains) run_GHS3DPRL += " --tag_subdomains=yes"; else run_GHS3DPRL += " --tag_subdomains=no";
+      //if (_ToOutputInterfaces) run_GHS3DPRL += " --output_interfaces=yes"; else run_GHS3DPRL += " --output_interfaces=no";
+      //if (_ToDiscardSubdomains) run_GHS3DPRL += " --discard_subdomains=yes"; else run_GHS3DPRL += " --discard_subdomains=no";
+      //if (_Background) run_GHS3DPRL += " --background=yes"; else run_GHS3DPRL += " --background=no";
       run_nokeep_files = rm +GHS3DPRL_In + "* " + path + "tetrahpc.log";
       system( run_nokeep_files.ToCString() ); //clean files
       run_nokeep_files = rm + GHS3DPRL_In + "* ";