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_binary_ce
21 :
22 : ! NOTE: remember to set true:
23 : ! use_other_CE_rlo_mdot = .true.
24 :
25 : implicit none
26 :
27 : contains
28 :
29 0 : subroutine null_other_CE_init(binary_id, restart, ierr)
30 : use const_def, only: dp
31 : use star_def
32 : use binary_def, only : binary_info, binary_ptr
33 : integer, intent(in) :: binary_id
34 : logical, intent(in) :: restart
35 : integer, intent(out) :: ierr
36 : type (binary_info), pointer :: b
37 0 : write(*,*) "WARNING: using null_other_CE_init"
38 : ierr = 0
39 0 : call binary_ptr(binary_id, b, ierr)
40 0 : if (ierr /= 0) then
41 0 : write(*,*) 'failed in binary_ptr'
42 : return
43 : end if
44 0 : end subroutine null_other_CE_init
45 :
46 0 : subroutine null_other_CE_rlo_mdot(binary_id, mdot, ierr)
47 0 : use const_def, only: dp
48 : use star_def
49 : use binary_def, only : binary_info, binary_ptr
50 : integer, intent(in) :: binary_id
51 : real(dp), intent(out) :: mdot
52 : integer, intent(out) :: ierr
53 : type (binary_info), pointer :: b
54 0 : write(*,*) "WARNING: using null_other_CE_rlo_mdot"
55 : ierr = 0
56 0 : call binary_ptr(binary_id, b, ierr)
57 0 : if (ierr /= 0) then
58 0 : write(*,*) 'failed in binary_ptr'
59 : return
60 : end if
61 0 : mdot = -1d-99
62 0 : end subroutine null_other_CE_rlo_mdot
63 :
64 0 : integer function null_other_CE_binary_evolve_step(binary_id)
65 0 : use const_def, only: dp
66 : use star_def
67 : use binary_def, only : binary_info, binary_ptr
68 : integer, intent(in) :: binary_id
69 : integer :: ierr
70 : type (binary_info), pointer :: b
71 0 : write(*,*) "WARNING: using null_other_CE_binary_evolve_step"
72 : ierr = 0
73 0 : call binary_ptr(binary_id, b, ierr)
74 0 : if (ierr /= 0) then
75 0 : write(*,*) 'failed in binary_ptr'
76 0 : return
77 : end if
78 : null_other_CE_binary_evolve_step = keep_going
79 0 : end function null_other_CE_binary_evolve_step
80 :
81 0 : integer function null_other_CE_binary_finish_step(binary_id)
82 0 : use star_def
83 : use binary_def, only : binary_info, binary_ptr
84 : integer, intent(in) :: binary_id
85 : integer :: ierr
86 : type (binary_info), pointer :: b
87 0 : write(*,*) "WARNING: using null_other_CE_binary_check_model"
88 : ierr = 0
89 0 : call binary_ptr(binary_id, b, ierr)
90 0 : if (ierr /= 0) then
91 0 : write(*,*) 'failed in binary_ptr'
92 0 : return
93 : end if
94 : null_other_CE_binary_finish_step = keep_going
95 0 : end function null_other_CE_binary_finish_step
96 :
97 : end module mod_other_binary_ce
98 :
|