Skip to content

Commit f2c9215

Browse files
authored
Merge pull request #14797 from mcgratta/master
FDS Source: Fix uninitialized variable
2 parents 1e3a12d + e8af5ce commit f2c9215

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Source/init.f90

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2543,14 +2543,15 @@ SUBROUTINE INITIALIZE_DEVICES(NM)
25432543

25442544
IF (DV%QUANTITY_INDEX(1)>=0) CYCLE DEVICE_LOOP ! Do not process gas phsae devices
25452545

2546+
IW = 0
2547+
ICF = 0
2548+
25462549
IF (DV%INIT_ID=='null' .AND. DV%LP_TAG==0) THEN ! Assume the device is tied to a WALL cell or CFACE
25472550

25482551
IF (NM/=DV%MESH) CYCLE DEVICE_LOOP
25492552
II = INT(GINV(DV%X-M%XS,1,NM)*M%RDXI + 1._EB)
25502553
JJ = INT(GINV(DV%Y-M%YS,2,NM)*M%RDETA + 1._EB)
25512554
KK = INT(GINV(DV%Z-M%ZS,3,NM)*M%RDZETA + 1._EB)
2552-
IW = 0
2553-
ICF = 0
25542555

25552556
IF (DV%IOR/=0) CALL GET_WALL_INDEX(NM,II,JJ,KK,DV%IOR,IW)
25562557

0 commit comments

Comments
 (0)