Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FDS Source: Fix bug related to storage of RESTART files #12352

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions Source/main.f90
Original file line number Diff line number Diff line change
Expand Up @@ -2123,7 +2123,7 @@ END SUBROUTINE INITIALIZE_RADIATION_EXCHANGE

SUBROUTINE INITIALIZE_BACK_WALL_EXCHANGE

INTEGER :: NOM,IW
INTEGER :: NOM,IW,ITW
TYPE(WALL_TYPE), POINTER :: WC
TYPE(THIN_WALL_TYPE), POINTER :: TW
TYPE(STORAGE_TYPE), POINTER :: OS
Expand Down Expand Up @@ -2170,7 +2170,7 @@ SUBROUTINE INITIALIZE_BACK_WALL_EXCHANGE
CALL POST_RECEIVES(9)
CALL MESH_EXCHANGE(9)

! Set up storage arrays for packing WALL variables during a RESTART.
! Set up storage arrays for packing WALL and THIN_WALL variables during a RESTART.

DO NM=LOWER_MESH_INDEX,UPPER_MESH_INDEX
M => MESHES(NM)
Expand All @@ -2181,6 +2181,12 @@ SUBROUTINE INITIALIZE_BACK_WALL_EXCHANGE
OS%N_INTEGERS_DIM = MAX(OS%N_INTEGERS_DIM,WC%N_INTEGERS)
OS%N_LOGICALS_DIM = MAX(OS%N_LOGICALS_DIM,WC%N_LOGICALS)
ENDDO
DO ITW=1,M%N_THIN_WALL_CELLS
TW => M%THIN_WALL(ITW)
OS%N_REALS_DIM = MAX(OS%N_REALS_DIM,TW%N_REALS)
OS%N_INTEGERS_DIM = MAX(OS%N_INTEGERS_DIM,TW%N_INTEGERS)
OS%N_LOGICALS_DIM = MAX(OS%N_LOGICALS_DIM,TW%N_LOGICALS)
ENDDO
ALLOCATE(OS%REALS(OS%N_REALS_DIM))
ALLOCATE(OS%INTEGERS(OS%N_INTEGERS_DIM))
ALLOCATE(OS%LOGICALS(OS%N_LOGICALS_DIM))
Expand Down