

! note: this inlist is done after 1st doing inlist_massive_defaults
! so can override defaults as desired.


! relax composition to desired uniform values

! for masses <= 8 Msun

! set "new_mass" to the desired mass
! set "accretion_species" to the desired composition


&star_job
      
      relax_initial_to_xaccrete = .true.
      num_steps_to_relax_composition = 50

      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 = 'approx21_plus_co56.net'

      !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 = 250
         max_number_retries = 900
         
         max_model_number = 20000

         photostep = 50
         profile_interval = 10
         history_interval = 5
         terminal_cnt = 5
         write_header_frequency = 10


         initial_mass = 6
         initial_z = 0.02d0
         Zbase = 0.02d0
         

!         xa_central_lower_limit_species(1) = 'o16'
!         xa_central_lower_limit(1) = 1d-2

         
!         dX_nuc_drop_limit_at_high_T = 1d-2 ! for center logT > 9.45

!         varcontrol_target = 1d-3
!         dX_nuc_drop_limit = 2d-2 ! 5d-3

!         delta_lgT_cntr_limit = 0.01  
!         delta_lgT_cntr_hard_limit = 0.03

!         delta_lgRho_cntr_limit = 0.05  
!         delta_lgRho_cntr_hard_limit = 0.15





         RGB_wind_scheme = ''
         AGB_wind_scheme = ''

         accrete_same_as_surface = .false. 
         accrete_given_mass_fractions = .true. 

         ! HE/N
         ! set target uniform composition for relax_initial_to_xaccrete
!         num_accretion_species = 2
!         accretion_species_id(1) = 'he4'
!         accretion_species_xa(1) = 0.98d0
!         accretion_species_id(2) = 'n14'
!         accretion_species_xa(2) = 0.02d0
         
         ! C/O MIX
         ! set target uniform composition for relax_initial_to_xaccrete
         num_accretion_species = 2
         accretion_species_id(1) = 'c12'
         accretion_species_xa(1) = 0.2145d0
         accretion_species_id(2) = 'o16'
         accretion_species_xa(2) = 0.7855d0

         log_center_density_limit = 12 
         log_center_temp_limit = 10.3d0 ! max T about 2d10         


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



/ ! end of controls namelist


&pgstar

!clear_history = .true.
!pause = .true.
         
!Profile_Panels1_xmax = 2.1 ! -101d0 ! only used if /= -101d0
!Abundance_xmax = 2.1 ! -101 ! only used if /= -101d0

/ ! end of pgstar namelist
