Skip to content

Commit

Permalink
run: Beautify Subcycling.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
lwJi committed Dec 25, 2023
1 parent d4175b2 commit 6f35a08
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions run/Subcycling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,13 @@ function main(pars, out_dir)
println("Initial data type '$initial_data' unsupported yet")
exit()
end

Infino.Boundary.ApplyPeriodicBoundaryCondition!(gfs)
if !Mongwane
Infino.InitialData.MarchBackwards!(gfs)
Infino.Boundary.ApplyPeriodicBoundaryCondition!(gfs)
end

@printf(
"Simulation time: %.4f, iteration %d. E = %.4f\n",
gfs.grid.time,
Expand All @@ -81,9 +83,11 @@ function main(pars, out_dir)
# Evolve #
##########
println("Start evolution...")

for i = 1:itlast
Infino.ODESolver.Evolve!(Infino.Physical.WaveRHS!, gfs; Mongwane = Mongwane)
Infino.Boundary.ApplyPeriodicBoundaryCondition!(gfs)

@printf(
"Simulation time: %.4f, iteration %d. E = %.4f\n",
gfs.grid.time,
Expand Down

0 comments on commit 6f35a08

Please sign in to comment.