Line data Source code
1 : ! ***********************************************************************
2 : !
3 : ! Copyright (C) 2022 The MESA Team
4 : !
5 : ! This program is free software: you can redistribute it and/or modify
6 : ! it under the terms of the GNU Lesser General Public License
7 : ! as published by the Free Software Foundation,
8 : ! either version 3 of the License, or (at your option) any later version.
9 : !
10 : ! This program is distributed in the hope that it will be useful,
11 : ! but WITHOUT ANY WARRANTY; without even the implied warranty of
12 : ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 : ! See the GNU Lesser General Public License for more details.
14 : !
15 : ! You should have received a copy of the GNU Lesser General Public License
16 : ! along with this program. If not, see <https://www.gnu.org/licenses/>.
17 : !
18 : ! ***********************************************************************
19 :
20 : module run_star
21 : implicit none
22 :
23 : contains
24 :
25 1 : subroutine do_run_star(inlist_fname_arg)
26 : use run_star_support, only: run1_star
27 : use run_star_extras, only: extras_controls
28 : use star_lib, only: starlib_shutdown
29 : character (len=*) :: inlist_fname_arg
30 : optional inlist_fname_arg
31 : logical, parameter :: &
32 : do_alloc_star = .true., &
33 : do_free_star = .true., &
34 : restart_okay = .true.
35 : integer :: id, ierr
36 : logical :: restart
37 : call run1_star( &
38 : do_alloc_star, &
39 : do_free_star, &
40 : restart_okay, &
41 : id, restart, &
42 : extras_controls, &
43 : ierr, &
44 1 : inlist_fname_arg)
45 1 : call starlib_shutdown
46 2 : end subroutine do_run_star
47 :
48 : end module run_star
|