# *****************************************************************
# Run until nsteps == max_step or time == stop_time,
#     whichever comes first
# *****************************************************************
max_step  = 5
stop_time = 2.0

# *****************************************************************
# Are we restarting from an existing checkpoint file?
# *****************************************************************
#amr.restart  = chk00060 # restart from this checkpoint file

# *****************************************************************
# Problem size and geometry
# *****************************************************************
geometry.prob_lo     =  0.0  0.0  0.0
geometry.prob_hi     =  1.0  1.0  0.125
geometry.is_periodic =  1    1    1

# *****************************************************************
# VERBOSITY
# *****************************************************************
amr.v              = 1       # verbosity in Amr

# *****************************************************************
# Resolution and refinement
# *****************************************************************
amr.n_cell          = 64 64 8
amr.max_level       = 2       # maximum level number allowed --
                              # number of levels = max_level + 1

amr.ref_ratio       = 2 2 2 2 # refinement ratio between levels

# *****************************************************************
# Control of grid creation
# *****************************************************************
# Blocking factor for grid creation in each dimension --
#   this ensures that every grid is coarsenable by a factor of 8 --
#   this is mostly relevant for multigrid performance
amr.blocking_factor_x = 8
amr.blocking_factor_y = 8
amr.blocking_factor_z = 8

amr.max_grid_size   = 16

amr.regrid_int      = 2       # how often to regrid

# *****************************************************************
# Time step control
# *****************************************************************
adv.cfl            = 0.7     # CFL constraint for explicit advection

adv.do_subcycle    = 1       # Do we subcycle in time?

# *****************************************************************
# Should we reflux at coarse-fine boundaries?
# *****************************************************************
adv.do_reflux = 1

# *****************************************************************
# Tagging -  if phi > 1.01 at level 0, then refine
#            if phi > 1.1  at level 1, then refine
#            if phi > 1.5  at level 2, then refine
# *****************************************************************
adv.phierr = 1.01  1.1  1.5

# *****************************************************************
# Plotfile name and frequency
# *****************************************************************
amr.plot_file  = plt    # root name of plot file
amr.plot_int   = 100    # number of timesteps between plot files
                        # if negative then no plot files will be written

# *****************************************************************
# Checkpoint name and frequency
# *****************************************************************
amr.chk_file = chk      # root name of checkpoint file
amr.chk_int  = -1       # number of timesteps between checkpoint files
                        # if negative then no checkpoint files will be written
# *****************************************************************
# Particles
# *****************************************************************
amr.do_tracers = 1      # Turn tracer particles on or off

test_fillpatchnlevels = 1 # Test amrex::FillPatchNLevels
