Skip to content

Commit

Permalink
add logic to include streamice_cg_solve.f in tapenade command, only w…
Browse files Browse the repository at this point in the history
…hen streamice package is used
  • Loading branch information
dngoldberg committed Apr 19, 2024
1 parent 181b04f commit 7d51dd7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tools/genmake2
Original file line number Diff line number Diff line change
Expand Up @@ -2830,6 +2830,10 @@ fi
rm -f $TMP.links/foo
if test "x$TAPENADE" != x ; then
XTRATAPFILE=
if [[ "$PACKAGES" =~ streamice ]]; then
XTRATAPFILE=" streamice_cg_solve.f"
fi
TAP_DONT_COMPILE="/dev/null"
TAP_DONT_TRANSFORM="/dev/null"
TAP_KEEP_ORIGINAL="/dev/null"
Expand Down Expand Up @@ -3674,9 +3678,9 @@ TAP_TLM_FILES: \$(AD_FILES) f95_test_mods.f90
\$(TAPENADECMD) -d -ext "${TAPTOOLS}/flow_tap" -head "the_main_loop(fc)/(xx_genarr3d_dummy, xx_genarr2d_dummy, xx_gentim2d_dummy)" \$(AD_FILES) f95_test_mods.f90
#
.PHONY: TAP_ADJ_FILES
TAP_ADJ_FILES: \$(AD_FILES) f95_test_mods.f90 streamice_cg_solve.f
TAP_ADJ_FILES: \$(AD_FILES) f95_test_mods.f90 ${XTRATAPFILE}
touch \$(AD_FILES_ADJ)
\$(TAPENADECMD) -b -ext "${TAPTOOLS}/flow_tap" -head "the_main_loop(fc)/(xx_genarr3d_dummy, xx_genarr2d_dummy, xx_gentim2d_dummy)" \$(AD_FILES) f95_test_mods.f90 streamice_cg_solve.f
\$(TAPENADECMD) -b -ext "${TAPTOOLS}/flow_tap" -head "the_main_loop(fc)/(xx_genarr3d_dummy, xx_genarr2d_dummy, xx_gentim2d_dummy)" \$(AD_FILES) f95_test_mods.f90 ${XTRATAPFILE}
tap_adj: ad_exe_target
ad_exe_target:
Expand Down

0 comments on commit 7d51dd7

Please sign in to comment.