
! inlist_wd2


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

      !save_model_number = 3979
      !save_model_filename = '../white_dwarf_models/wd_125_Tc_1.8e7.mod'
      save_model_filename = 'nova.mod'
      
      load_saved_model = .true.
      saved_model_name = 'wd2.mod'

      change_net = .true.      
      !new_net_name = 'basic.net'
      new_net_name = 'cno_extras.net'

      !ppn_rate_numbers_fname = 'ppn_rates.info'
      !use_Qs_from_vital = .true.

      !set_tau_factor = .true.
      !new_tau_factor = 1d-6 

      change_v_flag = .true.
      new_v_flag = .false.
      

      log_columns_file = 'log_columns.list' 
      profile_columns_file = 'profile_columns.list' 

      
      !set_initial_dt = .true.
      !years_for_initial_dt = 1d-3 ! in years

      !set_initial_age = .true.
      !initial_age = 0 ! in years

      !relax_mass_scale = .true.
      new_mass = 1d0

      !relax_mass = .true. ! gradually change total mass
      !relax_initial_mass = .true.
      !new_mass = 1.02
      !lg_max_abs_mdot = -4 ! in log10(Msun/year)
         ! e.g., -8.0 for mdot of -10^-8 Msun/year

      set_tau_factor = .true.
      set_to_this_tau_factor = 300

      !pgstar_flag = .true.


/ ! end of star_job namelist



&controls

      D_norm_kappa = 1
      D_norm_alpha = 2 
      D_norm_atol = 1d-4
      D_norm_rtol = 1d-4
      
      
      use_lnE_for_eps_grav = .false.





      surf_bc_offset_factor = 0 ! until fix wd models


      ! check for retries and backups as part of test_suite
      !max_number_backups = 0
      !max_number_retries = 15

      logQ_limit = 100
      gamma_center_limit = 1000 ! FOR THIS TEST
            
      star_mass_max_limit = 1.00005d0
      
      !max_model_number = 1000
      
      
      !log_center_temp_lower_limit = 7.01
      !log_center_temp_lower_limit = 7.2001

      
      min_center_cell_dq = 1d-7
      max_center_cell_dq = 1d-6
      max_surface_cell_dq = 1d-8

      photostep = 100
      profile_interval = 100
      log_cnt = 100
      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.
      write_varcontrol_internals = -1
      
      report_hydro_dt_info = .false.
      
      !show_mesh_changes = .true.
      !mesh_dump_call_number = 79

      !trace_evolve = .true.
      
      ! 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 = 10
      
      min_timestep_limit = 1d-12

                  
      RGB_wind_scheme = ''
      AGB_wind_scheme = ''
      
      
      accrete_same_as_surface = .false. 
      accretion_h1 = 0.749D+00
      accretion_h2 = 0
      accretion_he3 = 0.292910D-04
      accretion_he4 = 0.237D+00
      accretion_zfracs = 4 ! Lodders 03


      xa_function_species(1) = 'h1'  ! name of nuclide as defined in chem_def
		xa_function_weight(1) = 20
		xa_function_param(1) = 1d-6
      xa_function_species(2) = 'he4'  ! name of nuclide as defined in chem_def
		xa_function_weight(2) = 20
		xa_function_param(2) = 1d-2


      delta_lgL_H_limit = 0.05 ! limit for magnitude of change in lgL_H
      delta_lgL_H_hard_limit = 0.5
      lgL_H_burn_min = 1.5 ! ignore changes in lgL_H if value is less than this

      delta_lgL_He_limit = 0.025 ! limit for magnitude of change in lgL_He
      delta_lgL_He_hard_limit = 1
      lgL_He_burn_min = 2.5 ! ignore changes in lgL_He if value is less than this

      delta_lgT_limit = 0.05  ! limit for magnitude of max change in log10 temperature at any point
      delta_lgT_hard_limit = 1
      
      delta_lgRho_limit = 1 ! limit for magnitude of max change in log10 density at any point
      delta_lgRho_hard_limit = -1

      !relax_hard_limits_after_backup = .false. 
      relax_hard_limits_after_retry = .false.


      delta_lgTeff_limit = 0.01  
         ! limit for magnitude of max change in log10 temperature at photosphere   
      delta_lgTeff_hard_limit = 0.03
   
      ! limit for magnitude of change in log10(L/Lsun)
      delta_lgL_limit = 0.05
      delta_lgL_hard_limit = 0.15
         
      
		!P_function_weight = 10
		!T_function1_weight = 10
		!mesh_delta_coeff = 0.5
		!mesh_delta_coeff = 0.8
		!mesh_delta_coeff = 1.2
      

      !dxdt_nuc_factor = 0
      
      !okay_to_remesh = .false.
      !remesh_cnt = 5

      varcontrol_target = 1d-2
      
      !tol_correction_norm = 1d-3
      !tol_max_correction = 1d-1
      
      super_eddington_wind_eta = 1
      !supersonic_wind_eta = 1

      
      !min_dt_for_mass_gain = 3.156e6 ! 10^-1 years
      
      net_logTcut_lo = 0
      net_logTcut_lim = 0

      use_CO_enhanced_opacities = .false.
      
      which_atm_option = 'grey_and_kap'
      
      use_artificial_viscosity = .true.
      !l1_coef = 0.1 ! increase to as much as 1d3 to suppress pulsations
      l1_coef = 100 ! increase to as much as 1d3 to suppress pulsations
      
      
      
      !alpha_semiconvection = 1d-2

   	
      mass_change = 2d-7 ! rate of accretion (Msun/year)
      
      !max_years_for_timestep = 1d-1
      !max_years_for_timestep = 1d5
      !max_years_for_timestep = 1d6


      
      ! change controls during mass ejection by super Eddington wind

         !delta_lgT_limit = 0.5
         !delta_lgT_hard_limit = 1

         !delta_lgTeff_limit = 0.1  
         !delta_lgTeff_hard_limit = 0.3
         
         ! also
            !new_tau_factor = 75 ! tau_factor of 1 puts outer cell at photosphere.


