Index: palm/trunk/SCRIPTS/subjob
===================================================================
--- palm/trunk/SCRIPTS/subjob	(revision 179)
+++ palm/trunk/SCRIPTS/subjob	(revision 181)
@@ -160,4 +160,5 @@
      (breg*-en0|berni*-en0)  local_addres=130.73.230.10;  local_host=ibmb;;
      (breva)                 local_addres=130.75.105.98;  local_host=lcmuk;;
+     (b01*)                  local_addres=130.73.232.102; local_host=lcsgih;;
      (compute-*.local)       local_addres=172.20.4.2;     local_host=lcfimm;;
      (cs*)                   local_addres=136.172.44.131; local_host=nech;;
@@ -172,5 +173,5 @@
      (hexagon.bccs.uib.no)   local_addres=129.177.20.113; local_host=lcxt4;;
      (hreg*-en0|hanni*-en0)  local_addres=130.75.4.10;    local_host=ibmh;;
-     (h01*)                  local_addres=10.152.0.7;     local_host=lcsgih;;
+     (h01*)                  local_addres=130.75.4.102;   local_host=lcsgih;;
      (irifi)                 local_addres=130.75.105.104; local_host=lcmuk;;
      (levanto)               local_addres=130.75.105.45;  local_host=lcmuk;;
@@ -182,7 +183,8 @@
      (quanero)               local_addres=130.75.105.107; local_host=lcmuk;;
      (scirocco)              local_addres=172.20.25.41;   local_host=lcmuk;;
-     (service100)            local_addres=10.152.0.7;     local_host=lcsgih;;
+     (service100)            local_addres=130.75.4.102;   local_host=lcsgih;;
      (sun1|sun2)             local_addres=130.75.6.1;     local_host=unics;;
-     (r1*)                   local_addres=10.152.0.7;     local_host=lcsgih;;
+     (r1*)                   local_addres=130.75.4.102;   local_host=lcsgih;;
+     (r2*)                   local_addres=130.73.232.102; local_host=lcsgih;;
      (tgg*)                  local_addres=172.17.75.161;  local_host=lctit;;
      (vorias)                local_addres=172.20.25.43;   local_host=lcmuk;;
@@ -310,5 +312,6 @@
         (ibmy)   queue=parallel; remote_addres=165.132.26.58; submcom=/usr/lpp/LoadL/full/bin/llsubmit;;
 	(lcfimm) remote_addres=172.20.4.2; submcom=/opt/torque/bin/qsub;;
-        (lcsgih) remote_addres=10.152.0.7; submcom=/opt/moab/bin/msub;;
+        (lcsgib) remote_addres=130.73.232.102; submcom=/opt/torque/bin/qsub;;
+        (lcsgih) remote_addres=130.75.4.102; submcom=/opt/torque/bin/qsub;;
         (lctit)  queue=lctit; remote_addres=172.17.75.161; submcom=/n1ge/TITECH_GRID/tools/bin/n1ge;;
         (lcxt4)	 remote_addres=129.177.20.113; submcom=/opt/torque/2.3.0/bin/qsub;;
@@ -666,5 +669,5 @@
     fi
 
- elif [[ $remote_host = lcsgih ]]
+ elif [[ $remote_host = lcsgih  ||  $remote_host = lcsgib ]]
  then
 
@@ -672,9 +675,10 @@
     then
        cat > $job_to_send << %%END%%
-#PBS -S /bin/bash
+#!/bin/bash
 #PBS -N $job_name
 #PBS -l walltime=$timestring
-#PBS -l nodes=$nodes:ppn=${tasks_per_node}:xe
-#PBS -l naccesspolicy=singlejob
+#PBS -l nodes=$nodes:ppn=${tasks_per_node}
+#PBS -l feature=$sgi_feature
+#PBS -l naccesspolicy=$node_usage
 #PBS -o $remote_dayfile
 #PBS -j oe
@@ -682,8 +686,8 @@
 . /usr/share/modules/init/bash
 module load mvapich/mvapich-0.9.9-intel
+# module load mvapich2/1.2-intel
 module load netcdf
-export LD_LIBRARY_PATH=/sw/intel/fce/10.1.015/lib:/sw/dataformats/netcdf/3.6.2/lib:$LD_LIBRARY_PATH
-
-echo ld_library_path=$LD_LIBRARY_PATH
+export LD_LIBRARY_PATH=/sw/intel/cce/10.1.015/lib:/sw/intel/fce/10.1.015/lib:/sw/dataformats/netcdf/3.6.2/lib:\$LD_LIBRARY_PATH
+echo ld_library_path=\$LD_LIBRARY_PATH
 
 %%END%%
@@ -860,5 +864,5 @@
     echo "trap '"                               >>  $job_to_send
     echo "set +vx"                              >>  $job_to_send
-    if [[ $(echo $remote_host | cut -c1-3) = ibm  ||  $(echo $remote_host | cut -c1-3) = nec  ||  $remote_host = lctit ]]
+    if [[ $(echo $remote_host | cut -c1-3) = ibm  ||  $(echo $remote_host | cut -c1-5) = lcsgi  ||  $(echo $remote_host | cut -c1-3) = nec  ||  $remote_host = lctit ]]
     then
        if [[ $remote_host = ibmb  ||  $remote_host = ibmh ]]
@@ -926,4 +930,22 @@
           echo "set -x"                            >>  $job_to_send
           echo "batch_scp  -d  -w 10  -u $local_user $local_addres  $remote_dayfile  \"$job_catalog\"  $local_dayfile"  >>  $job_to_send
+          echo "[[ \"\$for_subjob_to_do\" != \"\" ]]  &&  eval \$for_subjob_to_do"  >>  $job_to_send
+          echo "%%END%%"                           >>  $job_to_send
+
+       elif [[ $(echo $remote_host | cut -c1-5) = lcsgi ]]
+       then
+          echo "cat > scpjob.$kennung << %%END%%"  >>  $job_to_send
+          echo "#!/bin/bash"                             >>  $job_to_send
+          echo "#PBS -N job_protocol_transfer"           >>  $job_to_send
+          echo "#PBS -l walltime=00:02:00"               >>  $job_to_send
+          echo "#PBS -l nodes=1:ppn=1"                   >>  $job_to_send
+          echo "#PBS -l feature=xe"                      >>  $job_to_send
+          echo "#PBS -l naccesspolicy=shared"            >>  $job_to_send
+          echo "#PBS -o \$HOME/job_queue/last_job_transfer_protocol"      >>  $job_to_send
+          echo "#PBS -j oe"                        >>  $job_to_send
+          echo " "                                 >>  $job_to_send
+          echo ". /usr/share/modules/init/bash"    >>  $job_to_send
+          echo "set -x"                            >>  $job_to_send
+          echo "batch_scp  -d  -w 10  -u $local_user $local_addres  ${job_catalog}/$remote_dayfile  \"$job_catalog\"  $local_dayfile"  >>  $job_to_send
           echo "[[ \"\$for_subjob_to_do\" != \"\" ]]  &&  eval \$for_subjob_to_do"  >>  $job_to_send
           echo "%%END%%"                           >>  $job_to_send
@@ -968,4 +990,8 @@
        then
           echo "llsubmit  scpjob.$kennung"      >>  $job_to_send
+       elif [[ $(echo $remote_host | cut -c1-5) = lcsgi ]]
+       then
+          echo "chmod  u+x  scpjob.$kennung"    >>  $job_to_send
+          echo "msub  scpjob.$kennung"          >>  $job_to_send
        elif [[ $remote_host = lctit ]]
        then
