Line data Source code
1 : ! ***********************************************************************
2 : !
3 : ! Copyright (C) 2010 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_energy_implicit
21 :
22 : ! consult star/other/README for general usage instructions
23 : ! control name: use_other_energy_implicit = .true.
24 : ! procedure pointer: s% other_energy_implicit => my_routine
25 :
26 : implicit none
27 :
28 : contains
29 :
30 0 : subroutine default_other_energy_implicit(id, ierr)
31 : use star_def
32 : use const_def, only: Rsun
33 : use auto_diff
34 : integer, intent(in) :: id
35 : integer, intent(out) :: ierr
36 : !type(star_info), pointer :: s
37 : !integer :: k, nz
38 0 : ierr = 0
39 : ! call star_ptr(id, s, ierr)
40 : ! if (ierr /= 0) return
41 : ! s% extra_heat(1:s%nz) = 1d0 ! erg/g/sec
42 : ! note that extra_heat is type(auto_diff_real_star_order1) so includes partials.
43 0 : end subroutine default_other_energy_implicit
44 :
45 : end module other_energy_implicit
46 :
|