
&star_job
      show_log_description_at_start = .false.

      save_model_when_terminate = .true.
      save_model_filename = 'final.mod'
      !save_model_filename = '50M_logT_9.5.mod'
   
      load_saved_model = .true.
      saved_model_name = '50M_logT_9.5.mod'
      
      write_profile_when_terminate = .true.
      filename_for_profile_when_terminate = 'final_profile.data'

      change_net = .true.      
      new_net_name = 'approx21_plus_co56.net'
                  
      !new_rotation_flag = .true.
      !change_rotation_flag = .false.  ! rotation off until near zams
      !set_near_zams_omega_div_omega_crit_steps = 10 ! only applies if > 0
      !new_omega_div_omega_crit = 0.4 ! 0.5      

      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 = 200
         max_number_retries = 800
         max_model_number = 10001

      !super_eddington_wind_eta = 1



      initial_mass = 50
      initial_z = 0.02d0
      Zbase = 0.02d0
      
      num_trace_history_values = 1
      trace_history_value_name(1) = 'log_L_div_Ledd'
      trace_history_value_name(2) = 'split_mixing_choice'
      
!      xa_central_lower_limit_species(1) = 'he4'
!      xa_central_lower_limit(1) = 1d-5
      
!      xa_central_lower_limit_species(1) = 'c12'
!      xa_central_lower_limit(1) = 1d-5

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

!      log_center_temp_limit = 9.35

      xa_central_upper_limit_species(1) = 'cr56'
      xa_central_upper_limit(1) = 0.4

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

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

      !tol_correction_norm = 1d-4
      !tol_max_correction = 1d-3
      
      which_atm_option = 'simple_photosphere'  
      Pextra_factor = -1 

      am_nu_visc_factor = 0
      am_D_mix_factor = 0.0333333333333333d00
      D_DSI_factor = 1
      D_SH_factor = 0
      D_SSI_factor = 1
      D_ES_factor = 1
      D_GSF_factor = 1
      D_ST_factor = 1

      delta_lgT_cntr_limit = 0.01  
         ! limit for magnitude of change in log10 temperature at center   
      delta_lgT_cntr_hard_limit = 0.03

      delta_lgRho_cntr_limit = 0.05  
         ! limit for magnitude of change in log10 density at center   
      delta_lgRho_cntr_hard_limit = 0.15

      overshoot_f_above_burn_z_core = 0.001
      overshoot_f_above_burn_z_shell = 0.001
      overshoot_f_below_burn_z_shell = 0.001
      


/ ! end of controls namelist



&pgstar
         
