src/oceanbox.cpp
//------------------------------------------------------------------------------
/*! \brief initialize basic information in an oceanbox
 */
\brief initialize basic information in an oceanbox
\ brief initialize basic information in an oceanbox
void oceanbox::initbox( unitval C, string N ) {
    connection_list.clear();
    connection_k.clear();
    carbonHistory.clear(); 
    carbonLossHistory.clear();
    connection_window.clear();
    annual_box_fluxes.clear();
    set_carbon( C );
    if( N != "" ) Name = N;
    CarbonToAdd.set( 0.0, U_PGC );  
    active_chemistry = false;
    OB_LOG( logger, Logger::NOTICE) << "hello " << N << endl;
}
void oceanbox :: initbox ( unitval C , string N ) { connection_list . clear ( ) ; connection_k . clear ( ) ; carbonHistory . clear ( ) ; carbonLossHistory . clear ( ) ; connection_window . clear ( ) ; annual_box_fluxes . clear ( ) ; set_carbon ( C ) ; if ( N != " " ) Name = N ; CarbonToAdd . set ( 0.0 , U_PGC ) ; active_chemistry = false ; OB_LOG ( logger , Logger :: NOTICE ) << " " << N << endl ; }
\brief initialize basic information in an oceanbox
\ brief initialize basic information in an oceanbox
// Reset the box to its pristine state // each box is separate from each other, and we keep track of carbon in each box.