{"action":"opened","issue":{"url":"https://api.github.com/repos/NREL/EnergyPlus/issues/4915","labels_url":"https://api.github.com/repos/NREL/EnergyPlus/issues/4915/labels{/name}","comments_url":"https://api.github.com/repos/NREL/EnergyPlus/issues/4915/comments","events_url":"https://api.github.com/repos/NREL/EnergyPlus/issues/4915/events","html_url":"https://github.com/NREL/EnergyPlus/issues/4915","id":76721286,"number":4915,"title":"Cannot mix VS DX coils and VS WSHP coils in the same input file","user":{"login":"EnergyArchmage","id":8754769,"avatar_url":"https://avatars.githubusercontent.com/u/8754769?v=3","gravatar_id":"","url":"https://api.github.com/users/EnergyArchmage","html_url":"https://github.com/EnergyArchmage","followers_url":"https://api.github.com/users/EnergyArchmage/followers","following_url":"https://api.github.com/users/EnergyArchmage/following{/other_user}","gists_url":"https://api.github.com/users/EnergyArchmage/gists{/gist_id}","starred_url":"https://api.github.com/users/EnergyArchmage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EnergyArchmage/subscriptions","organizations_url":"https://api.github.com/users/EnergyArchmage/orgs","repos_url":"https://api.github.com/users/EnergyArchmage/repos","events_url":"https://api.github.com/users/EnergyArchmage/events{/privacy}","received_events_url":"https://api.github.com/users/EnergyArchmage/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NREL/EnergyPlus/labels/Defect","name":"Defect","color":"8b70b1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-15T13:04:53Z","updated_at":"2015-05-15T13:04:53Z","closed_at":null,"body":"A get input call and the wrong index variable resulting in a situation where models cannot have both Coil:Cooling:DX:VariableSpeed and Coil:Cooling:WaterToAirHeatPump:VariableSpeedEquationFit in the same input file.\r\n\r\nline 771 in VariableSpeedCoils.cc\r\n\r\n\t\t\tGetObjectItem( CurrentModuleObject, DXCoilNum, AlphArray, NumAlphas, NumArray, NumNums, IOStat, lNumericBlanks, lAlphaBlanks, cAlphaFields, cNumericFields );\r\n\r\nUse of DXCoilNum is wrong here, it includes the other types of coils such as VSWSHP that have already been setup in the same VarSpeedCoil structure.\r\n\r\nThe way the for loop is written it needs to be like this, (but WatertoAirHPNum is a poor name here) :\r\n\t\t\tGetObjectItem( CurrentModuleObject, WatertoAirHPNum, AlphArray, NumAlphas, NumArray, NumNums, IOStat, lNumericBlanks, lAlphaBlanks, cAlphaFields, cNumericFields );\r\n\r\n\r\n\r\n"}}