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

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

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

revision 1.3 by jmc, Fri Jul 27 21:13:27 2012 UTC revision 1.4 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 CPP flags controlling which code is included in the files that  #ifndef ECCO_CPPOPTIONS_H
5  C will be compiled.  #define ECCO_CPPOPTIONS_H
6  C  
7    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 ********************************************************************
18  C  
19  #undef  ALLOW_ECCO_FORWARD_RUN  #undef  ALLOW_ECCO_FORWARD_RUN
20  #undef  ALLOW_ECCO_DIAGNOSTICS_RUN  #undef  ALLOW_ECCO_DIAGNOSTICS_RUN
21  #define  ALLOW_ECCO_OPTIMIZATION  #define  ALLOW_ECCO_OPTIMIZATION
# Line 19  C ************************************** Line 27  C **************************************
27  C o Include/exclude code in order to be able to automatically  C o Include/exclude code in order to be able to automatically
28  C   differentiate the MITgcmUV by using the Tangent Linear and  C   differentiate the MITgcmUV by using the Tangent Linear and
29  C   Adjoint Model Compiler (TAMC).  C   Adjoint Model Compiler (TAMC).
 #define INCLUDE_AUTODIFF_PACKAGE  
 C  
30  #define ALLOW_AUTODIFF_TAMC  #define ALLOW_AUTODIFF_TAMC
31  C  
32  C       >>> Checkpointing as handled by TAMC  C       >>> Checkpointing as handled by TAMC
33  #define ALLOW_TAMC_CHECKPOINTING  #define ALLOW_TAMC_CHECKPOINTING
34  c  c
35  c       >>> Reduce to 2-level checkpointing  c       >>> Reduce to 2-level checkpointing
36  #define AUTODIFF_2_LEVEL_CHECKPOINT  #define AUTODIFF_2_LEVEL_CHECKPOINT
37  C  
38  C       >>> Extract adjoint state  C       >>> Extract adjoint state
39  #undef ALLOW_AUTODIFF_MONITOR  #undef ALLOW_AUTODIFF_MONITOR
40  C  
41  C o use divided adjoint to split adjoint computations  C o use divided adjoint to split adjoint computations
42  #undef ALLOW_DIVIDED_ADJOINT  #undef ALLOW_DIVIDED_ADJOINT
43    
44  C ********************************************************************  C ********************************************************************
45  C ***                Cost function Package                         ***  C ***                Cost function Package                         ***
46  C ********************************************************************  C ********************************************************************
47  C  
48  # define ALLOW_ATEMP_COST_CONTRIBUTION  # define ALLOW_ATEMP_COST_CONTRIBUTION
49  # define ALLOW_AQH_COST_CONTRIBUTION  # define ALLOW_AQH_COST_CONTRIBUTION
50  # define ALLOW_UWIND_COST_CONTRIBUTION  # define ALLOW_UWIND_COST_CONTRIBUTION
# Line 54  c       >>> Sea-ice volume Line 60  c       >>> Sea-ice volume
60  C ********************************************************************  C ********************************************************************
61  C ***               Control vector Package                         ***  C ***               Control vector Package                         ***
62  C ********************************************************************  C ********************************************************************
63  C  
64  #define  EXCLUDE_CTRL_PACK  #define  EXCLUDE_CTRL_PACK
65    
66  C       >>> Initial values.  C       >>> Initial values.
# Line 111  C   forcing files from input grid to mod Line 117  C   forcing files from input grid to mod
117  #if ( defined (EXF_INTERP_USE_DYNALLOC) && defined (USING_THREADS) )  #if ( defined (EXF_INTERP_USE_DYNALLOC) && defined (USING_THREADS) )
118  # define EXF_IREAD_USE_GLOBAL_POINTER  # define EXF_IREAD_USE_GLOBAL_POINTER
119  #endif  #endif
120    
121    C ********************************************************************
122    #endif /* ECCO_CPPOPTIONS_H */

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.22