Skip to content

Commit

Permalink
added an assert that avoids simultaneous conservation of energy check…
Browse files Browse the repository at this point in the history
… and interzonal airflow for #1066
  • Loading branch information
Mathadon committed Jun 3, 2021
1 parent 29b4680 commit e70e33c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion IDEAS/BoundaryConditions/Interfaces/PartialSimInfoManager.mo
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ initial equation
if not linearise and computeConservationOfEnergy then
Etot = 0;
end if;

assert(not computeConservationOfEnergy or interzonalAirFlowType == IDEAS.BoundaryConditions.Types.InterZonalAirFlow.None,
"Conservation of energy check only not supported interzonalAirFlowType==None.");
equation
volumePort.V_tot + volumePort.V = 0;
areaPort.A_tot + areaPort.A = 0;
Expand Down

0 comments on commit e70e33c

Please sign in to comment.