/[MITgcm]/MITgcm/tools/adjoint_options/adjoint_diva
ViewVC logotype

Annotation of /MITgcm/tools/adjoint_options/adjoint_diva

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


Revision 1.19 - (hide annotations) (download)
Fri Jan 15 18:36:15 2016 UTC (5 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, HEAD
Changes since 1.18: +12 -1 lines
adjusted after TAF default changed on Jan 14, 2016

1 heimbach 1.1 #!/bin/bash
2     #
3 jmc 1.19 # $Header: /u/gcmpack/MITgcm/tools/adjoint_options/adjoint_diva,v 1.18 2015/10/19 19:53:41 jmc Exp $
4 heimbach 1.1 # $Name: $
5     #
6    
7 jmc 1.16 # This AD option-file contains the default settings for the divided adjoint (DIVA)
8     # and tangent-linear compilers. If you need to change these settings,
9 heimbach 1.1 # please make a separate (local) copy of this file.
10    
11     # TAMC=/data43/ralf/tamc/tamc
12     # TAF=~fastopt/bin/taf
13     # STAF=staf
14    
15     DIVA='true'
16     TAF=staf
17     TAMC=tamc
18    
19 jmc 1.13 AD_TAMC_FLAGS="-reverse -admark ad -i4 -r4 -l tamc_ad.log $AD_TAMC_FLAGS"
20     FTL_TAMC_FLAGS="-forward -ftlmark g_ -i4 -r4 -l tamc_ftl.log $FTL_TAMC_FLAGS"
21     SVD_TAMC_FLAGS="-reverse -forward -pure -i4 -r4 -l tamc_svd.log $SVD_TAMC_FLAGS"
22    
23 jmc 1.17 AD_TAF_FLAGS="-reverse -pure -i4 -r4 -intrinsic system,flush -l taf_ad.log $AD_TAF_FLAGS"
24 jmc 1.13 FTL_TAF_FLAGS="-forward -i4 -r4 -intrinsic system,flush -l taf_ftl.log $FTL_TAF_FLAGS"
25     SVD_TAF_FLAGS="-reverse -forward -pure -i4 -r4 -intrinsic system,flush -l taf_svd.log $SVD_TAF_FLAGS"
26    
27 jmc 1.19 #- after Jan 14, 2016, TAF default is "-f95"
28     if test "x$ALWAYS_USE_F90" = "x1" ; then
29     AD_TAF_FLAGS="-f90 $AD_TAF_FLAGS"
30     FTL_TAF_FLAGS="-f90 $FTL_TAF_FLAGS"
31     SVD_TAF_FLAGS="-f90 $SVD_TAF_FLAGS"
32     else
33     AD_TAF_FLAGS="-f77 $AD_TAF_FLAGS"
34     FTL_TAF_FLAGS="-f77 $FTL_TAF_FLAGS"
35     SVD_TAF_FLAGS="-f77 $SVD_TAF_FLAGS"
36     fi
37    
38 jmc 1.17 #- switch to fastopt.net TAF server (instead of default fastopt.de):
39     AD_TAF_FLAGS="-server fastopt.net $AD_TAF_FLAGS"
40     FTL_TAF_FLAGS="-server fastopt.net $FTL_TAF_FLAGS"
41     SVD_TAF_FLAGS="-server fastopt.net $SVD_TAF_FLAGS"
42    
43 jmc 1.14 #- using DIVA, we need to show some MPI code to TAF:
44 jmc 1.13 if test "x$MPI" != x ; then
45 heimbach 1.15 AD_TAF_FLAGS="$AD_TAF_FLAGS"' -mpi -include $(LOCAL_MPI_HEADERS) -I./mpi_headers/'
46 jmc 1.18 FTL_TAF_FLAGS="$FTL_TAF_FLAGS"' -mpi -include $(LOCAL_MPI_HEADERS) -I./mpi_headers/'
47 heimbach 1.15 SVD_TAF_FLAGS="$SVD_TAF_FLAGS"' -mpi -include $(LOCAL_MPI_HEADERS) -I./mpi_headers/'
48 jmc 1.13 fi
49 heimbach 1.1
50     DIFF_FLAGS="-toplevel 'the_main_loop' \
51     -input 'xx_theta_dummy \
52     xx_salt_dummy \
53     xx_tr1_dummy \
54     xx_hflux_dummy \
55     xx_sflux_dummy \
56     xx_tauu_dummy \
57     xx_tauv_dummy \
58     xx_atemp_dummy \
59     xx_aqh_dummy \
60     xx_precip_dummy \
61     xx_swflux_dummy \
62     xx_swdown_dummy \
63     xx_lwflux_dummy \
64     xx_lwdown_dummy \
65     xx_evap_dummy \
66     xx_snowprecip_dummy \
67     xx_apressure_dummy \
68     xx_runoff_dummy \
69     xx_uwind_dummy \
70     xx_vwind_dummy \
71     xx_obcsn_dummy \
72     xx_obcss_dummy \
73     xx_obcsw_dummy \
74     xx_obcse_dummy \
75     xx_sst_dummy \
76     xx_sss_dummy \
77 jmc 1.16 xx_depth_dummy \
78 heimbach 1.1 xx_diffkr_dummy \
79     xx_kapgm_dummy \
80 jmc 1.16 xx_kapredi_dummy \
81 gforget 1.3 xx_bottomdrag_dummy \
82 heimbach 1.1 xx_efluxy_dummy \
83 heimbach 1.2 xx_efluxp_dummy \
84 jmc 1.16 xx_edtaux_dummy \
85     xx_edtauy_dummy \
86 heimbach 1.2 xx_uvel_dummy \
87     xx_vvel_dummy \
88     xx_etan_dummy \
89 jmc 1.16 xx_gen2d_dummy \
90     xx_gen3d_dummy \
91 heimbach 1.10 xx_genarr2d_dummy \
92     xx_genarr3d_dummy \
93 jmc 1.16 xx_gentim2d_dummy \
94     xx_siarea_dummy \
95     xx_siheff_dummy \
96     xx_sihsnow_dummy \
97     xx_shifwflx_dummy \
98 heimbach 1.2 xx_relaxsst_dummy \
99 heimbach 1.9 xx_relaxsss_dummy \
100     xx_atemp_mean_dummy \
101     xx_aqh_mean_dummy \
102     xx_precip_mean_dummy \
103     xx_swdown_mean_dummy \
104     xx_uwind_mean_dummy \
105 jmc 1.16 xx_vwind_mean_dummy' \
106 heimbach 1.1 -output 'fc'"
107    
108     AD_TAMC_FLAGS="$AD_TAMC_FLAGS $DIFF_FLAGS"
109     AD_TAF_FLAGS="$AD_TAF_FLAGS $DIFF_FLAGS"
110    
111     FTL_TAMC_FLAGS="$FTL_TAMC_FLAGS $DIFF_FLAGS"
112     FTL_TAF_FLAGS="$FTL_TAF_FLAGS $DIFF_FLAGS"
113    
114     SVD_TAMC_FLAGS="$SVD_TAMC_FLAGS $DIFF_FLAGS"
115     SVD_TAF_FLAGS="$SVD_TAF_FLAGS $DIFF_FLAGS"

  ViewVC Help
Powered by ViewVC 1.1.22