src/oceanbox.cpp
//------------------------------------------------------------------------------
/*! \brief          A new year is starting. Zero flux variables.
 *  \param[in] t    Mean global temperature this year
 */
\brief          A new year is starting. Zero flux variables.
\param[in] t    Mean global temperature this year
\ brief A new year is starting . Zero flux variables . \ param [ in ] t Mean global temperature this year
void oceanbox::new_year( const unitval Tgav ) {
    for( unsigned i=0; i < connection_window.size(); i++ ){
        annual_box_fluxes[ connection_list[ i ] ] = unitval( 0.0, U_PGC_YR );
    }
    atmosphere_flux.set( 0.0, U_PGC );
    Tbox = compute_tabsC( Tgav );
    pco2_lastyear = Ca;
    dic_lastyear = mychemistry.convertToDIC( carbon );
}
void oceanbox :: new_year ( const unitval Tgav ) { for ( unsigned i = 0 ; i < connection_window . size ( ) ; i ++ ) { annual_box_fluxes [ connection_list [ i ] ] = unitval ( 0.0 , U_PGC_YR ) ; } atmosphere_flux . set ( 0.0 , U_PGC ) ; Tbox = compute_tabsC ( Tgav ) ; pco2_lastyear = Ca ; dic_lastyear = mychemistry . convertToDIC ( carbon ) ; }
\brief          A new year is starting.
\ brief A new year is starting .
// save for Revelle Calc