! NOTE: this test only considers the case of no overshoot below the carbon burning convection zone

&star_job
      
      show_log_description_at_start = .false. 

      load_saved_model = .true.
      saved_model_name = 'pre_c_flash.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.      
      !change_net = .true.      
      !new_net_name = 'sagb_NeNa_MgAl.net'


      eos_file_prefix = 'mesa'
      kappa_file_prefix = 'gs98'

      set_initial_age = .true.
      initial_age = 0 ! in years

      set_initial_model_number = .true.
      initial_model_number = 0

      !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 = 10
         max_number_retries = 100

      
      max_model_number = 4000


      initial_mass = 9
      initial_z = 0.02d0
      
      xa_central_lower_limit_species(1) = 'c12'
      xa_central_lower_limit(1) = 0.05
      
      split_mixing_choice = -2
      split_mix_do_burn = .true.

      num_trace_history_values = 1
      trace_history_value_name(1) = 'split_mixing_choice'

      dX_nuc_drop_limit = 2d-2
      mesh_delta_coeff = 2
      varcontrol_target = 1d-3
      
      mixing_length_alpha = 1.89d0
      MLT_option = 'Henyey'

      photostep = 50
      profile_interval = 50
      history_interval = 1
      terminal_cnt = 5
      write_header_frequency = 10
      
      max_age = 10d9
      max_years_for_timestep = 1d9



      report_hydro_solver_progress = .false. ! set true to see info about newton iterations
      report_ierr = .false. ! if true, produce terminal output when have some internal error

      report_why_dt_limits = .false.
      report_all_dt_limits = .false.
      
      !show_mesh_changes = .true.
      !mesh_dump_call_number = 8242
      !okay_to_remesh = .false.

      !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 = 24765
      
      RGB_wind_scheme = ''
      AGB_wind_scheme = ''
      RGB_to_AGB_wind_switch = 1d-4
      Reimers_wind_eta = 0.5d0  
      Blocker_wind_eta = 0.1d0  


/ ! end of controls namelist


&pgstar

         
!pause = .true.
         
      Grid2_win_flag = .true.

         Grid2_win_width = 14
         Grid2_win_aspect_ratio = 0.5 ! aspect_ratio = height/width


         Grid2_num_cols = 7 ! divide plotting region into this many equal width cols
         Grid2_num_rows = 8 ! divide plotting region into this many equal height rows
         Grid2_num_plots = 6 ! <= 10

         Grid2_plot_pad_right(5) = 0.00 ! fraction of full window width for padding on right
         Grid2_plot_colspan(5) = 3 ! plot spans this number of columns 
         Grid2_plot_colspan(4) = 5 ! plot spans this number of columns 

         Grid2_plot_name(6) = 'Profile_Panels1'
         Grid2_plot_row(6) = 1 ! number from 1 at top
         Grid2_plot_rowspan(6) = 8 ! plot spans this number of rows
         Grid2_plot_col(6) =  6 ! number from 1 at left
         Grid2_plot_colspan(6) = 2 ! plot spans this number of columns 
         Grid2_plot_pad_left(6) = 0.06 ! fraction of full window width for padding on left
         Grid2_plot_pad_right(6) = 0.03 ! fraction of full window width for padding on right
         Grid2_plot_pad_top(6) = 0.0 ! fraction of full window height for padding at top
         Grid2_plot_pad_bot(6) = 0.0 ! fraction of full window height for padding at bottom
         Grid2_txt_scale_factor(6) = 0.65 ! multiply txt_scale for subplot by this

         TRho_logRho_dlogRho_min = 0.01 
         TRho_logT_dlogT_min = 0.02 
         HR_dlogT_min = 0.02
         HR_dlogL_min = 0.01

         Text_Summary1_name(2,1) = 'star_age'

