! inlist_massive_rotating

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

&star_job

      create_pre_main_sequence_model = .true.

      save_model_when_terminate = .true.
      save_model_filename = 'final.mod'
      
      write_profile_when_terminate = .true.
      filename_for_profile_when_terminate = 'final_profile.data'
      
      new_rotation_flag = .true.
      change_rotation_flag = .false.  ! rotation off until near zams
      new_omega_div_omega_crit = 0.1  
      near_zams_relax_omega_div_omega_crit = .true.
      num_steps_to_relax_rotation = 50 ! use this many steps to change value

      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 delete this for use outside of test_suite
         max_number_backups = 400
         max_number_retries = 900
         
         max_model_number = 9000

         initial_mass = 80
         initial_z = 0.03d0
         Zbase = 0.03d0

         varcontrol_target = 1d-3
         mesh_delta_coeff = 0.8

         xa_central_upper_limit_species(1) = 'si28'
         xa_central_upper_limit(1) = 0.1
         
         
!         dX_nuc_drop_limit = 1d-2 ! 5d-3

!         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
         
         num_trace_history_values = 0
         trace_history_value_name(1) = 'split_mixing_choice'
         
         no_wind_if_no_rotation = .true. ! delay wind until start rotation

         D_DSI_factor = 1.0
         D_SH_factor =  0.0
         D_SSI_factor = 1.16
         D_ES_factor =  1.16
         D_GSF_factor = 1.16
         D_ST_factor = 1.0
         am_nu_visc_factor = 0
         
         am_D_mix_factor = 0.0333d0
         am_nu_factor = 1.0
         am_gradmu_factor = 0.05

         use_Ledoux_criterion = .false.
      
         which_atm_option = 'simple_photosphere'  
         Pextra_factor = -1 

         RGB_wind_scheme = 'Dutch'
         AGB_wind_scheme = 'Dutch'
         Dutch_wind_lowT_scheme = 'de Jager'
         RGB_to_AGB_wind_switch = 1d-4
         Dutch_wind_eta = 0.6

         max_rotational_mdot_boost = 10

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

         !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.

         !report_why_dt_limits = .true.
         !report_all_dt_limits = .true.
         
         !show_mesh_changes = .true.
         !mesh_dump_call_number = 1598
         
         !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


/ ! end of controls namelist


&pgstar
         
!pause = .true.
         Grid3_win_flag = .true.
         Grid3_win_width = 8
         Grid3_win_aspect_ratio = 1.2 ! aspect_ratio = height/width

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

/ ! end of pgstar namelist
