
! inlist_swwind


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

      change_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

      ! 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 = 120




      ! NOTE we need to relax correction tolerances and remove checks for residuals
      
         tol_correction_norm = 1d-3
         tol_max_correction = 1d-1
      
         max_iter_for_resid_tol1 = 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
      
      mdot_eps_grav_limit = -1 ! disable for this test
      
      min_center_cell_dq = 1d-7
      max_center_cell_dq = 1d-6
      max_surface_cell_dq = 1d-8
      

      photostep = 100
      profile_interval = 100
      history_interval = 10
      terminal_cnt = 10
      write_header_frequency = 10
      
      min_timestep_limit = 1d-12

      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_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)

/ ! 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
      


/ ! end of pgstar namelist
