ResourceBuff improvements and better error handling.

* added eps arg to ResourceBuff::PopQty - default val is zero (we make no
  presumptions)

* ResourceBuff re-zeros qty_ member if all resources have been popped - to
  better deal with floating point issues.

* better error messages for ResourceBuff exceptions

* try-catch around RunSim to avoid core dumps when exceptions are thrown
That is true


On Thu, Jun 12, 2014 at 12:11 PM, Anthony Scopatz <notifications@github.com>
wrote:

> In src/toolkit/resource_buff.h:
>
> > @@ -87,7 +87,7 @@ class ResourceBuff {
> >    ///
> >    /// @throws ValueError the specified pop quantity is larger (by
> >    /// eps_rsrc()) than the store's current quantity.
> > -  Manifest PopQty(double qty);
> > +  Manifest PopQty(double qty, double eps = 0);
>
> I thought that the style guide said that we can't use default values?
> Don't you have to explicitly overload the function?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/cyclus/cyclus/pull/947/files#r13713458>.
>



-- 
Matthew Gidden
Ph.D. Candidate, Nuclear Engineering
The University of Wisconsin -- Madison
Ph. 225.892.3192