Skip to content

Commit

Permalink
Merge pull request #9067 from NREL/reduceDaylightingAllocations
Browse files Browse the repository at this point in the history
Reduce daylighting allocations
  • Loading branch information
Myoldmopar authored Sep 20, 2021
2 parents f9329de + ca9a4b4 commit bd5c127
Show file tree
Hide file tree
Showing 4 changed files with 250 additions and 161 deletions.
3 changes: 3 additions & 0 deletions src/EnergyPlus/DataSurfaces.hh
Original file line number Diff line number Diff line change
Expand Up @@ -1646,6 +1646,8 @@ struct SurfacesData : BaseGlobalStruct
EPVector<DataSurfaces::SurroundingSurfacesProperty> SurroundingSurfsProperty;
EPVector<DataSurfaces::IntMassObject> IntMassObjects;

int actualMaxSlatAngs = DataSurfaces::MaxSlatAngs; // If there are no blinds in the model, then this is changed to 1 (used for shades)

void clear_state() override
{
this->TotSurfaces = 0;
Expand Down Expand Up @@ -1986,6 +1988,7 @@ struct SurfacesData : BaseGlobalStruct
this->SurfLocalEnvironment.deallocate();
this->SurroundingSurfsProperty.deallocate();
this->IntMassObjects.deallocate();
this->actualMaxSlatAngs = DataSurfaces::MaxSlatAngs;
}
};

Expand Down
Loading

0 comments on commit bd5c127

Please sign in to comment.