]> SALOME platform Git repositories - plugins/hybridplugin.git/commitdiff
Salome HOME
add bin/mg-hybrid.exe_Linux_64_avril2014
authorChristian Van Wambeke <christian.van-wambeke@cea.fr>
Fri, 4 Jul 2014 13:47:09 +0000 (15:47 +0200)
committerChristian Van Wambeke <christian.van-wambeke@cea.fr>
Fri, 4 Jul 2014 13:47:09 +0000 (15:47 +0200)
bin/CMakeLists.txt
bin/essai.bash [new file with mode: 0755]
bin/mg-hybrid.exe [new file with mode: 0755]
bin/mg-hybrid.exe_Linux_64_avril2014 [new file with mode: 0755]
src/GUI/HYBRIDPluginGUI_HypothesisCreator.cxx
src/GUI/HYBRIDPlugin_msg_en.ts
src/HYBRIDPlugin/HYBRIDPlugin_HYBRID.cxx

index d2200622759106d6b507efff1c32698792954beb..a3e5fd42a1f8b71fd693c93f6cefdfcd6e157e40 100755 (executable)
 #
 
 SALOME_CONFIGURE_FILE(VERSION.in VERSION INSTALL ${SALOME_INSTALL_BINS})
+
+
+# scripts / static / binaries
+# temporary standalone project version of mg-hybrid.exe
+SET(_bin_SCRIPTS
+  essai.bash
+  mg-hybrid.exe
+  mg-hybrid.exe_Linux_64_avril2014
+)
+
+
+# --- rules ---
+SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_BINS})
diff --git a/bin/essai.bash b/bin/essai.bash
new file mode 100755 (executable)
index 0000000..b2e8e59
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+echo "hello essai"
diff --git a/bin/mg-hybrid.exe b/bin/mg-hybrid.exe
new file mode 100755 (executable)
index 0000000..596ecc3
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+#bash script mg-hybrid.exe
+#we have renamed binary executable mg-hybrid.exe V1.3.0 as mg-hybrid.exe_Linux_64_avril2014
+#to assume call of other beta-versions of distene mg-hybrid.exe code in standalone plugin HYBRIDPLUGIN sources
+#and also assume licence file set to overriding licence file of other distene products ( HEXOTIC, GHS3D, etc... )
+#all that for for only one call of mg-hybrid.exe from salome plugin HYBRIDPLUGIN
+
+#echo "mg-hybrid.exe initial parameters are:" $1 $2 $3 $4 
+echo "mg-hybrid.exe initial parameters are:" $*
+#$0 is ignored
+
+export DISTENE_LICENSE_FILE="Use global envvar: DLIM8VAR"
+export DLIM8VAR="dlim8 1:1:29030@132.166.151.49/84c419b8::87af196ab2a936ab31363624539bff8096fbe1f3c83028c8f6b399b0a904ef85"
+
+echo "mg-hybrid.exe assume licence file set:"
+env | grep DLIM
+
+#mg-hybrid.exe_Linux_64_avril2014 --help
+mg-hybrid.exe_Linux_64_avril2014 $*
+
diff --git a/bin/mg-hybrid.exe_Linux_64_avril2014 b/bin/mg-hybrid.exe_Linux_64_avril2014
new file mode 100755 (executable)
index 0000000..4dc2b53
Binary files /dev/null and b/bin/mg-hybrid.exe_Linux_64_avril2014 differ
index a0ab956e238cfe36a694286b3614e689ba80d009..f905e21f9f3ccbb870ba3dfbb7ddf1bf030373ed 100644 (file)
@@ -405,12 +405,16 @@ QFrame* HYBRIDPluginGUI_HypothesisCreator::buildFrame()
   types << tr( "LEVEL_NONE" ) << tr( "LEVEL_LIGHT" ) << tr( "LEVEL_MEDIUM" ) << tr( "LEVEL_STANDARDPLUS" ) << tr( "LEVEL_STRONG" );
   myOptimizationLevelCombo->addItems( types );
 
