-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Write out full bgb data x make differences derivatives #786
Write out full bgb data x make differences derivatives #786
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thumbs up for this. I guess this will somewhat collide with PR #787, but those conflicts should be straightforward to fix.
The ionosphere test is sensitive. Here I assume that we got one or more cells that were (not) coupled in (or ditched), probably/hopefully due to numerics, and that shows up as a O(10¹⁰ m²) diff in upmapped area. Bummer. |
For the record here: upon closer inspection I see that the diffs of order 10¹⁰ are actually relative O(10⁻⁴) and the diffs in the coordinates mapped are up to maybe 15 km, with the dx being 7500 km in Ionosphere_small. So this comes from differences in the tracing and maybe from the many iterations of the ionosphere solver (every step). The actual upmapped area is identical to the eye and to 4 digits in VisIt. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Urgh, this datareducer.cpp diff is hideous.
And, what you've now got is a huge amount of duplication, as it has basically a giant construction at the beginning for this one special case of BGB writing.
Wouldn't it be possible that if one is requesting the bgb writeout, the initialization would replace the list of datareducers read from the config with one provided (which has only the bgb values, derivatives, etc)?
The reason I'm also thinking about this is that merging this with Jaro's much more elegant and re-using labmda approach will be a nightmare, whereas if the bgb writing only tampers with the list of reducers to make, it'll be much more straightforward.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh that is so much easier to diff-analyse! Thank you! Still a lot of changes to go through though, I'll try to check them all tomorrow.
Want to check about volumetric d's though: here they aren't being divided by the dx, dy or dz. But looking at derivatives.cpp they also look they are differences, not derivatives?
Oh, one more thing, |
Summary of our discussion with Markus, so I remember what to code after lunch:
|
Oh, since there will be a big bunch of outputs now, should we actually use instead of separate |
… and remove the fsgrid background field dbidi derivatives.
…ifferences_derivatives' into HEAD
There must be rotten reference data, this PR doesn't touch the insides of the code, only IO. |
Right so this has two bugs in the merge to get all variables written out in |
Hooray |
So, merge this? |
This combines #711 and #727 to make sure they are consistent.