Thanks all.
This test code is a little try. I need to refactor an old and complex code (about 800000 lines), http://www.tek-tips.com/
I wish to use module with inside array of structure instead of old common of arrays (array of fields).
Old code has, inside nested do cycles, several call to...
Is it possible speed up a code like this (array of derived type)?
program test
USE dati_m
type(dato), target,allocatable :: dat(:)
integer, pointer :: ip(:)
real tbegin, tend
allocate(dat(65000))
ip => dat%i1
call cpu_time(tbegin)
do j=1,5000
call set(ip,j)
end do...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.