Skip to content

Commit 00beab8

Browse files
committed
adding missing d0s
1 parent 2895820 commit 00beab8

File tree

23 files changed

+176
-176
lines changed

23 files changed

+176
-176
lines changed

astero/private/adipls_support.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -788,10 +788,10 @@ subroutine store_amdl(nn_in, iriche, iturpr, data, aa, x, nn, ierr)
788788

789789
if (iturpr == 1) then
790790
do n=1,nn
791-
if (x(n) < 0.999) then
791+
if (x(n) < 0.999d0) then
792792
ggt=1
793793
else
794-
ggt=1./(x(n)*x(n)*x(n)*aa(1,n))
794+
ggt=1.0d0/(x(n)*x(n)*x(n)*aa(1,n))
795795
end if
796796
aa(10,n)=ggt
797797
end do

astero/private/astero_support.f90

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ subroutine get_r02_frequency_ratios(init, nl0, l0, nl1, l1, nl2, l2, r02)
444444
i0 = i + ratios_l0_first
445445
i1 = i + ratios_l1_first
446446
dnu = l1(i1) - l1(i1-1)
447-
df = 0.25*dnu
447+
df = 0.25d0*dnu
448448
f0 = l0(i0)
449449
fmin = f0 - df
450450
fmax = f0 + df
@@ -573,7 +573,7 @@ subroutine get_max_sequence(nl, l_obs, max_seq_i, max_seq_n)
573573
seq_i = i
574574
seq_n = 1
575575
do j = seq_i, nl-1 ! j is in series; try to add j+1
576-
if (l_obs(j+1) - l_obs(j) > 1.5*delta_nu) then ! end of series
576+
if (l_obs(j+1) - l_obs(j) > 1.5d0*delta_nu) then ! end of series
577577
if (seq_n > max_seq_n) then
578578
max_seq_i = seq_i
579579
max_seq_n = seq_n
@@ -659,12 +659,12 @@ subroutine init_obs_data(ierr)
659659
! set l0_n_obs(i) to order of freq_target(0,i)
660660
range = freq_target(0,nl(0)) - freq_target(0,1)
661661
norders = int(range/delta_nu + 0.5d0) + 1
662-
nmax = (nu_max/delta_nu)*(delta_nu_sun/nu_max_sun)*22.6 - 1.6
662+
nmax = (nu_max/delta_nu)*(delta_nu_sun/nu_max_sun)*22.6d0 - 1.6d0
663663
l0_n_obs(1) = int(nmax - (norders-1)/2)
664664
if (dbg) write(*,3) 'l0_n_obs(i)', 1, l0_n_obs(1), freq_target(0,1)
665665
do i=2,norders
666666
l0_n_obs(i) = l0_n_obs(1) + &
667-
int((freq_target(0,i) - freq_target(0,1))/delta_nu + 0.5)
667+
int((freq_target(0,i) - freq_target(0,1))/delta_nu + 0.5d0)
668668
if (dbg) write(*,3) 'l0_n_obs(i)', i, l0_n_obs(i), freq_target(0,i)
669669
end do
670670
if (dbg) then
@@ -1294,7 +1294,7 @@ subroutine get_freq_corr(s, radial_only, ierr)
12941294
call get_kjeldsen_freq_corr
12951295
else if (correction_scheme == 'cubic') then
12961296
call get_cubic_freq_corr(radial_only)
1297-
surf_coef1 = a3*pow3(5000.*s%nu_max/s% nu_max_sun)
1297+
surf_coef1 = a3*pow3(5000.0d0*s%nu_max/s% nu_max_sun)
12981298
surf_coef2 = 0
12991299

13001300
if (save_next_best_at_higher_frequency) &
@@ -1304,8 +1304,8 @@ subroutine get_freq_corr(s, radial_only, ierr)
13041304
call get_cubic_freq_corr(radial_only)
13051305
else if (correction_scheme == 'combined') then
13061306
call get_combined_freq_corr(radial_only)
1307-
surf_coef1 = a3*pow3(5000.*s%nu_max/s% nu_max_sun)
1308-
surf_coef2 = a1/(5000.*s%nu_max/s% nu_max_sun)
1307+
surf_coef1 = a3*pow3(5000.0d0*s%nu_max/s% nu_max_sun)
1308+
surf_coef2 = a1/(5000.0d0*s%nu_max/s% nu_max_sun)
13091309

13101310
if (save_next_best_at_higher_frequency) &
13111311
call get_combined_freq_corr_alt_up(radial_only)

astero/test_suite/example_astero/src/run_star_extras.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ subroutine set_constraint_value(id, name, val, ierr) ! called from star_astero
100100
do i = 1, s% nz-1 ! locate bottom of solar convective zone
101101
if (s% mixing_type(i+1) /= convective_mixing &
102102
.and. s% mixing_type(i) == convective_mixing) then
103-
if (s% r(i+1) > 0.25*Rsun .and. s% r(i) < 0.9*Rsun) then
103+
if (s% r(i+1) > 0.25d0*Rsun .and. s% r(i) < 0.9d0*Rsun) then
104104
val = s% r(i)/Rsun
105105
exit
106106
end if

astero/test_suite/fast_from_file/src/run_star_extras.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ subroutine set_constraint_value(id, name, val, ierr) ! called from star_astero
107107
do i = 1, s% nz-1 ! locate bottom of solar convective zone
108108
if (s% mixing_type(i+1) /= convective_mixing &
109109
.and. s% mixing_type(i) == convective_mixing) then
110-
if (s% r(i+1) > 0.25*Rsun .and. s% r(i) < 0.9*Rsun) then
110+
if (s% r(i+1) > 0.25d0*Rsun .and. s% r(i) < 0.9d0*Rsun) then
111111
val = s% r(i)/Rsun
112112
exit
113113
end if

