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_accreting_state
21 :
22 : ! consult star/other/README for general usage instructions
23 : ! control name: use_other_accreting_state = .true.
24 : ! procedure pointer: s% other_accreting_state => my_routine
25 :
26 : implicit none
27 :
28 : contains
29 :
30 : ! Note that your routine will be called before many star variables have been set.
31 : ! If you rely on these, you should call the star_set_vars_in_part1 routine from star_lib
32 : ! to ensure that they are set.
33 0 : subroutine null_other_accreting_state(id, total_specific_energy, accretion_pressure, accretion_density, ierr)
34 : use star_def
35 : integer, intent(in) :: id
36 : real(dp), intent(out) :: total_specific_energy, accretion_pressure, accretion_density
37 : integer, intent(out) :: ierr
38 0 : total_specific_energy = 0d0 ! erg/g
39 0 : accretion_pressure = 0d0 ! erg/cm^3
40 0 : accretion_density = 0d0 ! g/cm^3
41 0 : ierr = 0
42 0 : end subroutine null_other_accreting_state
43 :
44 : end module other_accreting_state
45 :
|