TDF, GIIS STEPS on the HP ;GIIE STEP on the CRAY submitted from the HP

#                                                                               
set -x                                                                          
#                                                                               
########################################################################        
# directory that 2s will run in, and 2e output will come back to                
########################################################################        
#                                                                               
cd /geod?/userid/????                                                           
#                                                                               
########################################################################        
# get tdf supporting data sets                                                  
########################################################################        
#                                                                               
cp /geod?/userid/tdf.ftn05 ftn05                                                
cp /geod?/userid/tdf.ftn40 ftn40                                                
cp /geod4/srowton/geodyn/support/gdntable.data ftn02                            
cp /geod4/srowton/geodyn/bench/FILIST.DF FILIST.DF                              
#                                                                               
########################################################################        
# run TDF      VERSION YYMM                                                     
########################################################################        
#                                                                               
/geod4/srowton/geodyn/tdf???? > tdfout                                          
cat tdfout                                                                      
#                                                                               
########################################################################        
# move ftn41 to ftn40 for G2S step                                              
########################################################################        
#                                                                               
mv ftn41 ft40                                                                   
ls -al                                                                          
#                                                                               
########################################################################        
# remove unnecessary files                                                      
########################################################################        
#                                                                               
rm -f ftn*                                                                      
mv ft40 ftn40                                                                   
#                                                                               
########################################################################        
# get g2s supporting data sets                                                  
#                                                                               
# G2S setup on ftn05                                                            
# Station geodetics file on ftn16 if necessary                                  
# Simulated data control file on ftn17 if necessary                             
# Gravity field on ftn12 if necessary                                           
# JPL ephemeris on ftn01                                                        
# BIH tables on ftn02                                                           
########################################################################
#                                                                               
cp /geod?/userid/iis.ftn05 ftn05                                                
cp /geod?/userid/iis.ftn16 ftn16                                                
cp /geod?/userid/iis.ftn12 ftn12                                                
cp /geod?/userid/iis.ftn17 ftn17                                                
cp /geod4/srowton/geodyn/support/ephem.data ftn01                               
cp /geod4/srowton/geodyn/support/gdntable.data ftn02                            
chmod 666 ftn01                                                                 
chmod 666 ftn02                                                                 
ls -al                                                                          
#                                                                               
########################################################################        
# run GIIS    VERSION YYMM                                                      
########################################################################        
#                                                                               
/geod4/srowton/geodyn/giis???? > iis.out                                        
cat iis.out                                                                     
#                                                                               
########################################################################        
# move output files for IIE step                                                
########################################################################        
#                                                                               
mv ftn41 ft12                                                                   
#                                                                               
mv ftn11 ft11                                                                   
#                                                                               
########################################################################        
# remove unnecessary files                                                      
########################################################################        
#                                                                               
rm -f ftn*                                                                      
#                                                                               
########################################################################        
# THE FOLLOWING IS THE 2E JOB THAT IS BATCH SUBMITTED ON CHARNEY                
########################################################################        
#                                                                               
cat > run2e <<EOF**                                                             
#                                                                               
#  2e job that runs on the CRAY                                                 
#                                                                               
#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 2e in                                    
# backslash on $TMPDIR is needed so the HP variable is not substituted          
########################################################################        
#                                                                               
cd \$TMPDIR                                                                     
set -x                                                                          
ja
#                                                                               
########################################################################        
# FTP INTERFACE AND DATA FILES FROM THE HP (GEODESY2 IN THIS CASE)              
# other files needed may be ftp'ed over in this ftp session                     
########################################################################        
#                                                                               
ftp geodesy2 << EOF!!                                                           
binary                                                                          
cd /geod?/userid/????                                                           
get ft.11 fort.11                                                               
get ft.12 fort.12                                                               
EOF!!                                                                           
#                                                                               
########################################################################        
# PROPERLY ASSIGN HP INTERFACE AND DATA FILES IF HP IEEE BINARY                 
########################################################################        
#                                                                               
assign -F f77 u:11                                                              
assign -F f77 u:12                                                              
#                                                                               
########################################################################        
# run GIIE    VERSION YYMM                                                      
########################################################################        
#                                                                               
/u2/zmscr/geodyn/giie???? > iieout                                              
#                                                                               
########################################################################        
# FTP BACK TO GEODESY2 ANY FORMATTED FILES REQUIRED FROM THE 2E RUN             
########################################################################        
#                                                                               
ftp geodesy2 << EOF!!!                                                          
cd /geod?/userid/????                                                           
put fort.8                                                                      
put fort.10                                                                     
put iieout                                                                      
EOF!!!                                                                          
#                                                                               
########################################################################        
# FTP BACK TO GEODESY2 ANY BINARY FILES REQUIRED FROM THE 2E RUN                
########################################################################        
#                                                                               
ftp geodesy2 << EOF!!!                                                          
cd /geod?/userid/????                                                           
binary                                                                          
put fort.8                                                                      
put fort.10                                                                     
EOF!!!                                                                          
ls -al                                                                          
ja -scft                                                                        
rm *                                                                            
EOF**
#                                                                               
########################################################################        
# SUBMIT 2E BATCH JOB TO CHARNEY                                                
########################################################################        
#                                                                               
csub -n run2e


Patrick Dahiroc
1998-09-10