Skip to content

Commit

Permalink
Deallocate CoilLatentStuff if already allocated during multi-file tra…
Browse files Browse the repository at this point in the history
…nsition
  • Loading branch information
Myoldmopar committed Sep 20, 2023
1 parent 5de2874 commit cc607cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Transition/CreateNewIDFUsingRulesV23_2_0.f90
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ SUBROUTINE CreateNewIDFUsingRules(EndOfFile,DiffOnly,InLfn,AskForInput,InputFile
NumUnitarySystem = GetNumObjectsFound('AIRLOOPHVAC:UNITARYSYSTEM')
NumUnitaryWAHP = GetNumObjectsFound('AIRLOOPHVAC:UNITARYHEATPUMP:WATERTOAIR')
NumZoneWAHP = GetNumObjectsFound('ZONEHVAC:WATERTOAIRHEATPUMP')
IF (ALLOCATED(CoilLatentStuff)) DEALLOCATE(CoilLatentStuff)
ALLOCATE(CoilLatentStuff(NumUnitarySystem + NumUnitaryWAHP + NumZoneWAHP))
NumCoilLatentStuff = 0
DO Num=1,NumIDFRecords
Expand Down

1 comment on commit cc607cb

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PrepForV232 (Myoldmopar) - Win64-Windows-10-VisualStudio-16: OK (2747 of 2747 tests passed, 0 test warnings)

Build Badge Test Badge

Please sign in to comment.