Skip to content

Commit

Permalink
src: Update print in Basic
Browse files Browse the repository at this point in the history
  • Loading branch information
lwJi committed Dec 31, 2023
1 parent a2819d7 commit e697060
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 0 additions & 2 deletions run/Subcycling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ function main(pars, out_dir)
"Gaussian"
println("Parameters:")
println(" cfl = ", cfl)
println(" diss = ", diss)
println(" subcycling = ", subcycling)
println(" Mongwane = ", Mongwane)
println(" trans_zone = ", apply_trans_zone)
println(" itlast = ", itlast)
Expand Down
20 changes: 12 additions & 8 deletions src/Basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,17 @@ mutable struct Grid
end
if verbose # print
println("Grid Structure:")
println(" subcycling = ", subcycling)
for i = 1:length(levs)
println("lev[", i, "],")
println(" nx = ", levs[i].nx)
println(" ngh = ", levs[i].ngh)
println(" nbuf = ", levs[i].nbuf)
println(" fdord = ", levs[i].fdord)
println(" nx = ", levs[i].nx)
println(" ngh = ", levs[i].ngh)
println(" nbuf = ", levs[i].nbuf)
println(" ntrans = ", levs[i].ntrans)
println(" fdord = ", levs[i].fdord)
if length(levs[i].if2c) == levs[i].nxa
println(
" ibox = ",
" ibox = ",
[
levs[i].if2c[1+levs[i].nbuf],
levs[i].if2c[levs[i].nxa-levs[i].nbuf],
Expand All @@ -169,9 +171,11 @@ mutable struct Grid
],
)
end
println(" xbox = ", levs[i].xbox)
println(" dx = ", levs[i].dx)
println(" dt = ", levs[i].dt)
println(" xbox = ", levs[i].xbox)
println(" dx = ", levs[i].dx)
println(" dt = ", levs[i].dt)
println(" time = ", levs[i].time)
println(" diss = ", levs[i].diss)
end
end
# construct
Expand Down

0 comments on commit e697060

Please sign in to comment.