Unnecessary warning message.

Unnecessary warning message.

Can somebody explain to me why the following piece of code should generate a warning message (pasted after the code)

SUBROUTINE pointingTo_MeshBounds(index_ies)
INTEGER(I4B), INTENT(IN) :: index_ies
sideglobalseg=>sideglobalsegsave(:,index_ies)
sideglobalspan=>sideglobalspansave(:,index_ies)
sideglobalpcurve=>sideglobalpcurvesave(:,index_ies)
sideglobalzetst=>sideglobalzetstsave(:,index_ies)
sideglobalzetfi=>sideglobalzetfisave(:,index_ies)
END SUBROUTINE

D:WorkV60MESHMeshData.F90(1794) : Warning: This variable has not been used. [INDEX_IES]
SUBROUTINE pointingTo_MeshBounds(index_ies)
---------------------------------^

It seems to me that if you pass a variable to a subroutine and use it as a dimension parameter of an array, the compiler will not conside it as a valid usage of that variable!!!! It is very odd.

Ali Asi
asi@enginia.com

publicaciones de 2 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

I'm pretty sure this was fixed in a version more recent than the 6.1A you're using.

Steve

Steve - Intel Developer Support

Deje un comentario

Por favor inicie sesión para agregar un comentario. ¿No es socio? Únase ya