Skip to content

Commit e5c4bbc

Browse files
committed
Update Class.J_HeatingManagementBuildingHybridHeatPump.java
1 parent a8d6fa5 commit e5c4bbc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

_alp/Classes/Class.J_HeatingManagementBuildingHybridHeatPump.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ public void initializeAssets() {
9494
if (gc.p_heatBuffer != null) {
9595
throw new RuntimeException(this.getClass() + " does not support heat buffers.");
9696
}
97-
if (gc.p_BuildingThermalAsset == null) {
97+
if (gc.p_BuildingThermalAsset != null) {
98+
this.building = gc.p_BuildingThermalAsset;
99+
}
100+
else {
98101
throw new RuntimeException(this.getClass() + " requires a building asset.");
99102
}
100103
if (gc.c_heatingAssets.size() != 2) {

0 commit comments

Comments
 (0)