src/oceanbox.cpp
//------------------------------------------------------------------------------
/*! \brief Update to a new carbon state
 */
\brief Update to a new carbon state
\ brief Update to a new carbon state
void oceanbox::update_state() {
	carbonHistory.insert( carbonHistory.begin (), carbon.value( U_PGC ) );
	carbon = carbon + CarbonToAdd + atmosphere_flux;
	H_ASSERT( carbon.value( U_PGC ) >= 0.0, "box carbon is negative" );
	CarbonToAdd.set( 0.0, U_PGC );
}
void oceanbox :: update_state ( ) { carbonHistory . insert ( carbonHistory . begin ( ) , carbon . value ( U_PGC ) ) ; carbon = carbon + CarbonToAdd + atmosphere_flux ; H_ASSERT ( carbon . value ( U_PGC ) >= 0.0 , " " ) ; CarbonToAdd . set ( 0.0 , U_PGC ) ; }
\brief Update to a new carbon state
\ brief Update to a new carbon state