void Chemistry::incorporate (const Geometry& geo, const IM& im, const Volume& volume, Treelog& msg) { const Unit& unit = units.get_unit (Chemical::surface_storage_unit ()); for (IM::const_iterator i = im.begin (); i != im.end (); i++) { const symbol chem = *i; const double amount = im.get_value (chem, unit); incorporate (geo, chem, amount, volume, msg); } }
/** * Adds the counts in a second tracer to the current tracer. */ inline trace_count& operator+=(trace_count &val) { incorporate(val); return *this; }