GRESS Version 2.0 user`s manual

TN (United States) Oak Ridge National Lab., J.E. Horwedel, USDOE, Washington, DC (United States) · 1991

GRESS uses a precompiler to interpret FORTRAN statements and determine the mathematical operations embodied in them. As each arithmetic assignment statement in a program is interpreted, information necessary to allow the calculation of derivatives is generated. The result of the precompilation step is a new FORTRAN program that can produce derivatives for any REAL (i.e., single or double precision) variable calculated by the model. Consequently, GRESS enhances FORTRAN programs or subprograms by adding the calculation of derivatives along with the original output. Derivatives from a GRESS enhanced model can be used internally (e.g., iteration acceleration) or externally (e.g., sensitivity studies). By calling GRESS run-time routines, derivatives can be propagated through the code via the chain rule (referred to as the CHAIN option) or accumulated to create an adjoint matrix (referred to as the ADGEN option). A third option, GENSUB, makes it possible to process a subset of a program (i.e., a do loop, subroutine, function, a sequence of subroutines, or a whole program) for calculating derivatives of dependent variables with respect to independent variables.

Read the paper · More papers on PaperTik