!pause = .true.
      
      pgstar_lw = 8
         
      Grid2_win_flag = .true.


         Grid2_win_width = 12
         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_name(1) = 'TRho'
         Grid2_plot_row(1) = 1 ! number from 1 at top
         Grid2_plot_rowspan(1) = 3 ! plot spans this number of rows
         Grid2_plot_col(1) =  1 ! number from 1 at left
         Grid2_plot_colspan(1) = 2 ! plot spans this number of columns 
         Grid2_plot_pad_left(1) = 0.00 ! fraction of full window width for padding on left
         Grid2_plot_pad_right(1) = 0.02 ! fraction of full window width for padding on right
         Grid2_plot_pad_top(1) = 0.00 ! fraction of full window height for padding at top
         Grid2_plot_pad_bot(1) = 0.06 ! fraction of full window height for padding at bottom
         Grid2_txt_scale_factor(1) = 0.65 ! multiply txt_scale for subplot by this

         
         Grid2_plot_name(6) = 'Abundance'
         Grid2_plot_row(6) = 4 ! number from 1 at top
         Grid2_plot_rowspan(6) = 3 ! plot spans this number of rows
         Grid2_plot_col(6) =  1 ! number from 1 at left
         Grid2_plot_colspan(6) = 2 ! plot spans this number of columns 
         Grid2_plot_pad_left(6) = 0.00 ! fraction of full window width for padding on left
         Grid2_plot_pad_right(6) = 0.02 ! fraction of full window width for padding on right
         Grid2_plot_pad_top(6) = 0.06 ! 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

         
         Grid2_plot_name(2) = 'Text_Summary1'
         Grid2_plot_row(2) = 7 ! number from 1 at top
         Grid2_plot_rowspan(2) = 2 ! plot spans this number of rows
         Grid2_plot_col(2) = 1 ! number from 1 at left
         Grid2_plot_colspan(2) = 4 ! plot spans this number of columns 
         Grid2_plot_pad_left(2) = -0.08 ! fraction of full window width for padding on left
         Grid2_plot_pad_right(2) = -0.12 ! fraction of full window width for padding on right
         Grid2_plot_pad_top(2) = 0.08 ! fraction of full window height for padding at top
         Grid2_plot_pad_bot(2) = -0.04 ! fraction of full window height for padding at bottom
         Grid2_txt_scale_factor(2) = 0.19 ! multiply txt_scale for subplot by this
         
         Grid2_plot_name(3) = 'Mixing'
         
         Grid2_plot_row(3) = 1 ! number from 1 at top
         Grid2_plot_rowspan(3) = 3 ! plot spans this number of rows
         Grid2_plot_col(3) = 3 ! plot spans this number of columns 
         Grid2_plot_colspan(3) = 3 ! plot spans this number of columns 
         
         Grid2_plot_pad_left(3) = 0.07 ! fraction of full window width for padding on left
         Grid2_plot_pad_right(3) = 0.08 ! fraction of full window width for padding on right
         Grid2_plot_pad_top(3) = 0.0 ! fraction of full window height for padding at top
         Grid2_plot_pad_bot(3) = 0.06 ! fraction of full window height for padding at bottom
         Grid2_txt_scale_factor(3) = 0.65 ! multiply txt_scale for subplot by this
         
         Grid2_plot_name(4) = 'Power'
         
         Grid2_plot_row(4) = 4 ! number from 1 at top
         Grid2_plot_rowspan(4) = 3 ! plot spans this number of rows
         Grid2_plot_col(4) =  3 ! number from 1 at left
         Grid2_plot_colspan(4) = 3 ! plot spans this number of columns 
         
         Grid2_plot_pad_left(4) = 0.07 ! fraction of full window width for padding on left
         Grid2_plot_pad_right(4) = 0.08 ! fraction of full window width for padding on right
         Grid2_plot_pad_top(4) = 0.06 ! fraction of full window height for padding at top
         Grid2_plot_pad_bot(4) = 0.0 ! fraction of full window height for padding at bottom
         Grid2_txt_scale_factor(4) = 0.65 ! multiply txt_scale for subplot by this



         Grid2_plot_name(5) = 'Profile_Panels1'
         Grid2_plot_row(5) = 1 ! number from 1 at top
         Grid2_plot_rowspan(5) = 8 ! plot spans this number of rows
         Grid2_plot_col(5) =  6 ! number from 1 at left
         Grid2_plot_colspan(5) = 2 ! plot spans this number of columns 
         Grid2_plot_pad_left(5) = 0.05 ! fraction of full window width for padding on left
         Grid2_plot_pad_right(5) = 0.03 ! fraction of full window width for padding on right
         Grid2_plot_pad_top(5) = 0.0 ! fraction of full window height for padding at top
         Grid2_plot_pad_bot(5) = 0.0 ! fraction of full window height for padding at bottom
         Grid2_txt_scale_factor(5) = 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 = 10 ! 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_xmax = 2.4 ! -101 ! 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 = 4
               
      Profile_Panels1_yaxis_name(1) = 'logT'         
      Profile_Panels1_other_yaxis_name(1) = 'entropy'   
         Profile_Panels1_other_ymin(1) = -101d0 ! 0 ! only used if /= -101d0
         Profile_Panels1_other_ymax(1) = -101d0 ! only used if /= -101d0
         Profile_Panels1_other_ymargin(1) = 0.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.1
      
      Profile_Panels1_yaxis_name(3) = 'ye'         
         Profile_Panels1_ymin(3) = -101d0 ! 0.43 ! only used if /= -101d0
         Profile_Panels1_ymax(3) = -101d0 ! 0.51 ! only used if /= -101d0        
         Profile_Panels1_ymargin(3) = 0.1 
      Profile_Panels1_other_yaxis_name(3) = 'vel_km_per_s' 
         Profile_Panels1_other_ymin(3) = -101d0 ! -1200 ! only used if /= -101d0
         Profile_Panels1_other_ymax(3) = -101d0 ! 300d0 ! only used if /= -101d0
         Profile_Panels1_other_ymargin(3) = 0.1 ! 10
      
      Profile_Panels1_yaxis_name(4) = 'log_omega'         
         Profile_Panels1_ymin(4) = -101d0 ! 0.43 ! only used if /= -101d0
         Profile_Panels1_ymax(4) = -101d0 ! 0.51 ! only used if /= -101d0        
         Profile_Panels1_ymargin(4) = 0.1 
      Profile_Panels1_other_yaxis_name(4) = 'log_j_rot' 
         Profile_Panels1_other_ymin(4) = -101d0 ! -1200 ! only used if /= -101d0
         Profile_Panels1_other_ymax(4) = -101d0 ! 300d0 ! only used if /= -101d0
         Profile_Panels1_other_ymargin(4) = 0.1 ! 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_xmax = 2.4 ! -101d0 ! only used if /= -101d0
      
      Profile_Panels1_xmargin = 0d0




Power_xmax = 2.6 ! -101 ! only used if /= -101d0
Abundance_xmax = 2.6 ! -101 ! only used if /= -101d0
Mixing_xmax = 2.6 ! -101d0 ! only used if /= -101d0
Profile_Panels1_xmax = 2.6 ! -101d0 ! only used if /= -101d0

/ ! end of pgstar namelist
