Quote Originally Posted by qt_gotcha View Post
if you are still following this, by far the most operations are of the kind:
for r = 0 to nrrows
for c = 0 to nrcols
do somthing

are tghese for loops expnsive and can it be done more efficient?
thanks

edit: I see there is tons of this on the internet, I''ll start reading...

>>snippet from previous message
This type of models typically simulate the water balance for gridded maps of 500x500 cells and use some 400 steps to do that<<
It's the work done in the loops that can get expensive, with the possibilibty of each of the 400 steps processed serially. Without changing the core of your the application, apply const to all the variables that should be/are constant, especially inside those loops.

How long does it take to process a typical model?