Changeset 352 for palm


Ignore:
Timestamp:
Jul 8, 2009 4:26:02 PM (15 years ago)
Author:
raasch
Message:

+option -e in subjob

Location:
palm/trunk/SCRIPTS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/mrun

    r343 r352  
    183183     # 21/04/09 - Siggi  - adjustments for new IBM at DKRZ, which is now ibmh
    184184     # 24/06/09 - BjornM - adjustments for coupled/precursor runs on ibmy
     185     # 08/07/09 - Siggi  - default value for email_notification is none,
     186     #                     option -e added to subjob
    185187
    186188 
     
    214216 do_stageout=true
    215217 do_trace=false
    216  email_notification=""
     218 email_notification="none"
    217219 exclude=""
    218220 executable=""
     
    40814083   
    40824084       # EVTL. EMAIL-BENACHRICHTIGUNG UEBER ABGESCHLOSSENEN LAUF
    4083     if [[ "$email_notification" != "" ]]
     4085    if [[ "$email_notification" != "none" ]]
    40844086    then
    40854087
     
    43214323    fi
    43224324
    4323     subjob  $job_on_file  -h $host  -u $remote_username -g $group_number -q $queue  -m $memory  -N $node_usage -t $cpumax  $XOPT  $TOPT  $OOPT  -n $fname  -v  -c $job_catalog  $jobfile
     4325    subjob  $job_on_file  -h $host  -u $remote_username -g $group_number -q $queue  -m $memory  -N $node_usage -t $cpumax  $XOPT  $TOPT  $OOPT  -n $fname  -v  -c $job_catalog  -e $email_notification  $jobfile
    43244326    rm -rf  $jobfile
    43254327
  • palm/trunk/SCRIPTS/subjob

    r346 r352  
    100100     # 18/05/09 - Siggi - Settings for serial jobs on lcsgi changed
    101101     # 24/06/09 - BjornM- adjustments for lcxt4 (loading modules manually)
     102     # 08/07/09 - Siggi - option -e added (email notification on lcsgih/b)
    102103
    103104
    104105    # VARIABLENVEREINBARUNGEN + DEFAULTWERTE
    105  delete_dayfile=false
     106 delete_dayfile=false
     107 email_notification=none
    106108 group_number=none
    107109 locat=normal
     
    214216
    215217    # PROZEDUROPTIONEN EINLESEN
    216  while  getopts  :c:dDg:h:m:n:N:O:q:t:T:u:vX:  option
     218 while  getopts  :c:dDe:g:h:m:n:N:O:q:t:T:u:vX:  option
    217219 do
    218220   case  $option  in
     
    220222       (d)   delete_dayfile=true;;
    221223       (D)   no_submit=true;;
     224       (e)   email_notification=$OPTARG;;
    222225       (g)   group_number=$OPTARG;;
    223226       (h)   remote_host=$OPTARG;;
     
    710713    fi
    711714
     715    if [[ $email_notification = none ]]
     716    then
     717       email_directive=""
     718    else
     719       email_directive="#PBS -M $email_notification"
     720    fi
     721
    712722    if [[ $numprocs != 0 ]]
    713723    then
     
    722732#PBS -j oe
    723733$queue_directive
     734$email_directive
    724735
    725736. /usr/share/modules/init/bash
Note: See TracChangeset for help on using the changeset viewer.