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

initializing variables

bangnet
Beginner
784 Views

hello,

i am using ifc to compile a big, old fortran code. is there any option that would force ifc to initialize all the variables to zero if they have not been explicitly initialized?

thanks,
barb.

0 Kudos
4 Replies
bangnet
Beginner
784 Views
i found it myself: -zero

--barb.

> hello,
>
> i am using ifc to compile a big, old fortran code. is
> there any option that would force ifc to initialize
> all the variables to zero if they have not been
> explicitly initialized?
>
> thanks,
> barb.

0 Kudos
efth
Beginner
784 Views
Since I have the same problem, can you tell me the solution ?.....
I have a similar problem, since I want to make all the variables zero in order to makeiterative runs of a code.
0 Kudos
efth
Beginner
784 Views
Since I have the same problem, can you tell me the solution ?.....
I have a similar problem, since I want to make all the variables zero in order to makeiterative runs of a code.
0 Kudos
Steven_L_Intel1
Employee
784 Views
-zero is not yet supported in Intel Fortran 8.0. It should be in an update to be released in April. Note that -zero will initialize only local scalar variables that are statically allocated.
0 Kudos
Reply