Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Comunicados
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29283 Discussões

initialization of variable in intel fortran compiler for 64bit

pe_rasouliyahoo_com
Principiante
1.790 Visualizações

Hi everybody,

I have code which is developed initially with Fortran 90 in 32-bit. now when I compile it with 64-bit compiler, I realized that he compiler does not initialized the variable to zero and it just initialized the with weird values that resulting to wrong results in the output. how can I automatically initialized all values to zero in compilerwithout changing the source code?

Cheers,
Pejman

0 Kudos
1 Solução
ArturGuzik
Contribuidor valorado I
1.790 Visualizações

thanks for the reply. I am nor sure but is it in "Tools/options/Intel Visula fortran/compilers/default otions"?

Project->Properties->Fortran->Data->Initialize Local Scalar Variables.

or add options (type) to

Project->Properties->Fortran->Data->Command Line


A.

Ver solução na publicação original

5 Respostas
Steven_L_Intel1
Funcionário
1.790 Visualizações
You would be better off to correct the program. But otherwise, try adding the options /Qsave and /Qzero. You just got lucky on the 32-bit side as variables aren't initialized there either.
pe_rasouliyahoo_com
Principiante
1.790 Visualizações
You would be better off to correct the program. But otherwise, try adding the options /Qsave and /Qzero. You just got lucky on the 32-bit side as variables aren't initialized there either.

thanks for the reply. I am nor sure but is it in "Tools/options/Intel Visula fortran/compilers/default otions"?
ArturGuzik
Contribuidor valorado I
1.791 Visualizações

thanks for the reply. I am nor sure but is it in "Tools/options/Intel Visula fortran/compilers/default otions"?

Project->Properties->Fortran->Data->Initialize Local Scalar Variables.

or add options (type) to

Project->Properties->Fortran->Data->Command Line


A.
Steven_L_Intel1
Funcionário
1.790 Visualizações
You also have to set the Data > Local Variable Storage property to "All variables SAVE".
pe_rasouliyahoo_com
Principiante
1.790 Visualizações
You also have to set the Data > Local Variable Storage property to "All variables SAVE".

thank you so much!!!
Responder