-
Notifications
You must be signed in to change notification settings - Fork 467
Catch EMS variables initialized after reference #11409
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
Changes from 12 commits
8623d71
ead50b6
65966b8
d039752
69e2e71
c1c2bee
68543c1
cf65f57
9f9c099
590e0ad
836fd7e
b0bb17c
bf8e227
9817171
4d1b4aa
0ed3853
e63954f
0388944
fc9f8d1
7ab44a1
00da99c
d60fe2c
58cddd5
fa13d1c
250d892
e729a79
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8114,16 +8114,16 @@ | |
| Run SumIntakeMassFlowHeatCap, !- <none> | ||
| Run SumReliefAirMCTterm, !- <none> | ||
| Run CalcWindTerms, !- <none> | ||
| Run CalcBouyancyTerms, !- <none> | ||
| SEt Numerator = WindMCT + NatBouyMCT + SumHATroof + QdotCond + SumReliefMCT, !- <none> | ||
| Set Numerator = WindMCT + NatBouyMCT + SumHATroof + QdotCond + SumReliefMCT, !- <none> | ||
| Set Denominator = WindMC + NatBouyMC + SumHAroof + SumIntakeMdotCp, !- <none> | ||
| Set Troof = Numerator / Denominator, !- <none> | ||
| IF Ta < 2.0, !- <none> | ||
| Set Troof = Ta, !- <none> | ||
| ENDIF, !- <none> | ||
| IF Troof < Twb, !- <none> | ||
| Set Twb = Troof - 0.2, !- <none> | ||
| ENDIF; !- <none> | ||
|
Comment on lines
-8117
to
-8126
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Something weird going on in this program. Here
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mitchute Any ideas here?
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed. |
||
| ENDIF, !- <none> | ||
| Run CalcBouyancyTerms; !- <none> | ||
|
|
||
| EnergyManagementSystem:Program, | ||
| ApplyMicroClimeActuators,!- Name | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8143,6 +8143,11 @@ | |
| Yes, !- Output ExtShd | ||
| Yes; !- Output Tarcog | ||
|
|
||
| Output:EnergyManagementSystem, | ||
| Verbose, !- Actuator Availability Dictionary Reporting | ||
| Verbose, !- Internal Variable Availability Dictionary Reporting | ||
| Verbose; !- EMS Runtime Language Debug Output Level | ||
|
||
|
|
||
| !- =========== ALL OBJECTS IN CLASS: OUTPUT:JSON =========== | ||
|
|
||
| Output:JSON, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The basic idea here is to do what we were doing before, unless the uninitialized variable is either a global/internal variable. If it isn't global/internal, set
seriousErrorFound = true. If it is, let it slide.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like a reasonable approach.