! inlist_7M_prems_to_AGB

&star_job

   show_log_description_at_start = .false.

   load_saved_model = .true.
   load_model_filename = 'tams.mod'

   save_model_when_terminate = .true.
   save_model_filename = 'final.mod'
   required_termination_code_string = 'log_L_upper_limit'

   set_initial_model_number = .true.
   initial_model_number = 0

   set_initial_cumulative_energy_error = .true.
   new_cumulative_energy_error = 0d0

!   pause_before_terminate = .true. !! uncomment if you like!

   pgstar_flag = .true.

!!!!!!!!!!!!!!!!!!!!!!!!!!
! Add rotation initialization below
!!!!!!!!!!!!!!!!!!!!!!!!!!

    new_rotation_flag = .true.
    change_rotation_flag = .true.
    change_initial_rotation_flag = .true.
    new_omega_div_omega_crit = 1d-4 ! some number
    set_initial_omega_div_omega_crit = .true.
    set_omega_div_omega_crit = .true.

/ ! end of star_job namelist

&eos

/ ! end of eos namelist

&kap
   Zbase = 0.02

   use_Type2_opacities = .true.

/ !end of kap namelist

&controls

!!!!!!!!!!!!!!!!!!!!!!!
! Bonus task controls here
!!!!!!!!!!!!!!!!!!!!!!

   x_logical_ctrl(1) = .false. ! turn on for bonus task
   x_ctrl(1) = 100 ! numax
   x_ctrl(2) = 2.5 ! tolerance (change if no output)
   !write_profiles_flag = .false. ! turn on for bonus task

!!!!!!!!!!!!!!!!!!!!!!!
! GYRE output controls here
!!!!!!!!!!!!!!!!!!!!!!!

   write_pulse_data_with_profile = .true.
   add_atmosphere_to_pulse_data = .true.
   keep_surface_point_for_pulse_data = .true.
   add_double_points_to_pulse_data = .true. 
   pulse_data_format = 'GYRE'



! OPTIONAL TO CHANGE
   log_directory = 'LOGS'

   energy_eqn_option = 'dedt'
   use_gold2_tolerances = .true.
   max_abs_rel_run_E_err = 1d-2

   initial_mass = 1.00
   initial_z = 0.02

! NOTICE THE LOWERED RESOLUTION - FOR RUN TIME
   mesh_delta_coeff = 2.0d0 !default 1.0d0 (higher number lower resolution)
   time_delta_coeff = 2.0d0 !default 1.0d0

! NEED THIS TO FIX SOME ASTEROSEISMOLOGY ISSUES
   delta_Pg_mode_freq = 1d-99
   mixing_length_alpha = 1.73

! STOPPING CONDITION
   log_L_upper_limit = 1.4

   overshoot_scheme(1) = 'exponential'
   overshoot_zone_type(1) = 'any'
   overshoot_zone_loc(1) = 'any'
   overshoot_bdy_loc(1) = 'any'
   overshoot_f(1) = 0.014
   overshoot_f0(1) = 0.005

! NEEDED FOR GOOD BRUNT-VAISALA
   overshoot_D_min = 1d-2

   atm_option = 'T_tau'
   atm_T_tau_relation = 'Eddington'
   atm_T_tau_opacity = 'fixed'


! OUTPUT PARAMS - ADJUST AS NEEDED
! NOTE YOU WILL NEED HISTORY OUTPUT AT PROFILE FOR BONUS TASK
   photo_interval = 1000
   profile_interval = 10 ! change to 1 for bonus task
   history_interval = 1
   terminal_interval = 10
   write_header_frequency = 10

/ ! end of controls namelist
