/[MITgcm]/MITgcm/tools/genmake2
ViewVC logotype

Diff of /MITgcm/tools/genmake2

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

revision 1.13.2.3 by edhill, Mon Oct 20 21:56:24 2003 UTC revision 1.13.2.4 by edhill, Tue Oct 21 02:55:38 2003 UTC
# Line 1066  s/call adwrite(/call adwrite( mythid,\\ Line 1066  s/call adwrite(/call adwrite( mythid,\\
1066       \&           /g       \&           /g
1067    
1068  EOF  EOF
 chmod +x adjoint_sed  
   
1069    
1070  echo  echo
1071  echo "===  Creating the Makefile  ==="  echo "===  Creating the Makefile  ==="
# Line 1328  echo >> $MAKEFILE Line 1326  echo >> $MAKEFILE
1326    
1327  cat >>$MAKEFILE <<EOF  cat >>$MAKEFILE <<EOF
1328    
 # AD_FILES_SMALLF = \$(AD_FILES:.F=.f)  
   
 EXE_AD_TAMC    = ${EXECUTABLE}_ad_tamc  
 \$(EXE_AD_TAMC): \$(OBJFILES)  
1329    
1330  ad_input_code.f: \$(F77FILES)  ad_input_code.f: \$(F77FILES)
1331          @make \$(AD_FLOW_FILES)          @make \$(AD_FLOW_FILES)
1332          cat \$(AD_FLOW_FILES) \$(AD_FILES) > ad_input_code.f          cat \$(AD_FLOW_FILES) \$(AD_FILES) > ad_input_code.f
1333    
1334    
1335  ad_taf_output.f: ad_input_code.f  ad_taf_output.f: ad_input_code.f
1336          \$(TAF) \$(AD_TAF_FLAGS) ad_input_code.f          \$(TAF) \$(AD_TAF_FLAGS) ad_input_code.f
1337          cat ad_input_code_ad.f | sed -f adjoint_sed > ad_taf_output.f          cat ad_input_code_ad.f | sed -f adjoint_sed > ad_taf_output.f
# Line 1344  ad_taf_output.f: ad_input_code.f Line 1339  ad_taf_output.f: ad_input_code.f
1339  ad_taf: ad_taf_output.o \$(OBJFILES)  ad_taf: ad_taf_output.o \$(OBJFILES)
1340          \$(LINK) -o ${EXECUTABLE} \$(FFLAGS) \$(FOPTIM) \$(OBJFILES) ad_taf_output.o \$(LIBS)          \$(LINK) -o ${EXECUTABLE} \$(FFLAGS) \$(FOPTIM) \$(OBJFILES) ad_taf_output.o \$(LIBS)
1341    
 EXE_FTL_TAMC   = ${EXECUTABLE}_ftl_tamc  
 EXE_FTL_TAF    = ${EXECUTABLE}_ftl_taf  
1342    
1343  EXE_SVD_TAF    = ${EXECUTABLE}_ftl_taf  ad_tamc_output.f: ad_input_code.f
1344  EXE_BOTH_TAF   = ${EXECUTABLE}_ftl_taf          \$(TAMC) \$(AD_TAMC_FLAGS) ad_input_code.f
1345            cat ad_input_code_ad.f | sed -f adjoint_sed > ad_taf_output.f
1346    
1347    ad_tamc: ad_tamc_output.o \$(OBJFILES)
1348            \$(LINK) -o ${EXECUTABLE} \$(FFLAGS) \$(FOPTIM) \$(OBJFILES) ad_tamc_output.o \$(LIBS)
1349    
1350    
1351    flt_taf_output.f: ad_input_code.f
1352            \$(TAF) \$(FTL_TAF_FLAGS) ad_input_code.f
1353            cat ad_input_code_ad.f | sed -f adjoint_sed > flt_taf_output.f
1354    
1355    flt_taf: flt_taf_output.o \$(OBJFILES)
1356            \$(LINK) -o ${EXECUTABLE} \$(FFLAGS) \$(FOPTIM) \$(OBJFILES) flt_taf_output.o \$(LIBS)
1357    
1358    
1359    
1360  #=========================================  #=========================================
1361    

Legend:
Removed from v.1.13.2.3  
changed lines
  Added in v.1.13.2.4

  ViewVC Help
Powered by ViewVC 1.1.22