The initial registration of a Fortran user function is made with a call in uflib to uffunc:
external func
call uffunc(func, type, name)
func: a reference to the user function (called func in this case).
type: a character string giving the type of the user function, one of the following:
name: a character string giving the name with which the function will be shown in drop-down lists in STAR-CCM+.
The arguments that the user function requires are registered by calling ufarg.