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

Contents of /MITgcm/tools/adjoint_options/adjoint_diva_mpi

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


Revision 1.5 - (show annotations) (download)
Thu Dec 22 01:29:45 2005 UTC (18 years, 4 months ago) by ce107
Branch: MAIN
CVS Tags: checkpoint58, checkpoint58a_post, checkpoint57z_post
Changes since 1.4: +4 -2 lines
Modified to generalize DIVA included MPI files via the MPI_HEADER_FILES_INC
variable setup in the optfile. MPIINCLUDEDIR also needs to be defined in the
optfile, otherwise MPIHOME (if found) is used to set it. The default MPIHOME
is /usr. For example on Altix systems MPI_HEADER_FILES_INC is
'./mpi_headers/mpif_parameters.h ./mpi_headers/mpif.h ./mpi_headers/mpiof.h'

1 #!/bin/bash
2 #
3 # $Header: /u/gcmpack/MITgcm/tools/adjoint_options/adjoint_diva_mpi,v 1.4 2005/08/06 11:02:38 heimbach Exp $
4 # $Name: $
5 #
6
7 # This file contains the default settings for the adjoint and
8 # 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=taf
17 TAMC=tamc
18
19
20 AD_TAMC_FLAGS='-reverse -admark ad -i4 -r4 -l tamc_ad.log'
21 AD_TAF_FLAGS="-pure -mpi -include '$MPI_HEADER_FILES_INC' -I./mpi_headers/ -reverse -admark ad -i4 -r4 -l taf_ad.log -flow taf_ad_flow.log -nonew_arg"
22 FTL_TAMC_FLAGS='-forward -ftlmark g_ -i4 -r4 -l tamc_ftl.log'
23 FTL_TAF_FLAGS='-forward -ftlmark g_ -i4 -r4 -l taf_ftl.log -flow taf_ftl_flow.log -nonew_arg'
24 SVD_TAMC_FLAGS='-reverse -forward -pure -i4 -r4 -l tamc_svd.log'
25 SVD_TAF_FLAGS='-reverse -forward -pure -i4 -r4 -l taf_svd.log -flow taf_flow.log -nonew_arg'
26
27 DIFF_FLAGS="-toplevel 'the_main_loop' \
28 -input 'xx_theta_dummy \
29 xx_salt_dummy \
30 xx_tr1_dummy \
31 xx_hflux_dummy \
32 xx_sflux_dummy \
33 xx_tauu_dummy \
34 xx_tauv_dummy \
35 xx_atemp_dummy \
36 xx_aqh_dummy \
37 xx_precip_dummy \
38 xx_swflux_dummy \
39 xx_swdown_dummy \
40 xx_uwind_dummy \
41 xx_vwind_dummy \
42 xx_obcsn_dummy \
43 xx_obcss_dummy \
44 xx_obcsw_dummy \
45 xx_obcse_dummy \
46 xx_sst_dummy \
47 xx_sss_dummy \
48 xx_diffkr_dummy \
49 xx_kapgm_dummy \
50 xx_efluxy_dummy \
51 xx_efluxp_dummy' \
52 -output 'fc'"
53
54 AD_TAMC_FLAGS="$AD_TAMC_FLAGS $DIFF_FLAGS"
55 AD_TAF_FLAGS="$AD_TAF_FLAGS $DIFF_FLAGS"
56
57 FTL_TAMC_FLAGS="$FTL_TAMC_FLAGS $DIFF_FLAGS"
58 FTL_TAF_FLAGS="$FTL_TAF_FLAGS $DIFF_FLAGS"
59
60 SVD_TAMC_FLAGS="$SVD_TAMC_FLAGS $DIFF_FLAGS"
61 SVD_TAF_FLAGS="$SVD_TAF_FLAGS $DIFF_FLAGS"

  ViewVC Help
Powered by ViewVC 1.1.22