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()){
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).
T OptionalQuery(InfileTree *tree, std::string query, T default_val)
a query method for optional parameters
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.