astero/test_suite/fast_newuoa/src/run_star_extras.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ subroutine set_constraint_value(id, name, val, ierr) ! called from star_astero
100100
do i = 1, s% nz-1 ! locate bottom of solar convective zone
101101
if (s% mixing_type(i+1) /= convective_mixing &
102102
.and. s% mixing_type(i) == convective_mixing) then
103-
if (s% r(i+1) > 0.25*Rsun .and. s% r(i) < 0.9*Rsun) then
103+
if (s% r(i+1) > 0.25d0*Rsun .and. s% r(i) < 0.9d0*Rsun) then
104104
val = s% r(i)/Rsun
105105
exit
106106
end if

astero/test_suite/fast_scan_grid/src/run_star_extras.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ subroutine set_constraint_value(id, name, val, ierr) ! called from star_astero
107107
do i = 1, s% nz-1 ! locate bottom of solar convective zone
108108
if (s% mixing_type(i+1) /= convective_mixing &
109109
.and. s% mixing_type(i) == convective_mixing) then
110-
if (s% r(i+1) > 0.25*Rsun .and. s% r(i) < 0.9*Rsun) then
110+
if (s% r(i+1) > 0.25d0*Rsun .and. s% r(i) < 0.9d0*Rsun) then
111111
val = s% r(i)/Rsun
112112
exit
113113
end if

astero/test_suite/fast_simplex/src/run_star_extras.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ subroutine set_constraint_value(id, name, val, ierr) ! called from star_astero
107107
do i = 1, s% nz-1 ! locate bottom of solar convective zone
108108
if (s% mixing_type(i+1) /= convective_mixing &
109109
.and. s% mixing_type(i) == convective_mixing) then
110-
if (s% r(i+1) > 0.25*Rsun .and. s% r(i) < 0.9*Rsun) then
110+
if (s% r(i+1) > 0.25d0*Rsun .and. s% r(i) < 0.9d0*Rsun) then
111111
val = s% r(i)/Rsun
112112
exit
113113
end if

astero/work/src/run_star_extras.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ subroutine set_constraint_value(id, name, val, ierr) ! called from star_astero
102102
do i = 1, s% nz-1 ! locate bottom of solar convective zone
103103
if (s% mixing_type(i+1) /= convective_mixing &
104104
.and. s% mixing_type(i) == convective_mixing) then
105-
if (s% r(i+1) > 0.25*Rsun .and. s% r(i) < 0.9*Rsun) then
105+
if (s% r(i+1) > 0.25d0*Rsun .and. s% r(i) < 0.9d0*Rsun) then
106106
val = s% r(i)/Rsun
107107
exit
108108
end if

binary/private/pgbinary_support.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ subroutine show_age_pgbinary(b)
619619
!age = age
620620
units_str = 'yrs'
621621
end if
622-
if (abs(age) > 1e-3 .and. abs(age) < 1e3) then
622+
if (abs(age) > 1d-3 .and. abs(age) < 1d3) then
623623
write(age_str, '(f14.6)') age
624624
else
625625
write(age_str, '(1pe14.6)') age

binary/test_suite/double_bh/src/run_binary_extras.f90

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,12 @@ integer function extras_binary_finish_step(binary_id)
171171
end if
172172

173173
if (b% ignore_rlof_flag .and. &
174-
abs(log10(abs(b% s1% L_nuc_burn_total * Lsun / b% s1% L(1)))) < 0.005 .and. &
174+
abs(log10(abs(b% s1% L_nuc_burn_total * Lsun / b% s1% L(1)))) < 0.005d0 .and. &
175175
b% s1% star_age > 1d2) then
176176
! if here, primary reached thermal equilibrium (reached ZAMS), so activate RLOF
177177
! this is the amount of overflow of a q=1 system at L2, anything more than this
178178
! is too much
179-
if (b% rl_relative_gap(1) > 0.320819224) then
179+
if (b% rl_relative_gap(1) > 0.320819224d0) then
180180
extras_binary_finish_step = terminate
181181
write(*,*) "Terminate due to overflow of L2 at ZAMS"
182182
return
@@ -197,7 +197,7 @@ integer function extras_binary_finish_step(binary_id)
197197
b% terminate_if_L2_overflow = .true.
198198
write(*,*) "Engage RLOF!"
199199
else if (b% ignore_rlof_flag .and. &
200-
(abs(log10(abs(b% s1% L_nuc_burn_total * Lsun / b% s1% L(1)))) > 0.005 .or. &
200+
(abs(log10(abs(b% s1% L_nuc_burn_total * Lsun / b% s1% L(1)))) > 0.005d0 .or. &
201201
b% s1% star_age < 1d2)) then
202202
! if here, still not in ZAMS, keep period fixed
203203
call binary_set_period_eccentricity(b% binary_id, &
@@ -209,14 +209,14 @@ integer function extras_binary_finish_step(binary_id)
209209

210210
! check if stars are evolving homogeneously
211211
if (b% s1% center_h1 > 1d-3) then
212-
if (b% s1% center_he4 - b% s1% surface_he4 > 0.2) then
212+
if (b% s1% center_he4 - b% s1% surface_he4 > 0.2d0) then
213213
extras_binary_finish_step = terminate
214214
write(*,*) "Terminate due to primary not evolving homogeneously"
215215
return
216216
end if
217217
end if
218218
if (b% s2% center_h1 > 1d-3) then
219-
if (b% s2% center_he4 - b% s2% surface_he4 > 0.2) then
219+
if (b% s2% center_he4 - b% s2% surface_he4 > 0.2d0) then
220220
extras_binary_finish_step = terminate
221221
write(*,*) "Terminate due to secondary not evolving homogeneously"
222222
return

0 commit comments

Comments
 (0)