Line data Source code
1 : ! ***********************************************************************
2 : !
3 : ! Copyright (C) 2019 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 other_timestep_limit
21 :
22 : ! consult star/other/README for general usage instructions
23 : ! control name: use_other_timestep_limit = .true.
24 : ! procedure pointer: s% other_timestep_limit => my_routine
25 :
26 : implicit none
27 :
28 : contains
29 :
30 0 : integer function null_other_timestep_limit( &
31 : id, skip_hard_limit, dt, dt_limit_ratio)
32 : use const_def, only: dp
33 : use star_def
34 : integer, intent(in) :: id
35 : logical, intent(in) :: skip_hard_limit
36 : real(dp), intent(in) :: dt
37 : real(dp), intent(inout) :: dt_limit_ratio
38 0 : null_other_timestep_limit = keep_going
39 0 : end function null_other_timestep_limit
40 :
41 : end module other_timestep_limit
42 :
|