/[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.13 - (hide annotations) (download)
Thu Aug 8 17:49:55 2013 UTC (10 years, 9 months ago) by jmc
Branch: MAIN
Changes since 1.12: +15 -9 lines
add new settings (for TAF version-2) for MPI built

1 heimbach 1.1 #!/bin/bash
2     #
3 jmc 1.13 # $Header: /u/gcmpack/MITgcm/tools/adjoint_options/adjoint_diva,v 1.12 2013/08/07 16:20:03 heimbach Exp $
4 heimbach 1.1 # $Name: $
5     #
6    
7 jmc 1.13 # This file contains the default settings for the adjoint and
8 heimbach 1.1 # tangent-linear compilers. If you need to change these settings,
9     # 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     AD_TAF_FLAGS="-pure -reverse -i4 -r4 -intrinsic system,flush -l taf_ad.log $AD_TAF_FLAGS"
24     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     if test "x$MPI" != x ; then
28     AD_TAF_FLAGS="$AD_TAF_FLAGS"' -include $(LOCAL_MPI_HEADERS) -I./mpi_headers/'
29     FLT_TAF_FLAGS="$FLT_TAF_FLAGS"' -include $(LOCAL_MPI_HEADERS) -I./mpi_headers/'
30     SVD_TAF_FLAGS="$SVD_TAF_FLAGS"' -include $(LOCAL_MPI_HEADERS) -I./mpi_headers/'
31     fi
32 heimbach 1.1
33     DIFF_FLAGS="-toplevel 'the_main_loop' \
34     -input 'xx_theta_dummy \
35     xx_salt_dummy \
36     xx_tr1_dummy \
37     xx_hflux_dummy \
38     xx_sflux_dummy \
39     xx_tauu_dummy \
40     xx_tauv_dummy \
41     xx_atemp_dummy \
42     xx_aqh_dummy \
43     xx_precip_dummy \
44     xx_swflux_dummy \
45     xx_swdown_dummy \
46     xx_lwflux_dummy \
47     xx_lwdown_dummy \
48     xx_evap_dummy \
49     xx_snowprecip_dummy \
50     xx_apressure_dummy \
51     xx_runoff_dummy \
52     xx_uwind_dummy \
53     xx_vwind_dummy \
54     xx_obcsn_dummy \
55     xx_obcss_dummy \
56     xx_obcsw_dummy \
57     xx_obcse_dummy \
58     xx_sst_dummy \
59     xx_sss_dummy \
60     xx_diffkr_dummy \
61     xx_kapgm_dummy \
62 gforget 1.3 xx_edtaux_dummy \
63     xx_edtauy_dummy \
64     xx_kapredi_dummy \
65     xx_bottomdrag_dummy \
66 heimbach 1.1 xx_efluxy_dummy \
67 heimbach 1.2 xx_efluxp_dummy \
68     xx_uvel_dummy \
69     xx_vvel_dummy \
70     xx_etan_dummy \
71 heimbach 1.8 xx_gen2d_dummy \
72     xx_gen3d_dummy \
73 heimbach 1.10 xx_genarr2d_dummy \
74     xx_genarr3d_dummy \
75 heimbach 1.2 xx_siarea_dummy \
76     xx_siheff_dummy \
77     xx_sihsnow_dummy \
78     xx_relaxsst_dummy \
79 heimbach 1.9 xx_relaxsss_dummy \
80     xx_atemp_mean_dummy \
81     xx_aqh_mean_dummy \
82     xx_precip_mean_dummy \
83     xx_swdown_mean_dummy \
84     xx_uwind_mean_dummy \
85     xx_vwind_mean_dummy' \
86 heimbach 1.1 -output 'fc'"
87    
88     AD_TAMC_FLAGS="$AD_TAMC_FLAGS $DIFF_FLAGS"
89     AD_TAF_FLAGS="$AD_TAF_FLAGS $DIFF_FLAGS"
90    
91     FTL_TAMC_FLAGS="$FTL_TAMC_FLAGS $DIFF_FLAGS"
92     FTL_TAF_FLAGS="$FTL_TAF_FLAGS $DIFF_FLAGS"
93    
94     SVD_TAMC_FLAGS="$SVD_TAMC_FLAGS $DIFF_FLAGS"
95     SVD_TAF_FLAGS="$SVD_TAF_FLAGS $DIFF_FLAGS"

  ViewVC Help
Powered by ViewVC 1.1.22