/[MITgcm]/MITgcm/verification/global_ocean.cs32x15/code_ad/ECCO_CPPOPTIONS.h
ViewVC logotype

Diff of /MITgcm/verification/global_ocean.cs32x15/code_ad/ECCO_CPPOPTIONS.h

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

revision 1.7 by jmc, Tue Jan 17 15:18:55 2012 UTC revision 1.8 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-- 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 ***                  Adjoint Support Package                     ***  C ***                  Adjoint Support Package                     ***
# Line 12  C ************************************** Line 19  C **************************************
19  C o Include/exclude code in order to be able to automatically  C o Include/exclude code in order to be able to automatically
20  C   differentiate the MITgcmUV by using the Tangent Linear and  C   differentiate the MITgcmUV by using the Tangent Linear and
21  C   Adjoint Model Compiler (TAMC).  C   Adjoint Model Compiler (TAMC).
22  C  
23  #define ALLOW_AUTODIFF_TAMC  #define ALLOW_AUTODIFF_TAMC
24  C       >>> Checkpointing as handled by TAMC  C       >>> Checkpointing as handled by TAMC
25  #define ALLOW_TAMC_CHECKPOINTING  #define ALLOW_TAMC_CHECKPOINTING
26  C  
27  C       >>> Extract adjoint state  C       >>> Extract adjoint state
28  #define ALLOW_AUTODIFF_MONITOR  #define ALLOW_AUTODIFF_MONITOR
29  C  
30  C       >>> DO 2-level checkpointing instead of 3-level  C       >>> DO 2-level checkpointing instead of 3-level
31  #undef AUTODIFF_2_LEVEL_CHECKPOINT  #undef AUTODIFF_2_LEVEL_CHECKPOINT
32  C  
33  C o use divided adjoint to split adjoint computations  C o use divided adjoint to split adjoint computations
34  #undef ALLOW_DIVIDED_ADJOINT  #undef ALLOW_DIVIDED_ADJOINT
35  #undef ALLOW_DIVIDED_ADJOINT_MPI  #undef ALLOW_DIVIDED_ADJOINT_MPI
# Line 33  C o use divided adjoint to split adjoint Line 40  C o use divided adjoint to split adjoint
40  #define AUTODIFF_USE_OLDSTORE_2D  #define AUTODIFF_USE_OLDSTORE_2D
41    
42  C ********************************************************************  C ********************************************************************
43  C ***                     Calender Package                         ***  C ***                     Calendar Package                         ***
44  C ********************************************************************  C ********************************************************************
45  C  
46  C CPP flags controlling which code is included in the files that  C CPP flags controlling which code is included in the files that
47  C will be compiled.  C will be compiled.
48    
# Line 44  CPH >>>>>> THERE ARE NO MORE CAL OPTIONS Line 51  CPH >>>>>> THERE ARE NO MORE CAL OPTIONS
51  C ********************************************************************  C ********************************************************************
52  C ***                Cost function Package                         ***  C ***                Cost function Package                         ***
53  C ********************************************************************  C ********************************************************************
54  C  
55  C       >>> Cost function contributions  C       >>> Cost function contributions
 #define ALLOW_COST  
56  #define ALLOW_COST_TEST  #define ALLOW_COST_TEST
57  #undef ALLOW_COST_TRACER  #undef ALLOW_COST_TRACER
58  #undef ALLOW_COST_ATLANTIC_HEAT  #undef ALLOW_COST_ATLANTIC_HEAT
# Line 55  C       >>> Cost function contributions Line 61  C       >>> Cost function contributions
61  C ********************************************************************  C ********************************************************************
62  C ***               Control vector Package                         ***  C ***               Control vector Package                         ***
63  C ********************************************************************  C ********************************************************************
64  C  
65  #define EXCLUDE_CTRL_PACK  #define EXCLUDE_CTRL_PACK
66  #undef  ALLOW_NONDIMENSIONAL_CONTROL_IO  #undef  ALLOW_NONDIMENSIONAL_CONTROL_IO
67  C  
68  C       >>> Initial values.  C       >>> Initial values.
69  #define ALLOW_THETA0_CONTROL  #define ALLOW_THETA0_CONTROL
70  #define ALLOW_SALT0_CONTROL  #define ALLOW_SALT0_CONTROL
# Line 72  C       >>> Initial values. Line 78  C       >>> Initial values.
78  #define ALLOW_DIFFKR_CONTROL  #define ALLOW_DIFFKR_CONTROL
79  #undef ALLOW_KAPGM_CONTROL  #undef ALLOW_KAPGM_CONTROL
80    
   
81  C ********************************************************************  C ********************************************************************
82  C ***             External forcing Package                         ***  C ***             External forcing Package                         ***
83  C ********************************************************************  C ********************************************************************
# Line 107  C   forcing files from input grid to mod Line 112  C   forcing files from input grid to mod
112  # define EXF_IREAD_USE_GLOBAL_POINTER  # define EXF_IREAD_USE_GLOBAL_POINTER
113  #endif  #endif
114    
   
115  C >>> No Open boundaries  C >>> No Open boundaries
116  #undef  ALLOW_OBCSN_CONTROL  #undef  ALLOW_OBCSN_CONTROL
117  #undef  ALLOW_OBCSS_CONTROL  #undef  ALLOW_OBCSS_CONTROL
118  #undef  ALLOW_OBCSW_CONTROL  #undef  ALLOW_OBCSW_CONTROL
119  #undef  ALLOW_OBCSE_CONTROL  #undef  ALLOW_OBCSE_CONTROL
120    
121    C ********************************************************************
122    #endif /* ECCO_CPPOPTIONS_H */

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.22