Skip to content

Commit a3915ed

Browse files
authored
Merge pull request #14338 from mcgratta/master
FDS Source: Read VENT within half a cell from boundary
2 parents dd3edb3 + 7f13ab8 commit a3915ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/read.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11971,9 +11971,9 @@ SUBROUTINE READ_VENT
1197111971
! Decide if the VENT is inside or at the boundary of the current MESH.
1197211972
! The factor of 10 is to ensure that a vent that is fairly close to the boundary is counted.
1197311973

11974-
IF ((XB_MESH(1)-XF)>10._EB*SPACING(XF) .OR. (XS-XB_MESH(2))>10._EB*SPACING(XS) .OR. &
11975-
(XB_MESH(3)-YF)>10._EB*SPACING(YF) .OR. (YS-XB_MESH(4))>10._EB*SPACING(YS) .OR. &
11976-
(XB_MESH(5)-ZF)>10._EB*SPACING(ZF) .OR. (ZS-XB_MESH(6))>10._EB*SPACING(ZS)) REJECT_VENT = .TRUE.
11974+
IF (XB_MESH(1)-XF>=0.5_EB*DX(IBP1) .OR. XS-XB_MESH(2)>=0.5_EB*DX(0) .OR. &
11975+
XB_MESH(3)-YF>=0.5_EB*DY(JBP1) .OR. YS-XB_MESH(4)>=0.5_EB*DY(0) .OR. &
11976+
XB_MESH(5)-ZF>=0.5_EB*DZ(KBP1) .OR. ZS-XB_MESH(6)>=0.5_EB*DZ(0)) REJECT_VENT = .TRUE.
1197711977

1197811978
IF (ABS(XB_MESH(1)-XB_MESH(2))<=SPACING(XB_MESH(2))) THEN
1197911979
IF (J1==J2 .OR. K1==K2) REJECT_VENT=.TRUE.

0 commit comments

Comments
 (0)