]> SALOME platform Git repositories - plugins/hybridplugin.git/blob - bin/mg-hybrid.bash
Salome HOME
CMake improvement: usage of SALOME_GUI_WITH_CORBA() macro
[plugins/hybridplugin.git] / bin / mg-hybrid.bash
1 #!/bin/bash
2
3 #bash script mg-hybrid.bash
4 #we have renamed binary executable mg-hybrid.exe V1.3.0 as mg-hybrid.exe_Linux_64_juillet2014
5 #to assume call of other beta-versions of distene mg-hybrid.exe code in standalone plugin HYBRIDPLUGIN sources
6 #and also assume licence file set to overriding licence file of other distene products ( HEXOTIC, GHS3D, etc... )
7 #all that for for only one call of mg-hybrid.bash from salome plugin HYBRIDPLUGIN
8
9 function findOutFile {
10 #find --out parameter result in $resFindOutFile
11 while test $# -gt 0; do
12   case "$1" in
13     -o|--out)
14       if [ -z "$2" ]    # $String is null
15       then
16         resFindOutFile="None"
17       else
18         resFindOutFile=$2
19       fi
20       return
21       ;;
22     *)
23       shift
24       ;;
25   esac
26 done
27 resFindOutFile="None"
28 }
29
30 #echo "mg-hybrid.bash initial parameters are:" $1 $2 $3 $4 
31 echo "mg-hybrid.bash initial parameters are:" $*
32 #$0 is ignored
33
34 if [[ $HOSTNAME == *hpcspot* ]]
35   then
36     HOST="hpcspot"
37   else
38     HOST="STANDART_CentOs6" #CentOs6 default
39 fi
40 echo "HOST" $HOST
41
42 #we need to licence for mg-hybrid.exe
43 #for example, have to be set
44 #if [ $HOST == "hpcspot" ]
45 #  then
46 #    #env openmpi centos6.5 hpcspot.com
47 #    export DISTENE_LICENSE_FILE="Use global envvar: DLIM8VAR"
48 #    export DLIM8VAR="dlim8 1:1:29030@10.27.51.1/002590c96d98::8fbdc02cde090ca0369ad028e839065b97709e3c33e640eb6a3c2c7e40fe3985"
49 #  else
50 #    export DISTENE_LICENSE_FILE="Use global envvar: DLIM8VAR"
51 #    export DLIM8VAR="dlim8 1:1:29030@132.166.151.49/84c419b8::87af196ab2a936ab31363624539bff8096fbe1f3c83028c8f6b399b0a904ef85"
52 #fi
53
54 echo "mg-hybrid.bash assume licence file set:"
55 env | grep DLIM
56
57 findOutFile $*
58 echo "result output File is:" $resFindOutFile
59
60 #mg-hybrid.exe_Linux_64_avril2014 --help
61 #mg-hybrid.exe_Linux_64_avril2014 $*
62 mg-hybrid.exe_Linux_64_juillet2014 $*
63
64 #to EZ and direct debug visualization (with gui salome load script createGroupsOnEntitiesFromGMFFile.py)
65 cp -f $resFindOutFile /tmp/tmp.mesh
66
67 #ldd `which mg-hybrid.exe_Linux_64_avril2014`
68 #       linux-vdso.so.1 =>  (0x00007fff3bfff000)
69 #       libpthread.so.0 => /lib64/libpthread.so.0 (0x000000358b400000)
70 #       libm.so.6 => /lib64/libm.so.6 (0x000000358a800000)
71 #       libc.so.6 => /lib64/libc.so.6 (0x000000358ac00000)
72 #       /lib64/ld-linux-x86-64.so.2 (0x000000358a400000)