Changeset 1598


Ignore:
Timestamp:
May 29, 2015 6:45:40 AM (9 years ago)
Author:
raasch
Message:

bugfix for creating hostfile in openmp-mode if run on one node

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/mrun

    r1550 r1598  
    2222# Current revisions:
    2323# ------------------
    24 #
     24# bugfix for creating hostfile in openmp-mode if run on one node
    2525#
    2626# Former revisions:
     
    34853485                   cp  $hostfile  hostfile
    34863486                   (( ii = $numprocs / $threads_per_task ))
     3487                   [[ $ii = 0 ]]  &&  (( ii = 1 ))
    34873488                else
    34883489                   (( ii = 1 ))
     
    34923493                      (( ii = ii + 1 ))
    34933494                   done
     3495                   if (( $numprocs / $threads_per_task == 0 ))
     3496                   then
     3497                      echo  $localhost_realname  >>  hostfile
     3498                   fi
    34943499                fi
    34953500                eval zeile=\"`head -n $ii  hostfile`\"
     
    34983503
    34993504             (( ii = $numprocs / $threads_per_task ))
     3505             [[ $ii = 0 ]]  &&  (( ii = 1 ))
    35003506             export OMP_NUM_THREADS=$threads_per_task
    35013507
Note: See TracChangeset for help on using the changeset viewer.