-  aStdLayout->addWidget( new QLabel( tr( "HYBRID_BOUNDARY_LAYERS_GROWTH" ), myStdGroup ), row, 0, 1, 1 );
+  QLabel* aLabel = new QLabel( tr( "HYBRID_BOUNDARY_LAYERS_GROWTH" ), myStdGroup );
+  aLabel->setToolTip(tr( "HYBRID_BOUNDARY_LAYERS_HELP" ));
+  aStdLayout->addWidget( aLabel, row, 0, 1, 1 );
   myBoundaryLayersGrowthCombo = new QComboBox( myStdGroup );
+  myBoundaryLayersGrowthCombo->setToolTip(tr( "HYBRID_BOUNDARY_LAYERS_HELP" ));
+  
   aStdLayout->addWidget( myBoundaryLayersGrowthCombo, row++, 1, 1, 1 );
   
   QStringList typesBoundaryLayersGrowth;
-  typesBoundaryLayersGrowth << tr( "HYBRID_LAYER_GROWTH_INWARD" ) << tr( "HYBRID_LAYER_GROWTH_OUTWARD" );
+  typesBoundaryLayersGrowth << tr( "HYBRID_LAYER_GROWTH_UPWARD" ) << tr( "HYBRID_LAYER_GROWTH_DOWNWARD" );
   myBoundaryLayersGrowthCombo->addItems( typesBoundaryLayersGrowth );
   
   aStdLayout->addWidget( new QLabel( tr( "HYBRID_HeightFirstLayer" ), myStdGroup ), row, 0, 1, 1 );
index 520200a290bcc5a185e13d5078aaa42b8174be39..32cff993f1907b56cae78146ed727c5b9a9a1925 100644 (file)
         <source>HYBRID_BOUNDARY_LAYERS_GROWTH</source>
         <translation>Growth of boundary layers</translation>
     </message>
+    <message>
+        <source>HYBRID_BOUNDARY_LAYERS_HELP</source>
+        <translation>Pay attention:
+due to random conventions of normals orientations of many mesher,
+downward means inward and upward means outward ...
+... or vice versa.</translation>
+    </message>
     <message>
         <source>HYBRID_LAYER_GROWTH_INWARD</source>
         <translation>Inward growth</translation>
         <source>HYBRID_LAYER_GROWTH_OUTWARD</source>
         <translation>Outward growth</translation>
     </message>
+    <message>
+        <source>HYBRID_LAYER_GROWTH_UPWARD</source>
+        <translation>Upward growth</translation>
+    </message>
+    <message>
+        <source>HYBRID_LAYER_GROWTH_DOWNWARD</source>
+        <translation>Downward growth</translation>
+    </message>
     <message>
         <source>HYBRID_GENERATION_ELEMENT</source>
         <translation>Element type for mesh in the remaining volume</translation>
index bcdcbc844ea45376c40a51d46574c724f4b88f87..769bea33fd0cd14412fb060d06093fd987e33c48 100644 (file)
@@ -3092,7 +3092,7 @@ bool HYBRIDPlugin_HYBRID::Compute(SMESH_Mesh&         theMesh,
   //  cmd += TCollection_AsciiString(" --required_vertices ") + aGenericNameRequired;
   cmd += TCollection_AsciiString(" --out ") + aResultFileName;
   if ( !_logInStandardOutput )
-    cmd += TCollection_AsciiString(" 1>" ) + aLogFileName;  // dump into file
+    cmd += TCollection_AsciiString(" &>" ) + aLogFileName;  // dump into file
 
   std::cout << std::endl;
   std::cout << "Hybrid execution with geometry..." << std::endl;
@@ -3359,7 +3359,7 @@ bool HYBRIDPlugin_HYBRID::Compute(SMESH_Mesh&         theMesh,
   //  cmd += TCollection_AsciiString(" --required_vertices ") + aGenericNameRequired;
   cmd += TCollection_AsciiString(" --out ") + aResultFileName;
   if ( !_logInStandardOutput )
-    cmd += TCollection_AsciiString(" 1>" ) + aLogFileName;  // dump into file
+    cmd += TCollection_AsciiString(" &>" ) + aLogFileName;  // dump into file
 
   std::cout << std::endl;
   std::cout << "Hybrid execution w/o geometry..." << std::endl;