Fix an incorrect if Block Condition in VariableSpeedCoils.cc#11463
Fix an incorrect if Block Condition in VariableSpeedCoils.cc#11463
Conversation
|
Looking a bit closer, that field will never come in blank since we have a default value set, so we don't even need that check. Not spending more cycles on this one, but this is possibly another avenue for input cleanups going forward. |
| cFieldName = "Condenser Type"; // cAlphaFields(6) | ||
| std::string const condenserType = s_ip->getAlphaFieldValue(fields, schemaProps, "condenser_type"); | ||
| if ((Util::SameString(condenserType, "AirCooled")) || cFieldName.empty()) { | ||
| if ((Util::SameString(condenserType, "AirCooled")) || condenserType.empty()) { |
There was a problem hiding this comment.
Nothing to do here. I am just reiterating IDD rules. This is not a required-field so the user can leave this field blank. Since it has a default a blank field will be filled with AirCooled by the input processor. So by the time code execution gets here (i.e., after the InputProcessor has executed) there are only 2 possible inputs, AirCooled or EvaporativelyCooled. This field can never be blank.
Coil:Cooling:DX:VariableSpeed,
A7, \field Condenser Type
\type choice
\key AirCooled
\key EvaporativelyCooled
\default AirCooled
There was a problem hiding this comment.
Thanks for the input. Maybe we can remove this check later.
Pull request overview
Description of the purpose of this PR
Pull Request Author
Reviewer