
&star_job

      show_log_description_at_start = .false. 

      load_saved_model = .true.
      saved_model_name = '../../../data/star_data/white_dwarf_models/1.025_from_7.0_z2m2.mod'

      save_model_when_terminate = .true.
      save_model_filename = 'final.mod'
      
      write_profile_when_terminate = .true.
      filename_for_profile_when_terminate = 'final_profile.data'

      kappa_file_prefix = 'gs98' 
      eos_file_prefix = 'mesa'  
      
      set_tau_factor = .true.
      set_to_this_tau_factor = 0.00015
      
      !pgstar_flag = .true.


/ ! end of star_job namelist

&controls

      ! check for retries and backups as part of test_suite
      ! you can/should delete this for use outside of test_suite
         max_number_backups = 4
         max_number_retries = 20

         max_model_number = 1000

      
      initial_mass =  2
      initial_z = 0.02d0
      
      use_Type2_opacities = .true.
      Zbase = 0.01d0

      min_dq = 1d-21
      max_surface_cell_dq = 1d-21

      which_atm_option = 'Eddington_grey'
      
      Teff_lower_limit = 1e5

      photostep = 50
      profile_interval = 50
      history_interval = 10
      terminal_cnt = 10
      write_header_frequency = 10
      
      use_Ledoux_criterion = .true.
      thermohaline_coeff = 1000  

      mixing_length_alpha = 0.4

         
      ! brunt
         calculate_Brunt_N2 = .true.
 
      ! convergence controls
      varcontrol_target = 3d-6
         
      tol_residual_norm1 = 1d-5
      tol_max_residual1 = 1d-2
      iter_for_resid_tol2 = 3
      tol_residual_norm2 = 1d99
      tol_max_residual2 = 1d99
      iter_for_resid_tol3 = 12


      ! FOR DEBUGGING

      !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
      !hydro_show_correction_info = .true.
      
      !max_years_for_timestep = 3.67628942044319d-05

      !report_why_dt_limits = .true.
      !report_all_dt_limits = .true.
      !report_hydro_dt_info = .true.
      
      !show_mesh_changes = .true.
      !mesh_dump_call_number = 5189
      !okay_to_remesh = .false.
      
      !trace_evolve = .true.
            

      ! 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

      !trace_newton_bcyclic_solve_input = .true. ! input is "B" j k iter B(j,k)
      !trace_newton_bcyclic_solve_output = .true. ! output is "X" j k iter X(j,k)
      
      !trace_newton_bcyclic_steplo = 1 ! 1st model number to trace
      !trace_newton_bcyclic_stephi = 1 ! last model number to trace
      
      !trace_newton_bcyclic_iterlo = 2 ! 1st newton iter to trace
      !trace_newton_bcyclic_iterhi = 2 ! last newton iter to trace
      
      !trace_newton_bcyclic_nzlo = 1 ! 1st cell to trace
      !trace_newton_bcyclic_nzhi = 10000 ! last cell to trace; if < 0, then use nz as nzhi
      
      !trace_newton_bcyclic_jlo = 1 ! 1st var to trace
      !trace_newton_bcyclic_jhi = 100 ! last var to trace; if < 0, then use nvar as jhi
      
      !trace_k = 0


/ ! end of controls namelist

&pgstar
         

/ ! end of pgstar namelist

