
! inlist_wd_ignite_3


&star_job
      show_log_description_at_start = .false.
      !show_net_species_info = .true.
      !show_net_reactions_info = .true.

      mesa_data_dir = '../../../data'
      
      load_saved_model = .true.
      saved_model_name = 'wd_2.mod'

      save_model_when_terminate = .true.
      save_model_filename = 'wd_3.mod'

      change_net = .true.      
      new_net_name = 'wd_o_ne_ignite.net'

      change_v_flag = .true.
      new_v_flag = .true.

      set_Z_all_HELM = .true. ! if false, just use the eos default
      Z_all_HELM = 1.000001d0


      ! move the surface down to larger optical depth
      set_tau_factor = .true.
      set_to_this_tau_factor = 1.5e4 

      set_initial_dt = .true.
      years_for_initial_dt = 10 ! in years

      relax_mass_change = .true.
      relax_mass_change_min_steps = 100
      relax_mass_change_max_yrs_dt = 10 ! years
      relax_mass_change_init_mdot = 1d-8 ! Msun/year
      relax_mass_change_final_mdot = 1d-6 ! Msun/year
      

      !pgstar_flag = .true.
      
      
      
/ ! end of star_job namelist


&controls
      use_lnE_for_eps_grav = .false.
      
      surf_bc_offset_factor = 0 ! until fix wd models

      
         use_Ledoux_criterion = .true.
         nsmooth_gradL_composition_term = 1
         use_gradmu_alt_for_mlt = .true.

         alpha_semiconvection = 4d-2
         thermo_haline_coeff = 2  


      initial_mass =  1.3
      initial_z = 0.02d0
      
      !power_nuc_burn_upper_limit = 1d8 
      !max_model_number = 2000
      
      log_center_density_limit = 15
      star_mass_max_limit = 1.34

      
      screening_mode = 'extended'
      
      varcontrol_target = 5d-4
      
      !delta_lgL_He_limit = 0.25
      L_div_CpTMdot_limit = 100
      delta_lgTeff_limit = -1  
      
      mesh_delta_coeff = 0.5

      logQ_limit = 1d6
      gamma_center_limit = 1d6

      photostep = 10
      profile_interval = 10
      log_cnt = 1
      terminal_cnt = 1
      write_header_frequency = 10

         
      ! DISABLE THESE
      sum_xa_tolerance = 1d99
      min_xa_hard_limit = -1d99 
      rate_factor_for_fe56ec_to_cr56 = 1d-4
               
      xa_scale = 1d-5
         
      max_iter_for_resid_tol1 = 3
      tol_residual_norm1 = 1d-5
      tol_max_residual1 = 1d-2
      
      max_iter_for_resid_tol2 = 12
      tol_residual_norm2 = 1d99
      tol_max_residual2 = 1d99

      !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
      !max_model_number = 6

      report_why_dt_limits = .false.
      report_all_dt_limits = .false.
      
      !show_mesh_changes = .true.
      !mesh_dump_call_number = 8242
      
      min_timestep_limit = 1d-4 ! seconds

      trace_evolve = .false.
      
      ! hydro debugging
      !hydro_numerical_jacobian = .true.
      !hydro_check_everything = .true.
      !hydro_show_rcond = .true.
      !hydro_inspectB_flag = .true.
      !hydro_save_numjac_plot_data = .true.
      !hydro_dump_call_number = 488

      !delta_lgL_nuc_limit = 0.05 ! limit for magnitude of change in lgL_nuc

         dX_nuc_drop_max_A_limit = 52
         dX_nuc_drop_min_X_limit = 1d-4
         dX_nuc_drop_limit = 5d-3
         dX_nuc_drop_hard_limit = 1d99

         
         !delta_lgTeff_limit = 0.005  
         !delta_lgL_limit = 0.05
         !delta_lgRho_cntr_limit = 0.02  


         mesh_dlog_pp_dlogP_extra = 0.15
         mesh_dlog_cno_dlogP_extra = 0.15
      
         mesh_dlog_3alf_dlogP_extra = 0.15
         mesh_dlog_burn_c_dlogP_extra = 0.15
         
         mesh_dlog_burn_n_dlogP_extra = 0.15
         mesh_dlog_burn_o_dlogP_extra = 0.15
      
         mesh_dlog_burn_ne_dlogP_extra = 0.15
         
         mesh_dlog_burn_na_dlogP_extra = 0.15
         mesh_dlog_burn_mg_dlogP_extra = 0.15
         
         mesh_dlog_cc_dlogP_extra = 0.15
         mesh_dlog_co_dlogP_extra = 0.15
         
         mesh_dlog_oo_dlogP_extra = 0.15
         
         mesh_dlog_burn_si_dlogP_extra = 0.15
         mesh_dlog_burn_s_dlogP_extra = 0.15
         mesh_dlog_burn_ar_dlogP_extra = 0.15
         mesh_dlog_burn_ca_dlogP_extra = 0.15
         mesh_dlog_burn_ti_dlogP_extra = 0.15
         mesh_dlog_burn_cr_dlogP_extra = 0.15
         mesh_dlog_burn_fe_dlogP_extra = 0.15
         
         mesh_dlog_pnhe4_dlogP_extra = 0.15
         mesh_dlog_other_dlogP_extra = 0.15
         mesh_dlog_photo_dlogP_extra = 1
         
         xa_function_species(1) = 'ne20'
   		xa_function_weight(1) = 20
   		xa_function_param(1) = 1d-2
         
         xa_function_species(1) = 'si28'
   		xa_function_weight(1) = 20
   		xa_function_param(1) = 1d-2
         
         xa_function_species(1) = 's32'
   		xa_function_weight(1) = 20
   		xa_function_param(1) = 1d-2
         
         xa_function_species(1) = 'fe54'
   		xa_function_weight(1) = 20
   		xa_function_param(1) = 1d-2
         
         xa_function_species(1) = 'fe56'
   		xa_function_weight(1) = 20
   		xa_function_param(1) = 1d-2

 
         overshoot_f_above_nonburn = 0.01
         overshoot_f_below_nonburn = 0.01
         overshoot_f_above_burn_h = 0.01
         overshoot_f_below_burn_h = 0.01


         min_overshoot_q = 1d-3 

      T_mix_limit = 1d4
      
      RGB_wind_scheme = ''
      AGB_wind_scheme = ''
      RGB_to_AGB_wind_switch = 1d-4
      Reimers_wind_eta = 0.5d0  
      Blocker_wind_eta = 0.1d0  
      
      which_atm_option = 'grey_and_kap'

      use_CO_enhanced_opacities = .false.

      !accrete_same_as_surface = .true. 
      accrete_same_as_surface = .false. 
         accrete_given_mass_fractions = .true. 
         num_accretion_species = 1
         accretion_species_id(1) = 'c12'
         accretion_species_xa(1) = 1
         accretion_species_id(2) = 'o16'
         accretion_species_xa(2) = 0
      ! solar
         !accretion_h1 = 0.70d0
         !accretion_h2 = 0
         !accretion_he3 = 0
         !accretion_he4 = 0.28d0
         !accretion_zfracs = 3 ! GS98
      ! abundances from he wd
         !accretion_h1 = 0
         !accretion_h2 = 0
         !accretion_he3 = 0
         !accretion_he4 = 0.98d0
         !accretion_zfracs = 0
         !z_fraction_c = 0.00503457042316145d0
         !z_fraction_n = 0.602902901697584d0
         !z_fraction_o = 0.0759711634378839d0
         !z_fraction_ne = 0.10728664174973d0
         !z_fraction_mg = 0.208804722691647d0
      
      mass_change = 1d-6 ! rate of accretion (Msun/year)



