Using Tools > Working with User Code > Fortran User Interface Reference > User Function Argument Registration ufarg (Fortran)

Your Ad Here




User Function Argument Registration ufarg (Fortran)

Each argument of a Fortran user function which has been initially registered with uffunc is requested with a call in uflib to ufarg:

external func

integer size

call ufarg(func, type, variable, size)

func: a reference to the user function (called func in this case).

type: a character string giving the type of the argument, either of the following:

variable: a character string naming the requested argument, which must be a valid STAR-CCM+ variable.

size: the storage in bytes required for one element of the variable array. This is used to ensure that the precision of the user function matches the precision of STAR-CCM+. Examples are:

The StarReal and CoordReal types define the precision of floating-point variables in StarReal.f, together with StarRealSize, CoordRealSize and StarIntSize.

Calls to ufarg must be made in the order the arguments are required by the user function.

Return to CD-adapco STAR-CCM+ Index


Your Ad Here