1364 |
|
|
1365 |
cat >>$MAKEFILE <<EOF |
cat >>$MAKEFILE <<EOF |
1366 |
|
|
|
AD_CONFIG.h: |
|
|
cat AD_CONFIG.template > AD_CONFIG.h |
|
|
|
|
1367 |
# ... AD ... |
# ... AD ... |
1368 |
ad: ad_taf |
adall: ad_taf |
1369 |
ad_taf_f: ad_taf_output.f |
adtaf: ad_taf_output.f |
1370 |
ad_tamc_f: ad_tamc_output.f |
adtamc: ad_tamc_output.f |
1371 |
|
|
1372 |
ad_input_code.f: \$(SRCFILES) |
ad_input_code.f: \$(SRCFILES) \$(HEADERFILES) |
1373 |
cat ad_config.template > AD_CONFIG.h |
cmp ad_config.template AD_CONFIG.h || cat ad_config.template > AD_CONFIG.h |
1374 |
@make \$(F77FILES) |
@make \$(F77FILES) |
1375 |
@make \$(AD_FLOW_FILES) |
@make \$(AD_FLOW_FILES) |
1376 |
cat \$(AD_FLOW_FILES) \$(AD_FILES) > ad_input_code.f |
cat \$(AD_FLOW_FILES) \$(AD_FILES) > ad_input_code.f |
1391 |
|
|
1392 |
|
|
1393 |
# ... FTL ... |
# ... FTL ... |
1394 |
ftl: ftl_taf |
ftlall: ftl_taf |
1395 |
ftl_taf_f: ftl_taf_output.f |
ftltaf: ftl_taf_output.f |
1396 |
ftl_tamc_f: ftl_tamc_output.f |
ftltamc: ftl_tamc_output.f |
1397 |
|
|
1398 |
ftl_input_code.f: \$(SRCFILES) |
ftl_input_code.f: \$(SRCFILES) |
1399 |
cat ftl_config.template > AD_CONFIG.h |
cmp ftl_config.template AD_CONFIG.h || cat ftl_config.template > AD_CONFIG.h |
1400 |
|
@make \$(F77FILES) |
1401 |
@make \$(AD_FLOW_FILES) |
@make \$(AD_FLOW_FILES) |
1402 |
cat \$(AD_FLOW_FILES) \$(AD_FILES) > ftl_input_code.f |
cat \$(AD_FLOW_FILES) \$(AD_FILES) > ftl_input_code.f |
1403 |
|
|
1421 |
svd_taf_f: svd_taf_output.f |
svd_taf_f: svd_taf_output.f |
1422 |
|
|
1423 |
svd_input_code.f: \$(SRCFILES) |
svd_input_code.f: \$(SRCFILES) |
1424 |
cat svd_config.template > AD_CONFIG.h |
cmp svd_config.template AD_CONFIG.h || cat svd_config.template > AD_CONFIG.h |
1425 |
|
@make \$(F77FILES) |
1426 |
@make \$(AD_FLOW_FILES) |
@make \$(AD_FLOW_FILES) |
1427 |
cat \$(AD_FLOW_FILES) \$(AD_FILES) > svd_input_code.f |
cat \$(AD_FLOW_FILES) \$(AD_FILES) > svd_input_code.f |
1428 |
|
|
1473 |
printf "\n=== Done ===\n" |
printf "\n=== Done ===\n" |
1474 |
|
|
1475 |
# Write the "template" files for the adjoint builds |
# Write the "template" files for the adjoint builds |
1476 |
cat >>AD_CONFIG.template <<EOF |
cat >AD_CONFIG.template <<EOF |
1477 |
C WARNING: This file is automatically generated by genmake2 and |
C WARNING: This file is automatically generated by genmake2 and |
1478 |
C used by the Makefile rules. Please DO NOT EDIT this file |
C used by the Makefile rules. Please DO NOT EDIT this file |
1479 |
C unless you are CERTAIN that you know what you're doing. |
C unless you are CERTAIN that you know what you are doing. |
1480 |
|
|
1481 |
#undef ALLOW_ADJOINT_RUN |
#undef ALLOW_ADJOINT_RUN |
1482 |
#undef ALLOW_TANGENTLINEAR_RUN |
#undef ALLOW_TANGENTLINEAR_RUN |
1483 |
#undef ALLOW_ECCO_OPTIMIZATION |
#undef ALLOW_ECCO_OPTIMIZATION |
1484 |
EOF |
EOF |
1485 |
cat >>ad_config.template <<EOF |
cat >ad_config.template <<EOF |
1486 |
C WARNING: This file is automatically generated by genmake2 and |
C WARNING: This file is automatically generated by genmake2 and |
1487 |
C used by the Makefile rules. Please DO NOT EDIT this file |
C used by the Makefile rules. Please DO NOT EDIT this file |
1488 |
C unless you are CERTAIN that you know what you're doing. |
C unless you are CERTAIN that you know what you are doing. |
1489 |
|
|
1490 |
#undef ALLOW_ADJOINT_RUN |
#define ALLOW_ADJOINT_RUN |
1491 |
#undef ALLOW_TANGENTLINEAR_RUN |
#undef ALLOW_TANGENTLINEAR_RUN |
1492 |
#undef ALLOW_ECCO_OPTIMIZATION |
#undef ALLOW_ECCO_OPTIMIZATION |
1493 |
EOF |
EOF |
1494 |
cat >>ftl_config.template <<EOF |
cat >ftl_config.template <<EOF |
1495 |
C WARNING: This file is automatically generated by genmake2 and |
C WARNING: This file is automatically generated by genmake2 and |
1496 |
C used by the Makefile rules. Please DO NOT EDIT this file |
C used by the Makefile rules. Please DO NOT EDIT this file |
1497 |
C unless you are CERTAIN that you know what you're doing. |
C unless you are CERTAIN that you know what you are doing. |
1498 |
|
|
1499 |
#undef ALLOW_ADJOINT_RUN |
#undef ALLOW_ADJOINT_RUN |
1500 |
#undef ALLOW_TANGENTLINEAR_RUN |
#define ALLOW_TANGENTLINEAR_RUN |
1501 |
#undef ALLOW_ECCO_OPTIMIZATION |
#undef ALLOW_ECCO_OPTIMIZATION |
1502 |
EOF |
EOF |
1503 |
cat >>svd_config.template <<EOF |
cat >svd_config.template <<EOF |
1504 |
C WARNING: This file is automatically generated by genmake2 and |
C WARNING: This file is automatically generated by genmake2 and |
1505 |
C used by the Makefile rules. Please DO NOT EDIT this file |
C used by the Makefile rules. Please DO NOT EDIT this file |
1506 |
C unless you are CERTAIN that you know what you're doing. |
C unless you are CERTAIN that you know what you are doing. |
1507 |
|
|
1508 |
#undef ALLOW_ADJOINT_RUN |
#undef ALLOW_ADJOINT_RUN |
1509 |
#undef ALLOW_TANGENTLINEAR_RUN |
#undef ALLOW_TANGENTLINEAR_RUN |