/ ! 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 = .true.
         MAIN_win_width = 6.5
         MAIN_win_aspect_ratio = 1.2 ! aspect_ratio = height/width
      
         xaxis_by = 'by_logxq' ! select xaxis for main window
            ! 1 = by_mass
            ! 2 = by_grid
            ! 3 = by_radius
            ! 4 = by_logR
            ! 5 = by_logP
            ! 6 = by_logxm
            ! 7 = h1_boundary_mass
            ! 8 = he4_boundary_mass
            ! 9 = c12_boundary_mass 
            
         show_main_win_text_info = .true.
         
         ! xaxis limits -- to override system default selections
         main_xmin = -12 !0.4
         main_xmax = -1
         
         logxq_cutoff = -14.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 = -7.5
         num_abundance_line_labels = 5
      
         log_abund_vary = 0.1 ! 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 = 1 ! output when mod(model_number,main_file_cnt)==0
               
               
      ! TRho Profile window -- current model in T-Rho plane
      
         !TRho_switch_to_Column_Depth = .true. 
         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 = .true.
         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 = -10
         TRho_Profile_xmax = 10
         TRho_Profile_ymin = 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 = 2 ! 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 = 'logxq'
         Profile_xaxis_reversed = .true.
         Profile_xmin = -14  ! only used if > -100
         !Profile_xmax = 1.2 !-101 ! only used if > -100
         
         Profile_yaxis_name = 'log_opacity' !'grada'
         Profile_yaxis_reversed = .false.
         Profile_ymin = -111 !5.4 ! only used if > -100
         Profile_ymax = -111 !8.6 ! only used if > -100    
         Profile_dymin = 0.025    
         
         Profile_other_yaxis_name = 'log_L_div_CpTMdot'
         Profile_other_yaxis_reversed = .false.
         Profile_other_ymin = 0 ! 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 = 1 ! 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 = .false.
      
         Abundance_win_width = 8.5
         Abundance_win_aspect_ratio = 0.618 ! aspect_ratio = height/width
      
         Abundance_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
         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 = .false.
         Abundance_file_dir = 'pgstar_out'
         Abundance_file_prefix = 'abund'
         Abundance_file_cnt = 5 ! 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
         
         


/ ! end of pgstar namelist
