rwesson/NEAT — Issue #19: Calculate arrays of diagnostic values outside the loop
Author: rwesson
Created: 2012-03-09 22:02:46+00:00
State: open

I think it's still true that calculating the diagnostics takes up a large fraction of the few tenths of a second each iteration takes at the moment. At the moment we calculate diagnostic ratios ~30 times per diagnostic per iteration, so maybe a few million times in total for 10,000 iterations. Instead, we could calculate tables of diagnostic ratios and the corresponding temperature/density outside the main loop, and replace the calculations in the loop with a lookup/interpolation routine.