Skip to content

Commit

Permalink
Merge pull request #266 from admole/inflow_restart_fix
Browse files Browse the repository at this point in the history
Read inflow file on init when restarting
  • Loading branch information
slaizet committed Apr 22, 2024
2 parents b114e8b + 2157114 commit ebfe705
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/xcompact3d.f90
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ subroutine init_xcompact3d()
use tools, only : test_speed_min_max, test_scalar_min_max, &
restart, &
simu_stats, compute_cfldiff, &
init_inflow_outflow
init_inflow_outflow, read_inflow

use param, only : ilesmod, jles,itype
use param, only : irestart
Expand Down Expand Up @@ -229,6 +229,9 @@ subroutine init_xcompact3d()

if ((ioutflow.eq.1).or.(iin.eq.3)) then
call init_inflow_outflow()
if ((irestart==1).and.(iin.eq.3)) then
call read_inflow(ux_inflow,uy_inflow,uz_inflow,itime/ntimesteps)
endif
end if

if ((iibm.eq.2).or.(iibm.eq.3)) then
Expand Down

0 comments on commit ebfe705

Please sign in to comment.