Skip to content

Commit 59cf0f9

Browse files
committed
Fix module imports in binary
This should stop ifort complaining about importing names from another module. As these are the null routines people should not need to copy them so we don't need to worry about the import list being edited by someone.
1 parent de3c9cb commit 59cf0f9

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

binary/other/mod_other_binary_extras.f90

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ module mod_other_binary_extras
3434
contains
3535

3636
integer function null_extras_binary_startup(binary_id,restart,ierr)
37-
use binary_def
37+
use binary_def, only : binary_info, binary_ptr
38+
use star_def, only : keep_going
3839
use const_def
3940
type (binary_info), pointer :: b
4041
integer, intent(in) :: binary_id
@@ -50,7 +51,8 @@ integer function null_extras_binary_startup(binary_id,restart,ierr)
5051
end function null_extras_binary_startup
5152

5253
integer function null_extras_binary_start_step(binary_id,ierr)
53-
use binary_def
54+
use binary_def, only : binary_info, binary_ptr
55+
use star_def, only : keep_going
5456
use const_def
5557
type (binary_info), pointer :: b
5658
integer, intent(in) :: binary_id
@@ -66,7 +68,8 @@ end function null_extras_binary_start_step
6668

6769
!Return either keep_going, retry or terminate
6870
integer function null_extras_binary_check_model(binary_id)
69-
use binary_def
71+
use binary_def, only : binary_info, binary_ptr
72+
use star_def, only : keep_going
7073
use const_def
7174
type (binary_info), pointer :: b
7275
integer, intent(in) :: binary_id
@@ -83,7 +86,8 @@ end function null_extras_binary_check_model
8386
! returns either keep_going or terminate.
8487
! note: cannot request retry; extras_binary_check_model can do that.
8588
integer function null_extras_binary_finish_step(binary_id)
86-
use binary_def
89+
use binary_def, only : binary_info, binary_ptr
90+
use star_def, only : keep_going
8791
use const_def
8892
type (binary_info), pointer :: b
8993
integer, intent(in) :: binary_id
@@ -99,7 +103,7 @@ end function null_extras_binary_finish_step
99103

100104

101105
subroutine null_extras_binary_after_evolve(binary_id, ierr)
102-
use binary_def
106+
use binary_def, only : binary_info, binary_ptr
103107
use const_def
104108
type (binary_info), pointer :: b
105109
integer, intent(in) :: binary_id
@@ -112,7 +116,7 @@ subroutine null_extras_binary_after_evolve(binary_id, ierr)
112116
end subroutine null_extras_binary_after_evolve
113117

114118
integer function null_how_many_extra_binary_history_columns(binary_id)
115-
use binary_def
119+
use binary_def, only : binary_info, binary_ptr
116120
use const_def
117121
integer, intent(in) :: binary_id
118122
type (binary_info), pointer :: b
@@ -128,7 +132,7 @@ integer function null_how_many_extra_binary_history_columns(binary_id)
128132
end function null_how_many_extra_binary_history_columns
129133

130134
subroutine null_data_for_extra_binary_history_columns(binary_id, n, names, vals, ierr)
131-
use binary_def
135+
use binary_def, only : binary_info, binary_ptr, maxlen_binary_history_column_name
132136
use const_def
133137
integer, intent(in) :: binary_id
134138
integer, intent(in) :: n
@@ -147,16 +151,14 @@ end subroutine null_data_for_extra_binary_history_columns
147151

148152

149153
integer function null_how_many_extra_binary_history_header_items(binary_id)
150-
use binary_def
151154
use const_def
152-
use binary_def, only: binary_info
153155
integer, intent(in) :: binary_id
154156
null_how_many_extra_binary_history_header_items = 0
155157
end function null_how_many_extra_binary_history_header_items
156158

157159
subroutine null_data_for_extra_binary_history_header_items( &
158160
binary_id, n, names, vals, ierr)
159-
use binary_def
161+
use binary_def, only : binary_info, binary_ptr, maxlen_binary_history_column_name
160162
use const_def
161163
type (binary_info), pointer :: b
162164
integer, intent(in) :: binary_id, n

0 commit comments

Comments
 (0)