--- MITgcm/verification/tutorial_dic_adjoffline/code_ad/ECCO_CPPOPTIONS.h 2009/10/16 16:49:48 1.1 +++ MITgcm/verification/tutorial_dic_adjoffline/code_ad/ECCO_CPPOPTIONS.h 2012/08/09 18:15:58 1.2 @@ -1,9 +1,16 @@ -C $Header: /home/ubuntu/mnt/e9_copy/MITgcm/verification/tutorial_dic_adjoffline/code_ad/ECCO_CPPOPTIONS.h,v 1.1 2009/10/16 16:49:48 heimbach Exp $ +C $Header: /home/ubuntu/mnt/e9_copy/MITgcm/verification/tutorial_dic_adjoffline/code_ad/ECCO_CPPOPTIONS.h,v 1.2 2012/08/09 18:15:58 jmc Exp $ C $Name: $ -C -C CPP flags controlling which code is included in the files that -C will be compiled. +#ifndef ECCO_CPPOPTIONS_H +#define ECCO_CPPOPTIONS_H + +C-- Collect here, in a single option-file, options to control which optional +C features to compile in packages AUTODIFF, COST, CTRL, ECCO, CAL and EXF. +C If used, this option-file needs to be directly included in CPP_OPTIONS.h +C Although this method, inherited from ECCO setup, has been traditionally +C used for all adjoint built, work is in progess to allow to use the +C standard metod (each of the above pkg get its own options from its +C specific option-file) also for adjoint built. C ******************************************************************** C *** Adjoint Support Package *** @@ -12,25 +19,25 @@ C o Include/exclude code in order to be able to automatically C differentiate the MITgcmUV by using the Tangent Linear and C Adjoint Model Compiler (TAMC). -C + #define ALLOW_AUTODIFF_TAMC C >>> Checkpointing as handled by TAMC #define ALLOW_TAMC_CHECKPOINTING -C + C >>> Extract adjoint state #undef ALLOW_AUTODIFF_MONITOR -C + C >>> DO 2-level checkpointing instead of 3-level #undef AUTODIFF_2_LEVEL_CHECKPOINT -C + C o use divided adjoint to split adjoint computations #undef ALLOW_DIVIDED_ADJOINT #undef ALLOW_DIVIDED_ADJOINT_MPI C ******************************************************************** -C *** Calender Package *** +C *** Calendar Package *** C ******************************************************************** -C + C CPP flags controlling which code is included in the files that C will be compiled. @@ -39,16 +46,19 @@ C ******************************************************************** C *** Cost function Package *** C ******************************************************************** -C + C >>> Cost function contributions #define ALLOW_DIC_COST C ******************************************************************** C *** Control vector Package *** C ******************************************************************** -C + #define EXCLUDE_CTRL_PACK #undef ALLOW_NONDIMENSIONAL_CONTROL_IO -C + #define ALLOW_GEN2D_CONTROL #undef ALLOW_DIC_CONTROL + +C ******************************************************************** +#endif /* ECCO_CPPOPTIONS_H */