On Wed, Sep 4, 2013 at 11:26 AM, Robert Carlsen <notifications@github.com>wrote:

> In src/Core/comp_math.cc:
>
> > +void Normalize(CompMap* v, double val) {
> > +  std::vector<double> vec;
> > +  for (CompMap::iterator it = v->begin(); it != v->end(); ++it) {
> > +    vec.push_back(it->second);
> > +  }
> > +
> > +  double sum = CycArithmetic::KahanSum(vec);
> > +  if (sum != val && sum != 0) {
> > +    for (CompMap::iterator it = v->begin(); it != v->end(); ++it) {
> > +      (*v)[it->first] = it->second / sum * val;
> > +    }
> > +  }
> > +}
> > +
> > +bool ValidIsos(const CompMap& v) {
> > +  int min = 1001;
>
> We will need to revisit the the naming (aaazzz) stuff anyway. As it stands
> now, we haven't really even addressed metastable states.
>
agreed

> —
> Reply to this email directly or view it on GitHub<https://github.com/cyclus/cyclus/pull/565/files#r6158591>
> .
>