cyclus/cyclus — pull request #973 by katyhuff (2014-07-16 21:12:58+00:00)
Title: Sum comp

I often find that I want the total mass of a CompMap I've just generated. Indeed, in order to use that CompMap to modify an actual material (say, with the Extract method), I have to know the quantity related to the compmap I want to extract. I need this basically all the time.

SO, in the comp_math class, I moved the Kahan summation step out of the normalization function into its own function. It's not clear to me whether this is allowed in the 1.0 series of releases. It doesn't break any functionality in the core API, but it does *add* a function to the core API. That is, after this change, no functionality disappears. However, a function does *appear*, namely the comp_math::Sum function.

I also wrote a simple test. I could write more if needed.

Thoughts?