示例#1
0
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);
    }
}
示例#2
0
 /**
  * Adds the counts in a second tracer to the current tracer.
  */
 inline trace_count& operator+=(trace_count &val) {
   incorporate(val);
   return *this;
 }