Skip to content

Commit

Permalink
Fixed IBM not being read
Browse files Browse the repository at this point in the history
  • Loading branch information
anshgupta1234 committed Dec 21, 2023
1 parent 412f601 commit 8e13f60
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/2D_ibm/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
# Uniform medium density, centroid is at the center of the domain
'patch_ib(1)%y_centroid' : 3.0E-03,
'patch_ib(1)%radius' : 0.2E-03,
'patch_ib(1)%slip' : 'T',
'patch_ib(1)%slip' : 'F',
# 'patch_ib(1)%length_x' : 0.2E-03,
# 'patch_ib(1)%length_y' : 0.4E-03,
# # ==========================================================================
Expand Down
14 changes: 11 additions & 3 deletions src/pre_process/m_data_output.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,12 @@ contains
call s_mpi_barrier()
call DelayFileAccess (proc_rank)
! Initialize MPI data I/O
call s_initialize_mpi_data(q_cons_vf)

if (ib) then
call s_initialize_mpi_data(q_cons_vf, ib_markers)
else
call s_initialize_mpi_data(q_cons_vf)
end if

! Open the file to write all flow variables
write (file_loc, '(I0,A,i7.7,A)') t_step_start, '_', proc_rank, '.dat'
file_loc = trim(restart_dir)//'/lustre_0'//trim(mpiiofs)//trim(file_loc)
Expand Down Expand Up @@ -556,7 +560,11 @@ contains

else
! Initialize MPI data I/O
call s_initialize_mpi_data(q_cons_vf)
if (ib) then
call s_initialize_mpi_data(q_cons_vf, ib_markers)
else
call s_initialize_mpi_data(q_cons_vf)
end if

! Open the file to write all flow variables
write (file_loc, '(I0,A)') t_step_start, '.dat'
Expand Down

0 comments on commit 8e13f60

Please sign in to comment.