# ------------------  INPUTS TO MAIN PROGRAM  -------------------

amr.plot_files_output = 1
amr.checkpoint_files_output = 1

max_step = 100000
stop_time = 1.0

geometry.is_periodic = 0 0 0
geometry.coord_sys = 0           # cartesian

geometry.prob_lo   =  0.   0.   0.
geometry.prob_hi   =  5.e8 5.e8 5.e8

amr.n_cell         = 192 192 192
amr.n_cell         = 384 384 384
amr.n_cell         = 768 768 768

amr.max_level      = 0       # maximum level number allowed

castro.lo_bc       =  2 2 2
castro.hi_bc       =  2 2 2

# >>>>>>>>>>>>>  BC FLAGS <<<<<<<<<<<<<<<<
# 0 = Interior           3 = Symmetry
# 1 = Inflow             4 = SlipWall
# 2 = Outflow            5 = NoSlipWall
# >>>>>>>>>>>>>  BC FLAGS <<<<<<<<<<<<<<<<

castro.do_hydro = 1
castro.do_grav  = 1
castro.do_react = 0
castro.do_sponge = 1

gravity.gravity_type = MonopoleGrav
gravity.drdxfac = 2

castro.cfl            = 0.9     # cfl number for hyperbolic system
castro.init_shrink    = 0.1     # scale back initial timestep by this factor
castro.change_max     = 1.05    # factor by which dt is allowed to change each timestep
castro.sum_interval   = 0       # timesteps between computing and printing volume averages

castro.sponge_upper_density = 1.e4
castro.sponge_lower_density = 1.e2
castro.sponge_timescale     = 1.e-3

amr.ref_ratio       = 2 2 2 2 # refinement ratio
amr.regrid_int      = 10000   # how often to regrid
amr.n_error_buf     = 2 2 2 2 # number of buffer cells in error est
amr.grid_eff        = 0.7     # what constitutes an efficient grid

amr.refinement_indicators = denerr

amr.refine.denerr.value_greater = 1.0e0
amr.refine.denerr.field_name = density
amr.refine.denerr.max_level = 10

amr.check_file      = chk     # root name of checkpoint file
amr.check_int       = 100     # number of timesteps between checkpoints
amr.plot_file       = plt     # root name of plot file
amr.plot_int        = 100     # number of timesteps between plotfiles

amr.max_grid_size   = 64       # maximum grid size allowed -- used to control parallelism
amr.blocking_factor = 64       # block factor in grid generation

amr.v               = 1       # control verbosity in Amr.cpp
castro.v            = 0       # control verbosity in Castro.cpp

amr.derive_plot_vars = ALL

problem.model_name =  "WD_rhoc_2.e9_M_1.1.hse.2560"
