Skip to content

Commit

Permalink
Merge develop, fix meter ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
amirroth committed Nov 4, 2023
1 parent a238a12 commit 6e1406a
Showing 1 changed file with 30 additions and 26 deletions.
56 changes: 30 additions & 26 deletions src/EnergyPlus/PollutionModule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -473,33 +473,37 @@ void SetupPollutionMeterReporting(EnergyPlusData &state)
{},
"");
}
} // End of the NumEnergyTypes Do Loop

// Setup ElectricityPurchased and ElectricitySold variables
SetupOutputVariable(state,
"Environmental Impact Purchased Electricity Source Energy",
OutputProcessor::Unit::J,
pm->pollComps[(int)PollFuelComponent::ElectricityPurchased].sourceVal,
OutputProcessor::SOVTimeStepType::System,
OutputProcessor::SOVStoreType::Summed,
"Site",
{},
"Source",
"PurchasedElectricityEmissions",
{},
"");
SetupOutputVariable(state,
"Environmental Impact Surplus Sold Electricity Source",
OutputProcessor::Unit::J,
pm->pollComps[(int)PollFuelComponent::ElectricitySurplusSold].sourceVal,
OutputProcessor::SOVTimeStepType::System,
OutputProcessor::SOVStoreType::Summed,
"Site",
{},
"Source",
"SoldElectricityEmissions",
{},
"");
if (fuel == Constant::eFuel::Electricity) {
// Setup ElectricityPurchased and ElectricitySold variables
// Doing this here as opposed to outside the outer loop to preserve meter order and reduce ordering diffs
SetupOutputVariable(state,
"Environmental Impact Purchased Electricity Source Energy",
OutputProcessor::Unit::J,
pm->pollComps[(int)PollFuelComponent::ElectricityPurchased].sourceVal,
OutputProcessor::SOVTimeStepType::System,
OutputProcessor::SOVStoreType::Summed,
"Site",
{},
"Source",
"PurchasedElectricityEmissions",
{},
"");
SetupOutputVariable(state,
"Environmental Impact Surplus Sold Electricity Source",
OutputProcessor::Unit::J,
pm->pollComps[(int)PollFuelComponent::ElectricitySurplusSold].sourceVal,
OutputProcessor::SOVTimeStepType::System,
OutputProcessor::SOVStoreType::Summed,
"Site",
{},
"Source",
"SoldElectricityEmissions",
{},
"");
}

} // End of the NumEnergyTypes Do Loop

// And Total Carbon Equivalent variables
SetupOutputVariable(state,
Expand Down

5 comments on commit 6e1406a

@nrel-bot-3
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pollution1 (amirroth) - x86_64-MacOS-10.17-clang-14.0.0: OK (3540 of 3540 tests passed, 3 test warnings)

Messages:\n

  • 3 tests had: ERR diffs.

Build Badge Test Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pollution1 (amirroth) - Win64-Windows-10-VisualStudio-16: OK (2753 of 2753 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-2c
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pollution1 (amirroth) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-UnitTestsCoverage-Debug: OK (1966 of 1966 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

@nrel-bot-2b
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pollution1 (amirroth) - x86_64-Linux-Ubuntu-22.04-gcc-11.4: OK (3581 of 3581 tests passed, 3 test warnings)

Messages:\n

  • 3 tests had: ERR diffs.

Build Badge Test Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pollution1 (amirroth) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-IntegrationCoverage-Debug: OK (790 of 790 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

Please sign in to comment.