initializing variables

initializing variables

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.

5 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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.

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.

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.

-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.

Steve - Intel Developer Support

Leave a Comment

Please sign in to add a comment. Not a member? Join today