Skip to content

Commit

Permalink
Update FT to avoid error using deprecated. is this still needed? @jos…
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarrec committed Sep 11, 2020
1 parent 55d0899 commit 8902811
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/energyplus/ForwardTranslator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ Workspace ForwardTranslator::translateModelPrivate( model::Model & model, bool f
}
}

// TODO: Is this still needed?
// ensure shading controls only reference windows in a single zone and determine control sequence number
// DLM: ideally E+ would not need to know the zone, shading controls could work across zones
std::vector<ShadingControl> shadingControls = model.getConcreteModelObjects<ShadingControl>();
Expand Down Expand Up @@ -479,7 +480,7 @@ Workspace ForwardTranslator::translateModelPrivate( model::Model & model, bool f
thisZoneHandleSet.insert(zoneHandle);
ShadingControl clone = shadingControl.clone(model).cast<ShadingControl>();
// assign clone to control subSurface
subSurface.setShadingControl(clone);
clone.addSubSurface(subSurface);
auto it = zoneHandleToShadingControlVectorMap.find(zoneHandle);
if (it == zoneHandleToShadingControlVectorMap.end()) {
zoneHandleToShadingControlVectorMap.insert(std::make_pair(zoneHandle, std::vector<ShadingControl>()));
Expand Down

0 comments on commit 8902811

Please sign in to comment.