Hey,
I've come across a really odd problem. I've been using flow_tools (in my repo) to calculate things on the fly like rms Re, peak Re, for low Ra number convective steady states. I run a convection simulation which outputs the rms Re to the screen every 25 iterations. I also dump the u and w fields every 1000 iterations to hdf5 files. I've also written a script that reads in the latest u,w dump from a bunch of different simulations, and then calculates the rms Re, etc., as a way of seeing how these quantities change as a function of Ra, height of the box, and other control parameters. Now the weird thing is that the rms Re I calculate in post-processing is different from what is output to the screen from flow_tools. Furthermore, I've discovered that depending on what other quantities I'm calculating on the fly (like volume averaged KE, rms velocity), the rms Re and peak Re calculated by flow_tools changes, even though the flow is the same (same initial conditions and evolution equations)! It seems that the quantities I calculate within my problem script are all being calculated correctly; it's only things that are being calculated using flow_tools that are having this problem.
Daniel