Skip to content

Commit

Permalink
Allow retrieving CO, VOC, and NOX emissions
Browse files Browse the repository at this point in the history
  • Loading branch information
ashiklom committed Nov 8, 2019
1 parent 0e41d14 commit 55980ac
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/oh_component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,16 @@ unitval OHComponent::getData( const std::string& varName,
if( varName == D_LIFETIME_OH ) {
H_ASSERT( date != Core::undefinedIndex(), "Date required for OH lifetime" );
returnval = TAU_OH.get( date );
} else {
} else if ( varName == D_EMISSIONS_CO ) {
H_ASSERT( date != Core::undefinedIndex(), "Date required for CO emissions" );
returnval = CO_emissions.get( date );
} else if ( varName == D_EMISSIONS_NMVOC ) {
H_ASSERT( date != Core::undefinedIndex(), "Date required for NMVOC emissions" );
returnval = NMVOC_emissions.get( date );
} else if ( varName == D_EMISSIONS_NOX ) {
H_ASSERT( date != Core::undefinedIndex(), "Date required for NOX emissions" );
returnval = NOX_emissions.get( date );
} else {
H_THROW( "Caller is requesting unknown variable: " + varName );
}

Expand Down

0 comments on commit 55980ac

Please sign in to comment.