#!/bin/csh -f
if ( $#argv != 2) then
  echo "Usage: $0 <resolution> <even number of PEs>"
  exit 1
endif
set echo on
# Configurations for 64 PE run
# Set the initial and incremental number of send buffers
# These are structures which hold info/data until send completes
setenv PVM_DATA_BUFFERS 64+32

# Set number of entries in the shared memory pool
# SM_POOL is where incoming messages go to
setenv PVM_SM_POOL 256

# Set the max number of bytes in a message (i.e., data passed w/ message)  
setenv PVM_DATA_MAX 28000

# Set the initial and incremental data block size.  Data blocks get
# associated with a data buffer for transfer too big to fit in message. 
setenv PVM_MAX_PACK 4096+4096

if ( ! -e SEP1.$1.0596 ) then
  echo file SEP1.$1.0596 does not exist
  exit 1
endif
if ( ! -e STR-sst.$1.0596 ) then
  echo file STR-sst.$1.0596 does not exist
  exit 1
endif
if ( ! -e tibds.$1.0596 ) then
  echo file tibds.$1.0596 does not exist
  exit 1
endif
if ( ! -e ozn.$1.0596 ) then
  echo file ozn.$1.0596 does not exist
  exit 1
endif
env FILENV=afile assign -F cos -N cray SEP1.$1.0596
env FILENV=afile assign -F cos -N cray STR-sst.$1.0596
env FILENV=afile assign -F cos -N cray tibds.$1.0596
env FILENV=afile assign -F cos -N cray ozn.$1.0596

env FILENV=afile assign -F cos -N cray u:20

env FILENV=afile ccm3bin -npes $2
