

&star_job
      show_log_description_at_start = .false.

      load_saved_model = .true.
      saved_model_name = 'thermohaline.mod'

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

      eos_file_prefix = 'mesa'
      kappa_file_prefix = 'gs98'
                     
      change_lnPgas_flag = .true.
      new_lnPgas_flag = .true.

      !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 = 50
            max_number_retries = 100
            max_model_number = 2001

         initial_mass = 1.0
         initial_z = 2d-2


      
         num_trace_history_values = 1
         trace_history_value_name(1) = 'split_mixing_choice'      

         split_mixing_choice = -2
         split_mix_do_burn = .true.
      


         ! to match Cantiello & Langer
         RGB_wind_scheme = ''
         AGB_wind_scheme = 'de Jager'
         RGB_to_AGB_wind_switch = 1d-4
         de_Jager_wind_eta = 1

         mixing_D_limit_for_log = 1d4
         
         he_core_mass_limit = 0.24d0
         
      
         use_Ledoux_criterion = .true.
         alpha_semiconvection = 4d-2
                  
         thermohaline_coeff = 2  
         thermohaline_option = 'Kippenhahn'

         dX_mix_dist_limit = 1d-4 
         
         omega_function_weight = 20
         
         iter_for_resid_tol2 = 4
         iter_for_resid_tol3 = 7 

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

         mdot_omega_power = 0.43

         clip_D_limit = 10 ! zero mixing diffusion coeffs that are smaller than this
         
         xa_scale = 1d-5
         newton_itermin = 2

         tol_correction_norm_alt = 1d-3
         tol_max_correction_alt = 1d0

         mass_change_full_on_dt = 1d7 ! (seconds)
         mass_change_full_off_dt = 1d6 ! (seconds)

         mixing_length_alpha = 1.6
         
         !min_timestep_limit = 1d-12 ! (seconds)

         photostep = 50
         profile_interval = 50
         history_interval = 1
         terminal_interval = 1
         write_header_frequency = 10

         T_mix_limit = 1d4

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

      !trace_newton_bcyclic_solve_input = .true. ! input is "B" j k iter B(j,k)
      !trace_newton_bcyclic_solve_output = .true. ! output is "X" j k iter X(j,k)
      
      trace_newton_bcyclic_steplo = 2 ! 1st model number to trace
      trace_newton_bcyclic_stephi = 2 ! last model number to trace
      
      trace_newton_bcyclic_iterlo = 0 ! 1st newton iter to trace
      trace_newton_bcyclic_iterhi = 20 ! last newton iter to trace
      
      trace_newton_bcyclic_nzlo = 1 ! 1st cell to trace
      trace_newton_bcyclic_nzhi = 10000 ! last cell to trace; if < 0, then use nz as nzhi
      
      trace_newton_bcyclic_jlo = 1 ! 1st var to trace
      trace_newton_bcyclic_jhi = 100 ! last var to trace; if < 0, then use nvar as jhi
      
      !trace_k = 1284

/ ! end of controls namelist



&pgstar
         

/ ! end of pgstar namelist
