Line data Source code
1 : ! ***********************************************************************
2 : !
3 : ! Copyright (C) 2012 Bill Paxton, Pablo Marchant & 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 mod_other_mdot_edd
21 :
22 : ! NOTE: remember to set true:
23 : ! use_other_mdot_edd = .true.
24 :
25 : implicit none
26 :
27 : contains
28 :
29 0 : subroutine null_other_mdot_edd(binary_id, mdot_edd, mdot_edd_eta, ierr)
30 : use binary_def, only : binary_info, binary_ptr
31 : use const_def, only: dp
32 : integer, intent(in) :: binary_id
33 : real(dp), intent(out) :: mdot_edd
34 : real(dp), intent(out) :: mdot_edd_eta
35 : integer, intent(out) :: ierr
36 : type (binary_info), pointer :: b
37 : ierr = 0
38 0 : call binary_ptr(binary_id, b, ierr)
39 0 : if (ierr /= 0) then
40 0 : write(*,*) 'failed in binary_ptr'
41 : return
42 : end if
43 0 : mdot_edd = 0d0
44 0 : mdot_edd_eta = 0d0
45 0 : end subroutine null_other_mdot_edd
46 :
47 : end module mod_other_mdot_edd
48 :
|