
! inlist_swwind


&star_job
      show_log_description_at_start = .false.
      
      load_saved_model = .true.
      saved_model_name = 'sewind.mod'

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

      change_initial_net = .true.      
      new_net_name = 'cno_extras.net'

      change_v_flag = .true.
      new_v_flag = .false.

      set_to_this_tau_factor = 300 ! tau_factor of 1 puts outer cell at photosphere.
      set_tau_factor = .true. ! change tau_factor without reconverging.

      !pgstar_flag = .true.


/ ! end of star_job namelist



&controls

   num_trace_history_values = 0
   trace_history_value_name(1) = 'split_mixing_choice'



      ! check for retries and backups as part of test_suite
      ! you can/should delete this for use outside of test_suite
         max_number_backups = 80
         max_number_retries = 200
      
      use_Type2_opacities = .true.
      Zbase = 0.02d0


      ! NOTE we need to relax correction tolerances and remove checks for residuals
      
         tol_correction_norm = 1d-3
         tol_max_correction = 1d-1
      
         iter_for_resid_tol2 = 999
         tol_residual_norm1 = 1d99
         tol_max_residual1 = 1d99
         

      gamma_center_limit = 1000
      
      log_L_lower_limit = 0
      
      max_model_number = 1800
      
      correction_xa_limit = 5d-3
      
      max_center_cell_dq = 1d-6
      max_surface_cell_dq = 1d-8
      

      photostep = 50
      profile_interval = 100
      history_interval = 10
      terminal_cnt = 10
      write_header_frequency = 10
      
      min_timestep_limit = 1d-12
      
      which_atm_option = 'simple_photosphere'  
      Pextra_factor = -1

      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.1 ! limit for magnitude of change in lgL_H
      delta_lgL_H_hard_limit = 1
      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_lgL_limit = 0.05
      delta_lgL_hard_limit = 0.15

      delta_lgT_limit = 0.5
      delta_lgT_hard_limit = 1
      
      delta_lgRho_limit = 1
      delta_lgRho_hard_limit = -1

      delta_lgTeff_limit = 0.1  
      delta_lgTeff_hard_limit = 0.3

      relax_hard_limits_after_retry = .false.

		mesh_delta_coeff = 1.2

      varcontrol_target = 1d-2
      
      super_eddington_wind_eta = 1
      super_eddington_wind_Ledd_factor = 1
      
      net_logTcut_lo = 0
      net_logTcut_lim = 0
   	
      mass_change = 1d-9 ! rate of accretion (Msun/year)





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

      !report_why_dt_limits = .true.
      !report_all_dt_limits = .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


/ ! end of controls namelist



&pgstar
         
         
      Grid6_win_flag = .true.
      Grid6_win_width = 11
         
      !Grid6_file_flag = .true.
      Grid6_file_dir = 'png'
      Grid6_file_prefix = 'grid6_'
      Grid6_file_cnt = 5 ! output when mod(model_number,Grid6_file_cnt)==0
      Grid6_file_width = -1 ! (inches) negative means use same value as for window
      Grid6_file_aspect_ratio = -1 ! negative means use same value as for window

      Summary_Burn_xaxis_name = 'logP' 
      Summary_Burn_xaxis_reversed = .true.
      Summary_Burn_xmin = -101d0 ! -101d0 ! only used if /= -101d0
      Summary_Burn_xmax = -101d0  ! only used if /= -101d0
      
      Abundance_xaxis_name = 'logP' 
      Abundance_xaxis_reversed = .true.
      ! power xaxis limits -- to override system default selections
      Abundance_xmin = -101d0 ! -101d0 ! only used if /= -101d0
      Abundance_xmax = -101d0 ! only used if /= -101d0
      Abundance_log_mass_frac_min = -5 ! only used if < 0

      !Profile_Panels4_win_flag = .true.
      !Profile_Panels4_win_width = 6
         
      ! Abundance window -- current model abundance profiles
      
         Abundance_win_flag = .true.
      
         Abundance_win_width = 8
         Abundance_win_aspect_ratio = 1 ! aspect_ratio = height/width
      


/ ! end of pgstar namelist
