Type Definitions (Fortran)
The types of variables and functions that are used in Fortran user functions are defined in the file StarReal.f.
This file is not part of the standard Simcenter STAR-CCM+ installation. Create it in the same directory where you are creating your user functions. The contents of StarReal.f appear as shown here:
module StarRealMod
integer, parameter :: StarInt = kind(1)
integer, parameter :: StarReal = kind(1.0)
integer, parameter :: CoordReal = kind(1D0)
integer, parameter :: StarIntSize = StarInt
integer, parameter :: StarRealSize = StarReal
integer, parameter :: CoordRealSize = CoordReal
end module StarRealMod
When working with double precision, declare StarReal with:
integer, parameter :: StarReal = kind(1D0)