/[MITgcm]/MITgcm/pkg/autodiff/AUTODIFF_OPTIONS.h
ViewVC logotype

Diff of /MITgcm/pkg/autodiff/AUTODIFF_OPTIONS.h

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

revision 1.3 by heimbach, Thu Mar 4 04:00:12 2004 UTC revision 1.7 by jmc, Fri Aug 10 17:37:20 2012 UTC
# Line 2  C $Header$ Line 2  C $Header$
2  C $Name$  C $Name$
3    
4  CBOP  CBOP
5  C     !ROUTINE: AUTODIFF_CPPOPTIONS.h  C !ROUTINE: AUTODIFF_OPTIONS.h
6  C     !INTERFACE:  C !INTERFACE:
7  C     include "AUTODIFF_CPPOPTIONS.h "  C #include "AUTODIFF_OPTIONS.h"
8  C     !DESCRIPTION:  
9  C     *==========================================================*  C !DESCRIPTION:
10  C     | CPP_EEMACROS.h                                              C *==================================================================*
11  C     *==========================================================*  C | CPP options file for AutoDiff (autodiff) package:
12  C     CPP flags controlling which code is included in the files  C | Control which optional features to compile in this package code.
13  C     that will be compiled.  C *==================================================================*
 C     These macros have been shifted to the common header file  
 C     ECCO_CPPOPTIONS.h  
14  CEOP  CEOP
15    
16  #ifndef AUTODIFF_OPTIONS_H  #ifndef AUTODIFF_OPTIONS_H
17  #define AUTODIFF_OPTIONS_H  #define AUTODIFF_OPTIONS_H
   
18  #include "PACKAGES_CONFIG.h"  #include "PACKAGES_CONFIG.h"
 #include "AD_CONFIG.h"  
19  #include "CPP_OPTIONS.h"  #include "CPP_OPTIONS.h"
20    
21  #endif /* AUTODIFF_CPPOPTIONS_H */  #ifdef ALLOW_AUTODIFF
22    #ifdef ECCO_CPPOPTIONS_H
23    
24    C-- When multi-package option-file ECCO_CPPOPTIONS.h is used (directly included
25    C    in CPP_OPTIONS.h), this option file is left empty since all options that
26    C   are specific to this package are assumed to be set in ECCO_CPPOPTIONS.h
27    
28    #else /* ndef ECCO_CPPOPTIONS_H */
29    C   ==================================================================
30    C-- Package-specific Options & Macros go here
31    
32    C o Include/exclude code in order to be able to automatically
33    C   differentiate the MITgcmUV by using the Tangent Linear and
34    C   Adjoint Model Compiler (TAMC).
35    #define ALLOW_AUTODIFF_TAMC
36    
37    C       >>> Checkpointing as handled by TAMC
38    #define ALLOW_TAMC_CHECKPOINTING
39    
40    C       >>> Extract adjoint state
41    #define ALLOW_AUTODIFF_MONITOR
42    
43    C       >>> DO 2-level checkpointing instead of 3-level
44    c#undef AUTODIFF_2_LEVEL_CHECKPOINT
45    
46    C extend to 4-level checkpointing
47    c#undef AUTODIFF_4_LEVEL_CHECKPOINT
48    
49    C o use divided adjoint to split adjoint computations
50    #undef ALLOW_DIVIDED_ADJOINT
51    
52    C o Enable some temporary constructs for OpenAD
53    #undef ALLOW_AUTODIFF_OPENAD
54    
55    C   ==================================================================
56    #endif /* ndef ECCO_CPPOPTIONS_H */
57    #endif /* ALLOW_AUTODIFF */
58    #endif /* AUTODIFF_OPTIONS_H */

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

  ViewVC Help
Powered by ViewVC 1.1.22