TDF, G2S and G2E STEPS on the CRAY submitted from the HP

#                                                                               
set -x                                                                          
#                                                                               
########################################################################        
# directory that output will come back to                                       
########################################################################        
#                                                                               
cd /geod?/userid/????                                                           
#                                                                               
cat > runtdf2s2e <<EOF**                                                        
#                                                                               
# user=????? pw=??????                                                          
#QSUB -r ????????                                                               
#QSUB -q short                                                                  
#QSUB -A g926j                                                                  
#QSUB -lM 7MW -lm 7MW                                                           
#QSUB -lT 600 -lt 600                                                           
#                                                                               
########################################################################        
# cd into a temporary directory to run in                                       
# backslash on $TMPDIR is needed so the HP variable is not substituted          
########################################################################        
#                                                                               
cd \$TMPDIR                                                                     
set -x                                                                          
ja                                                                              
#                                                                               
########################################################################        
# get TDF supporting data sets                                                  
########################################################################        
#                                                                               
# tdf input data file                                                           
#                                                                               
cp /u?/userid/???? fort.40                                                      
#                                                                               
# tdf unit 2 bih tables file                                                    
#                                                                               
cp /u2/zmscr/geodyn/support/gdntable.data fort.2                                
#                                                                               
# tdf unit 4 input card deck                                                    
#                                                                               
cp /u?/userid/???? fort.4                                                       
#                                                                               
########################################################################        
# RUN THE TDF VERSION OF THE PROGRAM                                            
########################################################################        
#                                                                               
/u2/zmscr/geodyn/tdf???? > output.tdf
#                                                                               
########################################################################        
# move tdf output                                                               
########################################################################        
#                                                                               
mv fort.41 tdf.data                                                             
rm -f fort.*                                                                    
#                                                                               
########################################################################        
# get 2s supporting data sets                                                   
########################################################################        
#                                                                               
# 2s unit 40 GEODYN II BINARY DATA FILE - OUTPUT FROM TDF                       
#                                                                               
mv tdf.data fort.40                                                             
#                                                                               
# 2s unit 4 input card deck                                                     
#                                                                               
cp /u?/userid/???? fort.4                                                       
#                                                                               
# 2s unit 2 bih tables file                                                     
#                                                                               
cp /u2/zmscr/geodyn/support/gdntable.data fort.2                                
#                                                                               
# 2s unit 12 gravity file                                                       
#                                                                               
cp /u?/userid/???? fort.12                                                      
#                                                                               
# 2s unit 1 DE200 ephemeris information                                         
#                                                                               
cp /u2/zmscr/geodyn/support/ephmbin.data fort.1                                 
#                                                                               
chmod 666 fort.1                                                                
chmod 666 fort.2                                                                
#                                                                               
########################################################################        
# RUN THE 2S VERSION OF THE PROGRAM                                             
########################################################################        
#                                                                               
/u2/zmscr/geodyn/giis???? > output.2s                                           
#                                                                               
########################################################################        
# MOVE 2S OUTPUT AND INPUT FILES TO APPROPRIATE NAMES OR ALLOCATIONS            
########################################################################        
#                                                                               
mv fort.40 ??????.???                                                           
mv fort.11 g2e.11                                                               
mv fort.41 g2e.12                                                               
rm fort*
#                                                                               
########################################################################        
# get 2e supporting data sets                                                   
########################################################################        
#                                                                               
# interface and data files                                                      
#                                                                               
cp g2e.11 fort.11                                                               
cp g2e.12 fort.12                                                               
#                                                                               
########################################################################        
# RUN THE 2E VERSION OF THE PROGRAM                                             
########################################################################        
#                                                                               
/u2/zmscr/geodyn/giie???? > output.2e                                           
#                                                                               
########################################################################        
# FTP BACK TO GEODESY2 ANY FORMATTED FILES REQUIRED                             
########################################################################        
#                                                                               
ftp geodesy2 << EOF!!!                                                          
cd /geod?/????????                                                              
put fort.8                                                                      
put fort.10                                                                     
put output.tdf                                                                  
put output.2e                                                                   
put output.2s                                                                   
EOF!!!                                                                          
#                                                                               
########################################################################        
# FTP BACK TO GEODESY2 ANY BINARY FILES REQUIRED FROM THE 2E RUN                
########################################################################        
#                                                                               
ftp geodesy2 << EOF!!!                                                          
cd /geod?/????????                                                              
binary                                                                          
put fort.8                                                                      
put fort.10                                                                     
EOF!!!                                                                          
ls -al                                                                          
ja -scft                                                                        
rm *                                                                            
EOF**                                                                           
#                                                                               
########################################################################        
# SUBMIT TDF 2S and 2E BATCH JOB TO CHARNEY                                     
########################################################################        
#                                                                               
csub -n runtdf2s2e


Patrick Dahiroc
1998-09-10