!  create_zahb - evolves a grid of masses from a single 
!  starting model up to, or through, core He burning.
!  begin with a starting model that has not quite begun 
!  core He burning, define a list of masses, and a point 
!  at which to terminate the evolution. details should 
!  be specified in the create_zahb namelist below.
!  based on the isochrone test_suite


! set save_last_model = .true.
! and out you will get model files with names like the logs
! except ending in .mod instead of .log.



&create_zahb

   start_from_photo = .false.
   pre_zahb_photo = ''
   pre_zahb_model = 'pre_zahb.mod'
   
   save_last_model = .true.

   masses_filename = 'zahb_masses.list'

/ ! end of zahb namelist

&star_job

      show_log_description_at_start = .false.

/ ! 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 = 1
      max_number_retries = 100

      max_model_number = 3000
      
      
      ! controls for output
      photostep = 50
      history_interval = 2 ! write info to terminal and log when mod(model_number, history_interval) = 0.
      terminal_cnt = 10
      write_header_frequency = 10

      ! MLT
      mixing_length_alpha = 1.9
      MLT_option = 'Henyey'

      ! atmosphere
      which_atm_option = 'photosphere_tables'

      ! when to stop
      HB_limit = 0.90 ! for detecting horizontal branch
      !stop_at_TP = .true.    

/ ! end of controls namelist
