MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / setWWR

Function setWWR

src/model/test/ModelMerger_GTest.cpp:32–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30using namespace openstudio::model;
31
32unsigned setWWR(Space& space, double wwr) {
33 unsigned windowsAdded = 0;
34 for (Surface& surface : space.surfaces()) {
35 if (istringEqual(surface.surfaceType(), "Wall")) {
36 boost::optional<SubSurface> subSurface = surface.setWindowToWallRatio(wwr);
37 if (subSurface) {
38 windowsAdded += 1;
39 }
40 }
41 }
42 return windowsAdded;
43}
44
45TEST_F(ModelFixture, ModelMerger_Initial_Empty) {
46

Callers 1

TEST_FFunction · 0.85

Calls 4

istringEqualFunction · 0.85
setWindowToWallRatioMethod · 0.80
surfacesMethod · 0.45
surfaceTypeMethod · 0.45

Tested by

no test coverage detected