12 return m_->quantity();
31 std::set<Nuc>::iterator it ;
32 for (it = nucs.begin(); it != nucs.end(); ++it) {
49 std::set<Nuc>::iterator it ;
50 for (it = nucs.begin(); it != nucs.end(); ++it) {
51 if (v.find(*it) != v.end()){
75 CompMap n1 = m_->comp()->mass();
76 CompMap n2 = other->comp()->mass();
92 for (it = m_other.begin(); it != m_other.end(); ++it) {
94 double qty_other = it->second;
95 if (m.count(nuc) == 0 && qty_other > 0) {
100 double ratio =
qty / qty_other;
101 if (ratio < min_ratio) {
107 double mult = min_ratio *
qty();
110 for (it = m_other.begin(); it != m_other.end(); ++it) {
boost::shared_ptr< Composition > Ptr
boost::shared_ptr< Material > Ptr
bool AlmostEq(const CompMap &v1, const CompMap &v2, double threshold)
Returns true if all nuclides of v1 and v2 are the same within threshold.
void Normalize(CompMap *v, double val)
The sum of quantities of all nuclides of v is normalized to val.
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....
std::map< Nuc, double > CompMap
a raw definition of nuclides and corresponding (dimensionless quantities).
static const double CY_LARGE_DOUBLE
maximum (+) value for a linear variable
double atomic_mass(int nuc)
Returns the atomic mass of a nuclide nuc.