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

5.4.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@dev.mitgcm.org
Copyright © 2002 Massachusetts Institute of Technology