!test case to see if atm integration is working properly
!0.8 Msun, Z=0.0001 model evolved from pre-MS to core H exhaustion
&star_job
      show_log_description_at_start = .false.

      mesa_data_dir = '../../../data' ! for eos and opacity tables
      
      !create_pre_main_sequence_model = .true.
      load_saved_model = .true.
      saved_model_name = 'low_Z_test.mod'


/ ! end of star_job namelist

&controls


      D_norm_kappa = 1
      D_norm_alpha = 0 
      D_norm_atol = 1d-3
      D_norm_rtol = 1d-3
   
      use_lnE_for_eps_grav = .true.


      ! check for retries and backups as part of test_suite
      max_number_backups = 30
      max_number_retries = 100

      surf_bc_offset_factor = 0 ! for unknown reasons, test fails if this is 1

      ! starting specifications
         initial_mass = 0.8 ! in Msun units
         initial_Z = 0.0001
         initial_Y = 0.25
         
      ! mixing parameters
         mixing_length_alpha = 1.6d0 ! based on solar model
         use_Henyey_MLT = .true.

      ! atmosphere
         which_atm_option = 'Eddington_grey'
         
      !mesh_delta_coeff_pre_ms = 0.25 ! we seem to need extra resolution for the pre-main-sequence.
      !mesh_delta_coeff = 0.25
      !varcontrol_target = 1d-4
      
      ! when to stop  
      Teff_upper_limit = 6600
      xa_central_lower_limit_species(1) = 'h1'
      xa_central_lower_limit(1) = 1d-4
      max_model_number = 2000


      ! debugging
      
         photostep = 50
         profile_interval = 50
         log_cnt = 50
         terminal_cnt = 10
         write_header_frequency = 10

         !report_hydro_solver_progress = .true. ! set true to see info about newton iterations
         !report_ierr = .true. ! if true, produce terminal output when have some internal error

         report_why_dt_limits = .false.
         report_all_dt_limits = .false.
      
         !show_mesh_changes = .true.
         !mesh_dump_call_number = 5
         !okay_to_remesh = .false.

         trace_evolve = .false.
      
      ! hydro debugging
      !hydro_check_everything = .true.
      !hydro_inspectB_flag = .true.
      
      !hydro_numerical_jacobian = .true.
      !hydro_save_numjac_plot_data = .true.
      !small_mtx_decsol = 'lapack'
      !large_mtx_decsol = 'lapack'
      !hydro_dump_call_number = 195


/ ! end of controls namelist
