Skip to content

Commit

Permalink
Merge pull request #10781 from NREL/FixEMPD
Browse files Browse the repository at this point in the history
Address 24.2 EMPD Issue
  • Loading branch information
Myoldmopar authored Oct 3, 2024
2 parents 566decb + a877aeb commit 94a8878
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EnergyPlus/MoistureBalanceEMPDManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ void GetMoistureBalanceEMPDInput(EnergyPlusData &state)

auto const &constr = state.dataConstruction->Construct(surf.Construction);
auto const *mat = dynamic_cast<const MaterialEMPD *>(s_mat->materials(constr.LayerPoint(constr.TotLayers)));
assert(mat != nullptr);
// assert(mat != nullptr);

if (mat->mu > 0.0 && surf.Zone > 0) {
if (mat && mat->mu > 0.0 && surf.Zone > 0) {
EMPDzone(surf.Zone) = true;
} else {
++state.dataMoistureBalEMPD->ErrCount;
Expand Down

4 comments on commit 94a8878

@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.

develop (Myoldmopar) - x86_64-Linux-Ubuntu-22.04-gcc-11.4: OK (2916 of 2916 tests passed, 0 test warnings)

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.

develop (Myoldmopar) - Win64-Windows-10-VisualStudio-16: OK (2894 of 2894 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.

develop (Myoldmopar) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-UnitTestsCoverage-RelWithDebInfo: OK (2098 of 2098 tests passed, 0 test warnings)

Build Badge Test Badge Coverage 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.

develop (Myoldmopar) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-IntegrationCoverage-RelWithDebInfo: OK (801 of 801 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

Please sign in to comment.