# ------------------  INPUTS TO MAIN PROGRAM  -------------------
max_step = 10

# PROBLEM SIZE & GEOMETRY
geometry.is_periodic = 0 0 0
geometry.coord_sys   = 0
geometry.prob_lo     = 0.    0.    0.
geometry.prob_hi     = 7.5e8 7.5e8 7.5e8

amr.n_cell           =  64    64    64

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

# WHICH PHYSICS
castro.do_hydro      = 1
castro.do_react      = 0
castro.add_ext_src   = 0
castro.do_sponge     = 1
castro.ppm_type      = 1

# MHD
castro.use_flattening = 0

castro.do_grav       = 1
gravity.gravity_type = MonopoleGrav
gravity.drdxfac      = 4

# RELEVANT FOR EOS
castro.small_temp    = 1.e-3
castro.small_dens    = 1.e-6

# TIME STEP CONTROL
castro.cfl            = 0.5     # cfl number for hyperbolic system
castro.init_shrink    = 0.1     # scale back initial timestep
castro.change_max     = 1.05    # scale back initial timestep

# SPONGE
castro.sponge_lower_density = 1.0e-3
castro.sponge_upper_density = 1.0e-3
castro.sponge_timescale = 1.0e-3

# DIAGNOSTICS & VERBOSITY
castro.sum_interval   = 1       # timesteps between computing mass
castro.v              = 1       # verbosity in Castro.cpp
amr.v                 = 1       # verbosity in Amr.cpp

# REFINEMENT / REGRIDDING
amr.max_level       = 0       # maximum level number allowed
amr.ref_ratio       = 2 2 2 2 # refinement ratio
amr.regrid_int      = 2 2 2 2 # how often to regrid
amr.blocking_factor = 8       # block factor in grid generation
amr.max_grid_size   = 32
amr.n_error_buf     = 2 2 2 2 # number of buffer cells in error est

amr.refinement_indicators = dengrad

amr.refine.dengrad.gradient = 1.0e7
amr.refine.dengrad.field_name = density
amr.refine.dengrad.max_level = 3

# CHECKPOINT FILES
amr.check_file      = chk_3d_  # root name of checkpoint file
amr.check_int       = 100000        # number of timesteps between checkpoints

# PLOTFILES
amr.plot_file       = plt_3d_  # root name of plotfile
amr.plot_int        = 100000        # number of timesteps between plotfiles
amr.derive_plot_vars = NONE

# PROBLEM PARAMETERS
problem.rho_0 = 1.e9
problem.r_0   = 6.5e8
problem.p_0   = 1.e15
problem.rho_ambient = 1.0e-5
problem.smooth_delta = 4.e6

problem.center_x = 0.e0
problem.center_y = 0.e0
problem.center_z = 0.e0

# EOS
eos.eos_gamma = 1.66666
eos.eos_assume_neutral = 1
