Skip to content

Commit

Permalink
Merge pull request #3800 from NREL/3799_thermalComfortModelTypeValues
Browse files Browse the repository at this point in the history
Fix PeopleDefinition::thermalComfortModelTypeValues
  • Loading branch information
jmarrec authored Dec 4, 2019
2 parents c07a246 + 0460f87 commit 51a8b94
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/model/PeopleDefinition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,10 @@ std::vector<std::string> PeopleDefinition::meanRadiantTemperatureCalculationType
}

std::vector<std::string> PeopleDefinition::thermalComfortModelTypeValues() {
return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
OS_People_DefinitionExtensibleFields::ThermalComfortModelType);
IddObject obj = IddFactory::instance().getObject(iddObjectType()).get();
// Return IddKeyNames in extensible portion
return getIddKeyNames(obj,
obj.numFields() + OS_People_DefinitionExtensibleFields::ThermalComfortModelType);
}

std::string PeopleDefinition::numberofPeopleCalculationMethod() const {
Expand Down

0 comments on commit 51a8b94

Please sign in to comment.