src/simpleNbox.cpp
//------------------------------------------------------------------------------
/*! \brief      Compute global net primary production
 *  \returns    Annual NPP summed across all biomes
 */
\brief      Compute global net primary production
\returns    Annual NPP summed across all biomes
\ brief Compute global net primary production \ returns Annual NPP summed across all biomes
unitval SimpleNbox::sum_npp() const
{
    unitval total( 0.0, U_PGC_YR );
    for( unitval_stringmap::const_iterator it = veg_c.begin(); it != veg_c.end(); it++ ) {
        total = total + npp( it->first );
    }
    return total;
}
unitval SimpleNbox :: sum_npp ( ) const { unitval total ( 0.0 , U_PGC_YR ) ; for ( unitval_stringmap :: const_iterator it = veg_c . begin ( ) ; it != veg_c . end ( ) ; it ++ ) { total = total + npp ( it -> first ) ; } return total ; }
\brief      Compute global net primary production
  \returns    Annual NPP summed across all biomes
\ brief Compute global net primary production \ returns Annual NPP summed across all biomes