Software Archive
Read-only legacy content
17061 Discussions

forrtl warning (402)

Intel_C_Intel
Employee
308 Views
What are the implications of creating an array temporary for a passed argument that causes forrtl warning (402) to be generated?
0 Kudos
1 Reply
Steven_L_Intel1
Employee
308 Views
Lower performance. We put that warning in (you have to ask for it, it's off by default) to help programmers find places where argument temp copies might be avoided with recoding. You get the temp if you're passing a non-contiguous array section to a routine that expects a contiguous array to be passed. See Chris Bord's article in VF Newsletter issue 1 (or maybe 2) for more on this.

Steve
0 Kudos
Reply