Subroutine VARVAL

Returns the value of the symbolic variable defined on a Card 9 - VARIABLE Variable Definition Card - Optional in the Thermal Solver Reference Manual.

Calling convention:

call varval(varnam,value)
Arguments Data type Input/Output Description
varnam Character*8 Call The name of the variable including the leading %.
value Real Return Value assigned to the variable. A value of –1.2E34 is returned if the variable does not exist.
Note:
Symbolic variable names always start with a % sign.

The following example returns x, the value of the symbolic variable name %VAR1.

call varval('%VAR1',x)

For more information, see the Thermal Solver Reference Manual PDF.