/[MITgcm]/MITgcm/verification/lab_sea/code_ad/ECCO_CPPOPTIONS.h
ViewVC logotype

Diff of /MITgcm/verification/lab_sea/code_ad/ECCO_CPPOPTIONS.h

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

revision 1.12 by heimbach, Thu Apr 19 17:32:49 2012 UTC revision 1.13 by jmc, Thu Aug 9 18:15:57 2012 UTC
# Line 1  Line 1 
1  C $Header$  C $Header$
2  C $Name$  C $Name$
3    
4  C  #ifndef ECCO_CPPOPTIONS_H
5  C CPP flags controlling which code is included in the files that  #define ECCO_CPPOPTIONS_H
6  C will be compiled.  
7  C  C-- Collect here, in a single option-file, options to control which optional
8    C   features to compile in packages AUTODIFF, COST, CTRL, ECCO, CAL and EXF.
9    C   If used, this option-file needs to be directly included in CPP_OPTIONS.h
10    C   Although this method, inherited from ECCO setup, has been traditionally
11    C   used for all adjoint built, work is in progess to allow to use the
12    C   standard metod (each of the above pkg get its own options from its
13    C   specific option-file) also for adjoint built.
14    
15  C ********************************************************************  C ********************************************************************
16  C ***                         ECCO Package                         ***  C ***                         ECCO Package                         ***
17  C ********************************************************************  C ********************************************************************
 C  
18    
19  cph >>>>>> !!!!!! SPECIAL SEAICE FLAG FOR TESTING !!!!!! <<<<<<  cph >>>>>> !!!!!! SPECIAL SEAICE FLAG FOR TESTING !!!!!! <<<<<<
20  cph#define  SEAICE_EXCLUDE_FOR_EXACT_AD_TESTING  cph#define  SEAICE_EXCLUDE_FOR_EXACT_AD_TESTING
# Line 25  C ***                  Adjoint Support P Line 31  C ***                  Adjoint Support P
31  C ********************************************************************  C ********************************************************************
32    
33  C o Include/exclude code in order to be able to automatically  C o Include/exclude code in order to be able to automatically
34  C  
35  #define ALLOW_AUTODIFF_TAMC  #define ALLOW_AUTODIFF_TAMC
36  C  
37  C       >>> Checkpointing as handled by TAMC  C       >>> Checkpointing as handled by TAMC
38  #define ALLOW_TAMC_CHECKPOINTING  #define ALLOW_TAMC_CHECKPOINTING
39  C  
40  C extend to 4-level checkpointing  C extend to 4-level checkpointing
41  #undef AUTODIFF_4_LEVEL_CHECKPOINT  #undef AUTODIFF_4_LEVEL_CHECKPOINT
42  C  
43  C       >>> Extract adjoint state  C       >>> Extract adjoint state
44  #define ALLOW_AUTODIFF_MONITOR  #define ALLOW_AUTODIFF_MONITOR
45  C  
46  C o use divided adjoint to split adjoint computations  C o use divided adjoint to split adjoint computations
47  #undef ALLOW_DIVIDED_ADJOINT  #undef ALLOW_DIVIDED_ADJOINT
48  C  
49  C o TAMC compatible subroutine parameter list  C o TAMC compatible subroutine parameter list
50  #undef AUTODIFF_TAMC_COMPATIBILITY  #undef AUTODIFF_TAMC_COMPATIBILITY
51    
52  C ********************************************************************  C ********************************************************************
53  C ***                     Calendar Package                         ***  C ***                     Calendar Package                         ***
54  C ********************************************************************  C ********************************************************************
55  C  
56  C CPP flags controlling which code is included in the files that  C CPP flags controlling which code is included in the files that
57  C will be compiled.  C will be compiled.
58    
# Line 55  CPH >>>>>> THERE ARE NO MORE CAL OPTIONS Line 61  CPH >>>>>> THERE ARE NO MORE CAL OPTIONS
61  C ********************************************************************  C ********************************************************************
62  C ***                Cost function Package                         ***  C ***                Cost function Package                         ***
63  C ********************************************************************  C ********************************************************************
64  C  
 #define ALLOW_COST  
 #ifdef ALLOW_COST  
65  C       >>> Use the EGM-96 geoid error covariance.  C       >>> Use the EGM-96 geoid error covariance.
66  # undef  ALLOW_EGM96_ERROR_COV  # undef  ALLOW_EGM96_ERROR_COV
67  # undef  ALLOW_READ_EGM_DATA  # undef  ALLOW_READ_EGM_DATA
# Line 123  c       >>> Sea-ice volume Line 127  c       >>> Sea-ice volume
127  c       >>> Sea-ice misfit to obs  c       >>> Sea-ice misfit to obs
128  # define ALLOW_SEAICE_COST_SMR_AREA  # define ALLOW_SEAICE_COST_SMR_AREA
129    
 #endif /* ALLOW_COST */  
   
130  C ********************************************************************  C ********************************************************************
131  C ***               Control vector Package                         ***  C ***               Control vector Package                         ***
132  C ********************************************************************  C ********************************************************************
133  C  
134  #define  ALLOW_NONDIMENSIONAL_CONTROL_IO  #define  ALLOW_NONDIMENSIONAL_CONTROL_IO
135  #undef  ALLOW_TAMC_SINGLEPREC_COMLEV  #undef  ALLOW_TAMC_SINGLEPREC_COMLEV
136    
# Line 188  c       >>> Make sure that ALLOW_OBCS is Line 190  c       >>> Make sure that ALLOW_OBCS is
190  C ********************************************************************  C ********************************************************************
191  C ***             External forcing Package                         ***  C ***             External forcing Package                         ***
192  C ********************************************************************  C ********************************************************************
 C  
 C o Include/exclude the external forcing package. To use this package,  
 C   you have to include the calendar tool as well. KPP can be switched  
 C   on or off. The implementation automatically takes care of this.  
 #define INCLUDE_EXTERNAL_FORCING_PACKAGE  
193    
194  C   Bulk formulae related flags.  C   Bulk formulae related flags.
195  #undef  ALLOW_BULK_LARGYEAG04  #undef  ALLOW_BULK_LARGYEAG04
# Line 216  C   Relaxation to monthly climatologies. Line 213  C   Relaxation to monthly climatologies.
213  C   Seaice area relaxation code  C   Seaice area relaxation code
214  #define EXF_ALLOW_SEAICE_RELAX  #define EXF_ALLOW_SEAICE_RELAX
215    
216    C ********************************************************************
217    #endif /* ECCO_CPPOPTIONS_H */

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.22