&star_job

      show_log_description_at_start = .false. 
      
      create_pre_main_sequence_model = .false.

      new_rotation_flag = .true.
      change_rotation_flag = .true.
      set_initial_omega_div_omega_crit = .true.
      new_omega_div_omega_crit = 0.1

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

/ !end of star_job

&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 = 110
      max_number_retries = 110
      
      max_model_number = 200
      
      
      
      premix_omega = .true.
      
      
      am_nu_visc_factor = 0
      am_D_mix_factor = 0.0333333333333333d00
      D_DSI_factor = 1
      D_SH_factor = 1
      D_SSI_factor = 1
      D_ES_factor = 1
      D_GSF_factor = 1
      D_ST_factor = 1
      
      
      

  ! starting specifications
      initial_mass = 20 ! in Msun units
      initial_Z = 0.02

      max_mdot_redo_cnt = 200
      min_years_dt_for_redo_mdot = 0
      surf_w_div_w_crit_limit = 0.999d0
      surf_w_div_w_crit_tol = 0.055
      rotational_mdot_boost_fac = 1d10
      rotational_mdot_kh_fac = 1d10
      mdot_revise_factor = 1.1
      implicit_mdot_boost = 0.1

      use_accreted_material_j = .true.
      use_other_adjust_mdot = .true.

      ! ratio of accreted am to keplerian
      x_ctrl(1) = 1.0
      ! log10 accretion rate in msun/secyer
      x_ctrl(2) = -3
      ! log10 max timestep in yr
      x_ctrl(3) = 2.0

      varcontrol_target = 1d-2

   
   ! output to files and terminal
      photostep = 50
      profile_interval = 50
      max_num_profile_models = 3000
      history_interval = 1
      terminal_interval = 1
      write_header_frequency = 10
/


&pgstar
         


/ ! end of pgstar namelist
