1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/verification/tutorial_dic_adjoffline/code_ad/ad_optfile.local,v 1.2 2013/04/04 12:29:28 heimbach Exp $ |
4 |
# $Name: $ |
5 |
|
6 |
# This AD option-file contains the settings for the adjoint and |
7 |
# tangent-linear compilers to use for this particular setup. |
8 |
# It is similar to the default AD-optfile except |
9 |
# for the list of controls (DIFF_FLAGS) |
10 |
|
11 |
# TAMC=/data43/ralf/tamc/tamc |
12 |
# TAF=~fastopt/bin/taf |
13 |
# STAF=staf |
14 |
|
15 |
TAF=staf |
16 |
TAMC=tamc |
17 |
|
18 |
AD_TAMC_FLAGS="-reverse -i4 -r4 -l tamc_ad.log $AD_TAMC_FLAGS" |
19 |
AD_TAF_FLAGS="-reverse -i4 -r4 -l taf_ad.log $AD_TAF_FLAGS" |
20 |
FTL_TAMC_FLAGS="-forward -i4 -r4 -l tamc_ftl.log $FTL_TAMC_FLAGS" |
21 |
FTL_TAF_FLAGS="-forward -i4 -r4 -l taf_ftl.log $FTL_TAF_FLAGS" |
22 |
SVD_TAMC_FLAGS="-reverse -forward -pure -i4 -r4 -l tamc_svd.log $SVD_TAMC_FLAGS" |
23 |
SVD_TAF_FLAGS="-reverse -forward -pure -i4 -r4 -l taf_svd.log $SVD_TAF_FLAGS" |
24 |
|
25 |
DIFF_FLAGS="-toplevel 'the_main_loop' \ |
26 |
-input 'xx_dic \ |
27 |
xx_gen2d_dummy' \ |
28 |
-output 'fc' " |
29 |
|
30 |
AD_TAMC_FLAGS="$AD_TAMC_FLAGS $DIFF_FLAGS" |
31 |
AD_TAF_FLAGS="$AD_TAF_FLAGS $DIFF_FLAGS" |
32 |
|
33 |
FTL_TAMC_FLAGS="$FTL_TAMC_FLAGS $DIFF_FLAGS" |
34 |
FTL_TAF_FLAGS="$FTL_TAF_FLAGS $DIFF_FLAGS" |
35 |
|
36 |
SVD_TAMC_FLAGS="$SVD_TAMC_FLAGS $DIFF_FLAGS" |
37 |
SVD_TAF_FLAGS="$SVD_TAF_FLAGS $DIFF_FLAGS" |