Skip to content

Commit 89c21c4

Browse files
committed
FDS Source: Fix issue #13815
1 parent fa16765 commit 89c21c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Source/wall.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2379,8 +2379,9 @@ SUBROUTINE SOLID_HEAT_TRANSFER(NM,T,DT_BC,PARTICLE_INDEX,WALL_INDEX,CFACE_INDEX,
23792379
! Check for layers that are too small, layer thickness dropping too much, or couldn't drop enough nodes last remesh
23802380
I = 0
23812381
DO NL=1,ONE_D%N_LAYERS
2382+
IF (ONE_D%N_LAYER_CELLS(NL) == 0) CYCLE
23822383
ONE_D%LAYER_THICKNESS(NL) = X_S_NEW(I+ONE_D%N_LAYER_CELLS(NL)) - X_S_NEW(I)
2383-
IF (ONE_D%N_LAYER_CELLS(NL) > 0 .AND. ONE_D%LAYER_THICKNESS(NL) < 0.1_EB*ONE_D%MINIMUM_LAYER_THICKNESS(NL)) THEN
2384+
IF (ONE_D%LAYER_THICKNESS(NL) < 0.1_EB*ONE_D%MINIMUM_LAYER_THICKNESS(NL)) THEN
23842385
REMESH_LAYER(NL) = .TRUE.
23852386
ELSE
23862387
IF (.NOT. TMP_CHECK(NL) .AND. ONE_D%LAYER_THICKNESS_OLD(NL)-ONE_D%LAYER_THICKNESS(NL) > &

0 commit comments

Comments
 (0)