--- MITgcm/tools/adjoint_options/adjoint_default 2003/10/20 04:01:31 1.1 +++ MITgcm/tools/adjoint_options/adjoint_default 2003/10/21 15:26:50 1.2 @@ -0,0 +1,45 @@ +#!/bin/bash +# +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/adjoint_options/adjoint_default,v 1.2 2003/10/21 15:26:50 edhill Exp $ +# $Name: $ +# + +# This file contains the default settings for the adjoint and +# tangent-linear compilers. If you need to change these settings, +# please make a separate (local) copy of this file. + +TAMC=tamc +TAF=~fastopt/bin/taf +# STAF=staf + +AD_TAMC_FLAGS='-reverse -admark ad -i4 -r4' +AD_TAF_FLAGS='-reverse -admark ad -i4 -r4 -l taf_ad.log -flow taf_ad_flow.log -nonew_arg' +FTL_TAMC_FLAGS='-forward -ftlmark g_ -i4 -r4' +FTL_TAF_FLAGS='-forward -ftlmark g_ -i4 -r4 -l taf_ftl.log -flow taf_ftl_flow.log -nonew_arg' +SVD_TAMC_FLAGS='-reverse -forward -pure -i4 -r4' +SVD_TAF_FLAGS='-reverse -forward -pure -i4 -r4 -flow taf_flow.log -nonew_arg' + +DIFF_FLAGS="-toplevel 'the_main_loop' \ + -input 'xx_theta_dummy \ + xx_salt_dummy \ + xx_tr1_dummy \ + xx_hflux_dummy \ + xx_sflux_dummy \ + xx_tauu_dummy \ + xx_tauv_dummy \ + xx_sst_dummy \ + xx_sss_dummy \ + xx_diffkr_dummy \ + xx_kapgm_dummy \ + xx_efluxy_dummy \ + xx_efluxp_dummy' \ + -output 'fc'" + +AD_TAMC_FLAGS="$AD_TAMC_FLAGS $DIFF_FLAGS" +AD_TAF_FLAGS="$AD_TAF_FLAGS $DIFF_FLAGS" + +FTL_TAMC_FLAGS="$FTL_TAMC_FLAGS $DIFF_FLAGS" +FTL_TAF_FLAGS="$FTL_TAF_FLAGS $DIFF_FLAGS" + +SVD_TAMC_FLAGS="$SVD_TAMC_FLAGS $DIFF_FLAGS" +SVD_TAF_FLAGS="$SVD_TAF_FLAGS $DIFF_FLAGS"