src/simpleNbox.cpp
//------------------------------------------------------------------------------
/*! \brief            transfer model pools to flat array (for ODE solver)
 *  \param[in] t  time, double, the date from which ODE solver is starting
 *  \param[in] c  flat array of carbon pools (no units)
 */
\brief            transfer model pools to flat array (for ODE solver)
\param[in] t  time, double, the date from which ODE solver is starting
\param[in] c  flat array of carbon pools (no units)
\ brief transfer model pools to flat array ( for ODE solver ) \ param [ in ] t time double the date from which ODE solver is starting \ param [ in ] c flat array of carbon pools ( no units )
void SimpleNbox::getCValues( double t, double c[] )
{
    c[ SNBOX_ATMOS ] = atmos_c.value( U_PGC );
    c[ SNBOX_VEG ] = sum_map( veg_c ).value( U_PGC );
    c[ SNBOX_DET ] = sum_map( detritus_c ).value( U_PGC );
    c[ SNBOX_SOIL ] = sum_map( soil_c ).value( U_PGC );
    omodel->getCValues( t, c );
    c[ SNBOX_EARTH ] = earth_c.value( U_PGC );
    ODEstartdate = t;
}
void SimpleNbox :: getCValues ( double t , double c [ ] ) { c [ SNBOX_ATMOS ] = atmos_c . value ( U_PGC ) ; c [ SNBOX_VEG ] = sum_map ( veg_c ) . value ( U_PGC ) ; c [ SNBOX_DET ] = sum_map ( detritus_c ) . value ( U_PGC ) ; c [ SNBOX_SOIL ] = sum_map ( soil_c ) . value ( U_PGC ) ; omodel -> getCValues ( t , c ) ; c [ SNBOX_EARTH ] = earth_c . value ( U_PGC ) ; ODEstartdate = t ; }
\brief            transfer model pools to flat array (for ODE solver)
  \param[in] t  time, double, the date from which ODE solver is starting
  \param[in] c  flat array of carbon pools (no units)
\ brief transfer model pools to flat array ( for ODE solver ) \ param [ in ] t time double the date from which ODE solver is starting \ param [ in ] c flat array of carbon pools ( no units )