import glob


def lib_mesa_f_files(mesa_dir):
    """
    Returns list of selected MESA .f90 files & standard_run_star_extras.
    Feel free to choose the files that you are interested in. This gives a
    nice template for the main libraries called each timestep, I feel.
    """
    lib_files = glob.glob(mesa_dir + '/*/public/*_lib.f90')
    star_files = ['private/evolve.f90',
                  'public/star_lib.f90',
                  'job/run_star.f90',
                  'job/run_star_support.f90']
    star_files = [mesa_dir + '/star/' + x for x in star_files]
    star_files.append(mesa_dir + '/include/standard_run_star_extras.inc')
    main_files = lib_files + star_files
    return main_files