! file output
!Grid2_file_flag = .true.
   Grid2_file_dir = 'png'
   Grid2_file_prefix = 'grid_'
   Grid2_file_cnt = 1 ! 1 ! output when mod(model_number,Grid2_file_cnt)==0
   Grid2_file_width = -1 ! negative means use same value as for window
   Grid2_file_aspect_ratio = -1 ! negative means use same value as for window
      
      
      show_TRho_Profile_eos_regions = .false.
      TRho_Profile_xmin = -5.1
      TRho_Profile_xmax = 10.2
      TRho_Profile_ymin = 5.1
      TRho_Profile_ymax = 10.2        

         Text_Summary1_name(1,3) = 'log_cntr_Rho'
         Text_Summary1_name(2,3) = 'log_cntr_T'
         Text_Summary1_name(3,3) = 'max_T_mass'
         Text_Summary1_name(4,3) = 'max_T_lgRho'
         Text_Summary1_name(5,3) = 'max_T_lgT'

         !Text_Summary1_name(6,3) = 'center_ye'
         
         !Text_Summary1_name(7,3) = 'iron_core_infall'
         !Text_Summary1_name(8,3) = 'non_iron_core_infall'
         
         !Text_Summary1_name(8,1) = 'center o16'
         Text_Summary1_name(8,1) = 'species'
      
      !Abundance_win_flag = .true.
      Abundance_win_width = 6
      Abundance_win_aspect_ratio = 1 ! aspect_ratio = height/width
      
      

!      Abundance_xaxis_name = 'logR' 
!      Abundance_xaxis_reversed = .false.
!      Abundance_xmin = -4 ! only used if /= -101d0
!      Abundance_xmax = -2 ! -101 ! only used if /= -101d0

      Abundance_xaxis_name = 'mass' 
      Abundance_xaxis_reversed = .false.
      Abundance_xmin = 0 ! only used if /= -101d0

      
      Abundance_line_txt_scale_factor = 1.1 ! relative to other text
      Abundance_legend_txt_scale_factor = 1.1 ! relative to other text

         Abundance_legend_max_cnt = 0
      
      Abundance_log_mass_frac_min = -3 ! only used if < 0
      
      
      
      !Abundance_file_flag = .true.
      Abundance_file_dir = 'png'
      Abundance_file_prefix = 'abund_'
      Abundance_file_cnt = 5 ! output when mod(model_number,Abundance_file_cnt)==0
      Abundance_file_width = -1 ! (inches) negative means use same value as for window
      Abundance_file_aspect_ratio = -1 ! negative means use same value as for window
      
      
      !Profile_Panels1_win_flag = .true.
      Profile_Panels1_win_width = 6
      Profile_Panels1_win_aspect_ratio = 1 ! aspect_ratio = height/width

      Profile_Panels1_title = 'Profile Panels'      
      Profile_Panels1_num_panels = 3  
             
      Profile_Panels1_yaxis_name(1) = 'logT'         
      Profile_Panels1_other_yaxis_name(1) = 'entropy'   
         Profile_Panels1_other_ymin(1) = 0 ! only used if /= -101d0
         Profile_Panels1_other_ymax(1) = -101d0 ! only used if /= -101d0
         Profile_Panels1_other_ymargin(1) = 1
            
      Profile_Panels1_yaxis_name(2) = 'logRho'
      Profile_Panels1_other_yaxis_name(2) = 'logR_cm' 
         Profile_Panels1_other_ymin(2) = -101d0 ! only used if /= -101d0
         Profile_Panels1_other_ymax(2) = -101d0 ! only used if /= -101d0
         Profile_Panels1_other_ymargin(2) = 0
      
      Profile_Panels1_yaxis_name(3) = 'log_abs_eps_nuc'         
         Profile_Panels1_ymin(3) = 5 ! only used if /= -101d0
         !Profile_Panels1_ymax(3) = 0.51 ! only used if /= -101d0        
         !Profile_Panels1_ymargin(3) = 0.1 
      Profile_Panels1_other_yaxis_name(3) = 'log_D_mix' 
         Profile_Panels1_other_ymin(3) = 5 ! only used if /= -101d0
         !Profile_Panels1_other_ymax(3) = 300d0 ! only used if /= -101d0
         !Profile_Panels1_other_ymargin(3) = 10
  
  
  
!      Profile_Panels1_xaxis_name = 'logR'
!      Profile_Panels1_xaxis_reversed = .false.
!      Profile_Panels1_xmin = -4 ! only used if /= -101d0
!      Profile_Panels1_xmax = -2 ! -101d0 ! only used if /= -101d0
  
      Profile_Panels1_xaxis_name = 'mass'
      Profile_Panels1_xaxis_reversed = .false.
      Profile_Panels1_xmin = 0.0 ! only used if /= -101d0
      
      Profile_Panels1_xmargin = 0d0



Profile_Panels1_xmax = 0.5 ! -101d0 ! only used if /= -101d0
Abundance_xmax = 0.5 ! -101 ! only used if /= -101d0



/ ! end of pgstar namelist
