Skip to content

Commit

Permalink
run: Read par ntrans from parfile
Browse files Browse the repository at this point in the history
  • Loading branch information
lwJi committed Dec 28, 2023
1 parent e505bf4 commit afefaf9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion run/Subcycling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ function main(pars, out_dir)
haskey(pars["parameters"], "subcycling") ? pars["parameters"]["subcycling"] : true
Mongwane =
haskey(pars["parameters"], "Mongwane") ? pars["parameters"]["Mongwane"] : false
ntrans = haskey(pars["parameters"], "ntrans") ? pars["parameters"]["ntrans"] : 3
apply_trans_zone =
haskey(pars["parameters"], "apply_trans_zone") ?
pars["parameters"]["apply_trans_zone"] : false
Expand All @@ -53,7 +54,15 @@ function main(pars, out_dir)
########################
# build grid structure #
########################
grid = Infino.Basic.Grid(nx, bbox, ngh, nbuf; cfl = cfl, subcycling = subcycling)
grid = Infino.Basic.Grid(
nx,
bbox,
ngh,
nbuf;
ntrans = ntrans,
cfl = cfl,
subcycling = subcycling,
)
gfs = Infino.Basic.GridFunction(2, grid)

###############
Expand Down

0 comments on commit afefaf9

Please sign in to comment.