Addition of Error Messages for Cases where Simulation Control Do HVAC is Set to Yes but No Plant:Sizing Objects Present #11140
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull request overview
Description of the purpose of this PR
It was noticed that when in the SimulationControl object that a user says "Yes" for the Do HVAC Sizing Simulation for Sizing Periods field without having any Sizing:Plant objects in the input that a hard crash results which is undesirable.
Now, when the user sets this field to "Yes" without any Sizing:Plant objects, one of two things happen. If the Do Plant Sizing Calculation field is set to "No", this overrides the user input for Do HVAC Sizing Simulation for Sizing Periods field and a warning error is produced. If the Do Plant Sizing Calculation field is set to "Yes", EnergyPlus will produce a severe/error warning stating that at least one Sizing:Plant object must be entered or these fields should both be set to "No".
A new unit test verifying the correct severe/fatal error is being produced under the correct conditions (both "Yes" and no Sizing:Plant objects). In addition, the description of the Do HVAC Sizing Simulation for Sizing Periods field was enhanced in the Input Output Reference so that it is clear what is required of the user.
Pull Request Author
Reviewer