Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

intialization of local variables

steve_maas
Beginner
210 Views
Hi,
Does anybody know if local variables get initialized automatically to zero with the ifort compiler on entry of the function ? Thanks !
Steve.
0 Kudos
1 Reply
Steven_L_Intel1
Employee
210 Views
No, they don't. You can cause this to happen by specifying both -zero and -save (requires a recent 8.1 compiler), but I would advise you instead to properly initialize the variables.
0 Kudos
Reply