Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

how to iterate on components of a derived type

$
0
0

! Just curious, is it possible to have any algorithm to iterate on V1 to V10?

! In a way like ...

do i=1,10

V_current=MyList%V[i]

end do

TYPE::MyList
  integer::V1,V2,V3,V4,V5,V6,V7,V8,V9,V10
END TYPE MyList


Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>