Software Archive
Read-only legacy content
17061 Discussions

Unnecessary warning message.

Intel_C_Intel
Employee
451 Views
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
0 Kudos
1 Reply
Steven_L_Intel1
Employee
451 Views
I'm pretty sure this was fixed in a version more recent than the 6.1A you're using.

Steve
0 Kudos
Reply