/[MITgcm]/MITgcm_contrib/nesting_sannino/utils/mk_pgfile.sh
ViewVC logotype

Diff of /MITgcm_contrib/nesting_sannino/utils/mk_pgfile.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1 by jmc, Sun Nov 28 17:59:03 2010 UTC revision 1.2 by jmc, Mon Dec 6 19:23:23 2010 UTC
# Line 3  Line 3 
3  #  $Header$  #  $Header$
4  #  $Name$  #  $Name$
5    
6  # Get list of machines  #-- Get list of machines
7  #mfile=/tmp/53210.1.darwin/machines  # NODEFILE=/tmp/53210.1.darwin/machines
8  mfile=$1  # NODEFILE=$1
9  if [ -f $mfile ]; then  #-- On darwin cluster node (from qrsh session):
10   echo 'Machine file == '$mfile    JOB_ID=`qstat | sed -n '3,$ p' | grep " $USER " | awk '{print $1}'`
11      NODEFILE="/tmp/$JOB_ID.1.darwin/machines"
12      echo " JOB_ID = '$JOB_ID' ; NODEFILE = '$NODEFILE'"
13    #--
14    if [ -f $NODEFILE ]; then
15     echo 'Machine file == '$NODEFILE
16  else  else
17   echo 'No machine file '$mfile   echo 'No machine file '$NODEFILE
18   exit   exit
19  fi  fi
20  ml=( `cat $mfile` )  ml=( `cat $NODEFILE` )
21    
22  # Set root directory for run  # Set root directory for run
23  #exe_root=/scratch/jmc/nesting  #exe_root=/scratch/jmc/nesting

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.22