next up previous
Next: 4.4.2 The GLOBALS Data Up: 4.4 Data Cards Previous: 4.4 Data Cards

 

4.4.1 The TEMPORARIES Data Card

When specifying the function and derivative values of a nonlinear element, it often happens that an expression occurs more than once. It is then convenient to define an auxiliary parameter to have the value of the common expression and henceforth to refer to the auxiliary parameter. For instance, a nonlinear element of the two internal variables tex2html_wrap_inline5229 and tex2html_wrap_inline5235 might be tex2html_wrap_inline5531 (The names of the internal variables have already been specified in the ELEMENT TYPE section of the SDIF and are known as reserved parameters.) Its gradient vector (vector of first partial derivatives) has components tex2html_wrap_inline5231 and tex2html_wrap_inline5535 . If we define the auxiliary parameter tex2html_wrap_inline5537 , the derivatives are then w and tex2html_wrap_inline5541 .

  figure3171
Figure 4.3:  Possible data cards for TEMPORARIES

The TEMPORARIES indicator card is used to announce the names of any auxiliary parameters which are to be used in defining the function and derivative values of the nonlinear elements. This list should also include the name of any intrinsic and external functions used. The syntax for data cards following the indicator card is given in Figure 4.3.

The single-character string in field 1 specifies the type of auxiliary parameter that is to be defined. Possible types are integer (I), real (R), logical (L), intrinsic function (M) or external function (F). The string p-name in field 2 then gives the name of the auxiliary parameter. The name must be a valid Fortran name, see Section 3.1.2, but must not be a reserved one, i.e., one of the names assigned to the internal variables or parameters for the element in question in the ELEMENT TYPE section of the SDIF (see, Section 3.2.14). Any auxiliary parameter that is to be used must be defined in the TEMPORARIES section along with all intrinsic and external function names.


next up previous
Next: 4.4.2 The GLOBALS Data Up: 4.4 Data Cards Previous: 4.4 Data Cards