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_eps_grav
21 :
22 : ! consult star/other/README for general usage instructions
23 : ! control name: use_other_eps_grav = .true.
24 : ! procedure pointer: s% other_eps_grav => my_routine
25 :
26 : implicit none
27 :
28 : contains
29 :
30 0 : subroutine null_other_eps_grav(id, k, dt, ierr)
31 : use star_def
32 : integer, intent(in) :: id, k
33 : real(dp), intent(in) :: dt
34 : integer, intent(out) :: ierr
35 0 : ierr = 0
36 :
37 : ! NOTE: this is called after 1st doing the standard eps_grav calculation.
38 : ! so if you decide you don't want to do anything special, just return.
39 :
40 : ! NOTE: need to set the auto_diff variable s% eps_grav_ad(k)
41 : ! this is type(auto_diff_real_star_order1) so includes partials.
42 : ! in addition to setting the value,
43 : ! you must also set the partials, and there are lots of them.
44 :
45 0 : end subroutine null_other_eps_grav
46 :
47 : end module other_eps_grav
48 :
|