Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29251 Discussions

Re: Improving execution speed with derived types [ NEW ]

jcac
Beginner
364 Views
Jim,
Thank you for the suggestion. I have tried it out and it is actually slightly slower.
The results from the program are:
Time for derived type test: 1.703125 seconds
Time for modified test: 1.765265 seconds
For comparison the array takes 0.46875 seconds
These timings are for 100 cycles with 100,000 particles. The test machine is a laptop with a Pentium M 2.0GHz processor running Windows XP. I am using the version 9.0 compiler, as I am new to it I am just using the default settings for the Release version.
James
0 Kudos
0 Replies
Reply