Software Archive
Read-only legacy content
17061 Diskussionen

forrtl warning (402)

Intel_C_Intel
Mitarbeiter
475Aufrufe
What are the implications of creating an array temporary for a passed argument that causes forrtl warning (402) to be generated?
0 Kudos
1 Antworten
Steven_L_Intel1
Mitarbeiter
475Aufrufe
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
Antworten