22
22
23
23
module gyre_support
24
24
25
- ! Uses
26
-
27
25
use astero_def
28
26
use star_lib
29
27
use star_def
30
- use const_def
28
+ use const_def, only: dp, clight, crad, standard_cgrav, msun, rsun, lsun, mesa_dir
31
29
use utils_lib
32
30
33
31
use gyre_mesa_m
34
32
35
- ! No implicit typing
36
-
37
33
implicit none
38
34
39
- ! Module variables
40
-
41
35
logical , parameter :: GYRE_IS_ENABLED = .true.
42
36
43
- ! Access specifiers
44
-
45
37
private
46
38
47
39
public :: GYRE_IS_ENABLED
@@ -52,14 +44,10 @@ module gyre_support
52
44
public :: gyre_call_back
53
45
public :: save_gyre_mode_info
54
46
55
- ! Procedures
56
-
57
47
contains
58
48
59
49
subroutine init_gyre (gyre_file , ierr )
60
50
61
- use const_def
62
-
63
51
character (* ), intent (in ) :: gyre_file
64
52
integer , intent (out ) :: ierr
65
53
@@ -83,13 +71,10 @@ subroutine init_gyre (gyre_file, ierr)
83
71
84
72
write (* ,* ) ' done init_gyre'
85
73
86
- ! Finish
87
-
88
74
return
89
75
90
76
end subroutine init_gyre
91
77
92
- ! ****
93
78
94
79
subroutine do_gyre_get_modes (s , el , store_model , ierr )
95
80
@@ -133,13 +118,10 @@ subroutine do_gyre_get_modes (s, el, store_model, ierr)
133
118
write (* ,1 ) ' time_in_oscillation_code and total' , time, total_time_in_oscillation_code
134
119
end if
135
120
136
- ! Finish
137
-
138
121
return
139
122
140
123
end subroutine do_gyre_get_modes
141
124
142
- ! ****
143
125
144
126
subroutine null_gyre_call_back (md , ipar , rpar , ierr )
145
127
type (mode_t), intent (in ) :: md
@@ -149,7 +131,6 @@ subroutine null_gyre_call_back (md, ipar, rpar, ierr)
149
131
ierr = 0
150
132
end subroutine null_gyre_call_back
151
133
152
- ! ****
153
134
154
135
subroutine store_model_for_gyre (s , add_center_point , keep_surface_point , add_atmosphere , ierr )
155
136
@@ -226,7 +207,6 @@ subroutine store_model_for_gyre (s, add_center_point, keep_surface_point, add_at
226
207
227
208
end if
228
209
229
- ! Finish
230
210
231
211
return
232
212
@@ -246,16 +226,12 @@ function num_string (n)
246
226
247
227
write (num_string, format_string) s% model_number
248
228
249
- ! Finish
250
-
251
229
return
252
230
253
231
end function num_string
254
232
255
233
end subroutine store_model_for_gyre
256
234
257
- ! ****
258
-
259
235
subroutine gyre_call_back (md , ipar , rpar , ierr )
260
236
261
237
use astero_def, only: store_new_oscillation_results
@@ -286,13 +262,10 @@ subroutine gyre_call_back(md, ipar, rpar, ierr)
286
262
new_el, new_order, new_em, new_inertia, new_cyclic_freq, new_growth_rate, &
287
263
md, ipar, rpar, ierr)
288
264
289
- ! Finish
290
-
291
265
return
292
266
293
267
end subroutine gyre_call_back
294
268
295
- ! ****
296
269
297
270
subroutine save_gyre_mode_info ( &
298
271
new_el , new_order , new_em , new_inertia , new_cyclic_freq , new_growth_rate , &
0 commit comments