GIIS STEP on the CRAY

#                                                                               
#QSUB -A sponsorcode                                                            
#QSUB -q short -eo                                                              
#QSUB -lM 7MW -lm 7MW                                                           
#QSUB -lT 600 -lt 600                                                           
set -x                                                                          
#                                                                               
########################################################################        
# move to a temporary directory                                                 
# all the files created on the cray during this job will be removed             
# after the end of the run                                                      
########################################################################        
#                                                                               
cd $TMPDIR                                                                      
#                                                                               
########################################################################        
# remove any previously created interface and data files                        
########################################################################        
#                                                                               
rm -f fort.11                                                                   
rm -f fort.12                                                                   
########################################################################        
# get 2s supporting data sets                                                   
# JPL ephemeris on fort.1                                                       
# BIH and Flux tables on fort.2                                                 
########################################################################        
#                                                                               
cp /u2/zmscr/geodyn/support/ephmbin.data fort.1                                 
cp /u2/zmscr/geodyn/support/gdntable.data fort.2                                
#                                                                               
########################################################################        
#  get setup                                                                    
#  unit 5 on IBM is fort.4 on CRAY                                              
########################################################################        
#                                                                               
cp /.../userid/setup fort.4                                                     
#                                                                               
########################################################################        
#  move fort.41 into fort.40 if tdf was run in a previous step                  
#  or copy from where input is stored if not                                    
########################################################################        
#                                                                               
# mv fort.41 fort.40                                                            
cp /../userid/input.data fort.40                                                
#                                                                               
########################################################################        
#  get gravity field if necessary                                               
########################################################################        
#                                                                               
fetch fort.12 -me_ -t'dsn=userid.gravity.field,disp=shr'                        
#                                                                               
########################################################################        
#  get station geodetics file if necessary                                      
########################################################################        
#                                                                               
fetch fort.16 -me_ -t'dsn=userid.station.data,disp=shr'                         
#                                                                               
########################################################################        
#  run GIIS    VERSION YYMM                                                     
########################################################################        
#                                                                               
ja                                                                              
/u2/zmscr/geodyn/giisyymm                                                       
ja -scft                                                                        
#                                                                               
########################################################################        
# remove unnecessary files                                                      
########################################################################        
#                                                                               
# ephemeris file                                                                
rm -f fort.1                                                                    
# BIH and Flux file                                                             
rm -f fort.2                                                                    
# input file                                                                    
rm -f fort.4                                                                    
# gravity field file                                                            
rm -f fort.12                                                                   
# station geodetics                                                             
rm -f fort.16                                                                   
# simulated data shceduling information                                         
rm -f fort.17                                                                   
# ephemeris scratch file                                                        
rm -f fort.30                                                                   
# observation directory                                                         
rm -f fort.42                                                                   
# pass by pass bias                                                             
rm -f fort.43                                                                   
# copy of fort.4                                                                
rm -f fort.50                                                                   
# work files                                                                    
rm -f fort.52                                                                   
rm -f fort.53                                                                   
# debug output                                                                  
rm -f fort.90                                                                   
rm -f fort.91                                                                   
#                                                                               
########################################################################        
# move output data file into fort.12 if a IIE step follows or                   
# catalog the file on the Cray or dispose to the IBM                            
########################################################################        
#                                                                               
mv fort.41 fort.12                                                              
# cp fort.41 /../userid/output.data                                             
# THE CHARACTER \ IS A CONTINUATION CHARACTER.  HOWEVER, THIS                   
# CHARACTER HAS THE WRONG HEX REPRESENTATION FOR THE CRAY                       
# WHEN TYPING IN THIS CHARACTER FOR THE FIRST TIME ON THE IBM YOU MUST          
# CHANGE ITS HEX REPRESENTATION.  TO DO THIS DO A GLOBAL CHANGE                 
# FROM '\' TO X'E0'.                                                            
#                                                                               
#dispose fort.41 -me_ -fTB -t'dsn=userid.output.data,'\                         
#'dcb=(recfm=vbs,lrecl=x,blksize=15476),'\                                      
#'space=(trk,(200,100),rlse),'\                                                 
#'disp=(new,catlg,delete),unit=userda'                                          
#                                                                               
ls -l


Patrick Dahiroc
1998-09-10