Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduled TES SetPointManager OpMode flags do not match OpMode flags in PlantCondLoopOperation #8452

Open
3 tasks
mitchute opened this issue Jan 7, 2021 · 0 comments
Assignees
Labels
Defect Includes code to repair a defect in EnergyPlus

Comments

@mitchute
Copy link
Collaborator

mitchute commented Jan 7, 2021

Issue overview

While working on more global state refactoring, I was moving the OpMode int const flags to an enum class.

int const HeatingOp(1); // Constant for Heating Operation
int const CoolingOp(2); // Constant for Cooling Operation
int const DualOp(3); // Constant for Cooling or Heating Operation

In doing so, I discovered that they were being compared against similar int const flags in SetPointManager.

int const CoolOpComp(1); // a component that cools only (chillers)
int const DualOpComp(2); // a component that heats or cools (ice storage tank)

However, the values do not line up between the two separate sets of int flags. I've fixed the bug locally in my branch, here, but I could also get this part merged in to develop before merging my next global PR.

Details

Some additional details for this issue (if relevant):

  • Version of EnergyPlus (9.4.0 - 637ea91)

Checklist

Add to this list or remove from it as applicable. This is a simple templated set of guidelines.

  • Defect file added (list location of defect file here)
  • Ticket added to Pivotal for defect (development team task)
  • Pull request created (the pull request will have additional tasks related to reviewing changes that fix this defect)
@mitchute mitchute added the Defect Includes code to repair a defect in EnergyPlus label Jan 7, 2021
@mitchute mitchute added this to the EnergyPlus 9.5.0 milestone Jan 7, 2021
@mitchute mitchute self-assigned this Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Defect Includes code to repair a defect in EnergyPlus
Projects
None yet
Development

No branches or pull requests

1 participant