Home Contact Us Site Map  
 
       
    next up previous contents
Next: 5.4 Adjoint dump & Up: 5.3 The gradient check Previous: 5.3.1 Code description   Contents

5.3.2 Code configuration

The relevant CPP precompile options are set in the following files:
  • .genmakerc
    option grdchk is added to the enable list (alternatively, genmake may be invoked with the option -enable=grdchk).
  • CPP_OPTIONS.h
    Together with the flag ALLOW_ADJOINT_RUN, define the flag ALLOW_GRADIENT_CHECK.

The relevant runtime flags are set in the files

  • data.pkg
    Set useGrdchk = .TRUE.
  • data.grdchk
    • grdchk_eps  
    • nbeg  
    • nstep  
    • nend  
    • grdchkvarindex  

Figure 5.6:  
\begin{figure}\par
{\scriptsize
\begin{verbatim}the_model_main
\vert
\vert-...
...
\vert
\vert-- grdchk_print - print results\end{verbatim}
}
\par\end{figure}



mitgcm-support@mitgcm.org
Copyright © 2006 Massachusetts Institute of Technology Last update 2018-01-23