/ ! end of controls namelist



&pgstar
         
      ! top level controls

         !pause = .true. 
            ! if true, the code waits for user to enter a RETURN on the command line
      
      ! main window
      
         MAIN_win_flag = .true.
         
         show_TRho_Profile_with_main = .true.
      
         show_HR_TRho_with_main = .false. ! if false, use aspect ratio > 1
         MAIN_win_width = 7
         MAIN_win_aspect_ratio = 1.2 ! aspect_ratio = height/width
      
         xaxis_by = 'by_logR' 
            
         show_main_win_text_info = .true.
            
         main_xtick = 0.1 
         main_nxsub = 0
         
         ! xaxis limits -- to override system default selections
         main_xmin = -101 !0 !-9 !0.4
         main_xmax = -101 !0.8
         
         logxq_cutoff = -12.1 ! min value when using logxm for xaxis
         !main_logL_max = 7
         !main_logL_min = 0
         
         ! control for plot showing abundances
         log_mass_frac_ymax = 0.7 ! making this > 0 helps readability
         log_mass_frac_ymin = -3.5
         num_abundance_line_labels = 5
      
         log_abund_vary = 0.01 ! don't show species if it would vary by < this in plot
      
         ! file output
         !MAIN_file_flag = .true.
         MAIN_file_dir = 'png'
         MAIN_file_prefix = 'main'
         MAIN_file_cnt = 2 ! output when mod(model_number,main_file_cnt)==0
               
               
      ! TRho Profile window -- current model in T-Rho plane
      
         TRho_Profile_win_flag = .false.

         TRho_Profile_win_width = 7.5
         TRho_Profile_win_aspect_ratio = 0.618 ! aspect_ratio = height/width
            
         show_TRho_Profile_text_info = .false.
         show_TRho_Profile_legend = .true.
         show_HR_TRho_with_TRho_Profile = .false.
         show_TRho_Profile_burn_labels = .false.
         TRho_Profile_show_logQ_limit = .true.
         !show_TRho_Profile_cross_hair = .true.
         show_TRho_Profile_mass_locs = .false.

         show_TRho_Profile_kap_regions = .false.
         show_TRho_Profile_eos_regions = .true.
         show_TRho_Profile_degeneracy_line = .true.
         show_TRho_Profile_Pgas_Prad_line = .true.
         show_TRho_Profile_burn_lines = .true.

         !show_TRho_Profile_annotation1 = .true.
         !show_TRho_Profile_annotation2 = .true.
         !show_TRho_Profile_annotation3 = .true.
      
         ! axis limits
         TRho_Profile_xmin = -2 !-10
         TRho_Profile_xmax = 11.5
         TRho_Profile_ymin = 6 !3.0
         TRho_Profile_ymax = 10
         
         ! file output
         !TRho_Profile_file_flag = .true.
         TRho_Profile_file_dir = 'png'
         TRho_Profile_file_prefix = 'trho_profile'
         TRho_Profile_file_cnt = 10 ! output when mod(model_number,TRho_Profile_file_cnt)==0
      
      
      ! Profile window
      
         !Profile_win_flag = .true.

         Profile_win_width = 7.5
         Profile_win_aspect_ratio = 0.618 ! aspect_ratio = height/width
            
         show_Profile_legend = .false.
         Profile_legend_coord = 0.65
         Profile_legend_fjust = 0.0
         Profile_legend_disp1 = -7.5
         Profile_legend_del_disp = -1.5
         Profile_show_mass_locs = .false.
         Profile_show_decorated_line = .false.
         
         show_HR_TRho_with_Profile = .false.
         show_Profile_text_info = .false.
         Profile_text_info_xfac = 0.78 ! controls x location
         Profile_text_info_dxfac = 0.02 ! controls x spacing to value from text
         Profile_text_info_yfac = 0.95 ! controls y location of 1st line
         Profile_text_info_dyfac = -0.04 ! controls line spacing
         show_Profile_cross_hair = .false.

         show_Profile_annotation1 = .false.
         show_Profile_annotation2 = .false.
         show_Profile_annotation3 = .false.
         
         ! axis choices
            ! to get a list of axis identifiers, edit your star_job controls
               ! to set show_profile_column_numbers = .true.
            ! you can use any identifier for x or y
         Profile_xaxis_name = 'logR'
         !Profile_xaxis_reversed = .true.
         Profile_xmin = -101 ! 0 ! only used if > -100
         Profile_xmax = -101 ! 0.5 !-101 ! only used if > -100
         
         Profile_yaxis_name = 'ye' !'grada'
         Profile_yaxis_reversed = .false.
         Profile_ymin = 0.49 ! only used if > -100
         Profile_ymax = 0.51 ! only used if > -100    
         Profile_dymin = 0.015    
         
         Profile_other_yaxis_name = 'logT'
         Profile_other_yaxis_reversed = .false.
         Profile_other_ymin = -101 ! only used if > -100
         Profile_other_ymax = -101 ! only used if > -100        
         
         ! file output
         !Profile_file_flag = .true.
         Profile_file_dir = 'png2'
         Profile_file_prefix = 'profile'
         Profile_file_cnt = 2 ! output when mod(model_number,Profile_file_cnt)==0
      
      
      ! Convection window -- history of convection and more.
      
         CONV_win_flag = .false.
      
         CONV_win_width = 9
         CONV_win_aspect_ratio = 0.62 ! aspect_ratio = height/width
      
         ! axis limits
         CONV_xmax = -1 ! step number.  negative means use default.
         CONV_xmin = -1 ! step number.  negative means use default.
         CONV_max_width = 0 ! only used if > 0.  causes xmin to move with xmax.
         CONV_mmax = 1.00007  !-1 ! (Msun units) negative means use start initial mass
         CONV_mmin = 1  !0 ! (Msun units)
         CONV_lgLmax = -101 ! only used if > -100; (L in Lsun units)
         CONV_lgLmin = -2 ! only used if > -100; (L in Lsun units)

         CONV_show_burn = .true.
         CONV_show_mixing = .true.
         CONV_show_log_radius = .true.
         CONV_show_luminosities = .true.
         CONV_show_mass_boundaries = .true.

         show_CONV_annotation1 = .false.
         show_CONV_annotation2 = .false.
         show_CONV_annotation3 = .false.
         
         ! file output
         CONV_file_flag = .false.
         CONV_file_dir = 'pgstar_out'
         CONV_file_prefix = 'conv'
         CONV_file_cnt = 5 ! output when mod(model_number,CONV_file_cnt)==0
         CONV_file_width = -1 ! negative means use same value as for window
         CONV_file_aspect_ratio = -1 ! negative means use same value as for window
      
      
         
         
      ! Surface History window
      
         Surf_Hist_win_flag = .false.
      
         Surf_Hist_win_width = 6.5
         Surf_Hist_win_aspect_ratio = 1.2 ! aspect_ratio = height/width
      
         ! axis limits
         Surf_Hist_xmax = -1 ! step number.  negative means use default.
         Surf_Hist_xmin = -1 ! step number.  negative means use default.
         Surf_Hist_max_width = 0 ! only used if > 0.  causes xmin to move with xmax.
         
         ! abundance limits
         Surf_Hist_mass_frac_min = 0
         Surf_Hist_mass_frac_max = 1.1 ! > 0 helps legibility

         show_Surf_Hist_annotation1 = .false.
         show_Surf_Hist_annotation2 = .false.
         show_Surf_Hist_annotation3 = .false.
         
         ! file output
         Surf_Hist_file_flag = .false.
         Surf_Hist_file_dir = 'pgstar_out'
         Surf_Hist_file_prefix = 'conv'
         Surf_Hist_file_cnt = 5 ! output when mod(model_number,Surf_Hist_file_cnt)==0
         Surf_Hist_file_width = -1 ! negative means use same value as for window
         Surf_Hist_file_aspect_ratio = -1 ! negative means use same value as for window
      
         
         
      ! Power window
      
         Power_win_flag = .false.
      
         Power_win_width = 8.5
         Power_win_aspect_ratio = 0.618 ! aspect_ratio = height/width
      
         Power_xaxis_by = 6 ! select xaxis
            ! 1 = by_mass
            ! 2 = by_grid
            ! 3 = by_radius
            ! 4 = by_logR
            ! 5 = by_logP
            ! 6 = by_logxm
         
         ! power xaxis limits -- to override system default selections
         Power_xmin = -101 ! only used if > -100
         Power_xmax = -101 ! only used if > -100
         
         ! power yaxis limits -- to override system default selections
         Power_ymin = -101 ! only used if > -100
         Power_ymax = -101 ! only used if > -100

         show_Power_cross_hair = .false.
         
         ! file output
         Power_file_flag = .false.
         Power_file_dir = 'pgstar_out'
         Power_file_prefix = 'power'
         Power_file_cnt = 5 ! output when mod(model_number,Power_file_cnt)==0
         Power_file_width = -1 ! negative means use same value as for window
         Power_file_aspect_ratio = -1 ! negative means use same value as for window
         
         
      ! Abundance window
      
         Abundance_win_flag = .true.
      
         Abundance_win_width = 8.5
         Abundance_win_aspect_ratio = 0.618 ! aspect_ratio = height/width
      
         Abundance_xaxis_by = 'by_logR'
         
         ! power xaxis limits -- to override system default selections
         Abundance_xmin = -101 ! only used if > -100
         Abundance_xmax = -101 ! only used if > -100
         
         ! power yaxis limits -- to override system default selections
         Abundance_log_mass_frac_min = 1 ! only used if < 0
         Abundance_log_mass_frac_max = 1 ! only used if < 0

         show_Abundance_cross_hair = .false.
         
         ! file output
         !Abundance_file_flag = .true.
         Abundance_file_dir = 'png_extra'
         Abundance_file_prefix = 'abund'
         Abundance_file_cnt = 2 ! output when mod(model_number,Abundance_file_cnt)==0
         Abundance_file_width = -1 ! negative means use same value as for window
         Abundance_file_aspect_ratio = -1 ! negative means use same value as for window
         
      
      
      ! Abund_Power window -- Abundance and Power together
      
         !Abund_Power_win_flag = .true.
      
         Abund_Power_win_width = 6
         Abund_Power_win_aspect_ratio = 1.2 ! aspect_ratio = height/width
                  
         Abund_Power_xaxis_by = 'by_logR'
         Abund_Power_xmin = -101 ! only used if > -100
         Abund_Power_xmax = -101 ! only used if > -100

         ! file output
         !Abund_Power_file_flag = .true.
         Abund_Power_file_dir = 'png_extra'
         Abund_Power_file_prefix = 'abund_power'
         Abund_Power_file_cnt = 2 ! output when mod(model_number,Abund_Power_file_cnt)==0
         Abund_Power_file_width = -1 ! negative means use same value as for window
         Abund_Power_file_aspect_ratio = -1 ! negative means use same value as for window
               
         


/ ! end of pgstar namelist
