Skip to content

Commit

Permalink
Merge pull request #10800 from drjfloyd/master
Browse files Browse the repository at this point in the history
FDS Source: Fix DN%ZZ0 and %TMP allocation and initialization.
  • Loading branch information
drjfloyd committed Jul 20, 2022
2 parents 10e05f9 + ec2687d commit e9c1511
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/hvac.f90
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,7 @@ SUBROUTINE PROC_HVAC
DN%ZZ(1:N_TRACKED_SPECIES) = SPECIES_MIXTURE(1:N_TRACKED_SPECIES)%ZZ0
ALLOCATE(DN%ZZ_OLD(N_TRACKED_SPECIES))
DN%ZZ_OLD(1:N_TRACKED_SPECIES) = SPECIES_MIXTURE(1:N_TRACKED_SPECIES)%ZZ0
ALLOCATE(DN%ZZ0(N_TRACKED_SPECIES))
ALLOCATE(DN%ZZ_V(N_TRACKED_SPECIES))
DN%ZZ_V(1:N_TRACKED_SPECIES) = SPECIES_MIXTURE(1:N_TRACKED_SPECIES)%ZZ0
ZZ_GET(1:N_TRACKED_SPECIES) = DN%ZZ_V(1:N_TRACKED_SPECIES)
Expand Down Expand Up @@ -1092,6 +1093,8 @@ SUBROUTINE INIT_DUCT_NODE
DN%TMP_V = DN%TMP
DN%RSUM_V = DN%RSUM
DN%RHO_V = DN%RHO
DN%ZZ0 = DN%ZZ
DN%TMP0 = DN%TMP

INIT_LOOP: DO N = 1,N_INIT
IF (TRIM(INITIALIZATION(N)%NODE_ID)==TRIM(DN%ID)) THEN
Expand All @@ -1102,9 +1105,6 @@ SUBROUTINE INIT_DUCT_NODE
DN%TMP0 = DN%TMP
ENDIF
EXIT INIT_LOOP
ELSE
DN%ZZ0 = DN%ZZ
DN%TMP0 = DN%TMP
ENDIF
ENDDO INIT_LOOP

Expand Down

0 comments on commit e9c1511

Please sign in to comment.