-
Notifications
You must be signed in to change notification settings - Fork 464
Cleanout UtilityRoutines #11438
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
base: develop
Are you sure you want to change the base?
Cleanout UtilityRoutines #11438
Changes from all commits
b3ee9f8
55aca74
b027210
771dc28
3c23b5a
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 |
|---|---|---|
|
|
@@ -558,7 +558,7 @@ void GetNodeListsInput(EnergyPlusData &state, bool &ErrorsFound) // Set to true | |
| for (int Loop = 1; Loop <= state.dataNodeInputMgr->NumOfNodeLists; ++Loop) { | ||
| state.dataInputProcessing->inputProcessor->getObjectItem( | ||
| state, CurrentModuleObject, Loop, cAlphas, NumAlphas, rNumbers, NumNumbers, IOStatus); | ||
| if (Util::IsNameEmpty(state, cAlphas(1), CurrentModuleObject, localErrorsFound)) { | ||
| if (cAlphas(1).empty()) { | ||
| continue; | ||
| } | ||
|
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. |
||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -331,7 +331,6 @@ namespace Photovoltaics { | |
|
|
||
| ErrorObjectHeader eoh{routineName, s_ipsc->cCurrentModuleObject, s_ipsc->cAlphaArgs(1)}; | ||
|
|
||
| Util::IsNameEmpty(state, s_ipsc->cAlphaArgs(1), s_ipsc->cCurrentModuleObject, ErrorsFound); | ||
| state.dataPhotovoltaic->PVarray(PVnum).Name = s_ipsc->cAlphaArgs(1); | ||
|
|
||
| state.dataPhotovoltaic->PVarray(PVnum).SurfaceName = s_ipsc->cAlphaArgs(2); | ||
|
|
@@ -472,7 +471,7 @@ namespace Photovoltaics { | |
|
|
||
| ErrorObjectHeader eoh{routineName, s_ipsc->cCurrentModuleObject, s_ipsc->cAlphaArgs(1)}; | ||
|
|
||
| if (Util::IsNameEmpty(state, s_ipsc->cAlphaArgs(1), s_ipsc->cCurrentModuleObject, ErrorsFound)) { | ||
| if (s_ipsc->cAlphaArgs(1).empty()) { | ||
| continue; | ||
| } | ||
|
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. This one should be required (because it is checked as such) but it's not so this is OK. I suspect all object names should be required-field but there may be exceptions. i.e., be careful which one of these checks get deleted. I always check the idd when adding/removing input checks.
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. The next 2 are OK as-is (Name is not a required field). |
||
| tmpSimpleModuleParams(ModNum).Name = s_ipsc->cAlphaArgs(1); | ||
|
|
@@ -518,7 +517,7 @@ namespace Photovoltaics { | |
| s_ipsc->cNumericFieldNames); | ||
|
|
||
| ErrorObjectHeader eoh{routineName, s_ipsc->cCurrentModuleObject, s_ipsc->cAlphaArgs(1)}; | ||
| if (Util::IsNameEmpty(state, s_ipsc->cAlphaArgs(1), s_ipsc->cCurrentModuleObject, ErrorsFound)) { | ||
| if (s_ipsc->cAlphaArgs(1).empty()) { | ||
| continue; | ||
| } | ||
| tmpTRNSYSModuleParams(ModNum).Name = s_ipsc->cAlphaArgs(1); | ||
|
|
@@ -570,7 +569,7 @@ namespace Photovoltaics { | |
| s_ipsc->lAlphaFieldBlanks, | ||
| s_ipsc->cAlphaFieldNames, | ||
| s_ipsc->cNumericFieldNames); | ||
| if (Util::IsNameEmpty(state, s_ipsc->cAlphaArgs(1), s_ipsc->cCurrentModuleObject, ErrorsFound)) { | ||
| if (s_ipsc->cAlphaArgs(1).empty()) { | ||
| continue; | ||
| } | ||
|
|
||
|
|
||
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.
Don't need this check because:
This test:
gives this error from the InputProcessor: