Skip to content

Commit 5aea077

Browse files
committed
[ci fpe] Fix some fpe's
1 parent 28bdc2e commit 5aea077

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

star/private/profile_getval.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,9 +1130,9 @@ subroutine getval_for_profile(s, c, k, val, int_flag, int_val)
11301130
val = s% eps_grav_ad(k)% val
11311131

11321132
case (p_log_xm_div_delta_m)
1133-
val = safe_log10((s% m(1) - s% m(k))/abs(s% dt*s% mstar_dot))
1133+
if(abs(s% dt*s% mstar_dot) > 0) val = safe_log10((s% m(1) - s% m(k))/abs(s% dt*s% mstar_dot))
11341134
case (p_xm_div_delta_m)
1135-
val = (s% m(1) - s% m(k))/abs(s% dt*s% mstar_dot)
1135+
if(abs(s% dt*s% mstar_dot) > 0) val = (s% m(1) - s% m(k))/abs(s% dt*s% mstar_dot)
11361136

11371137
case (p_env_eps_grav)
11381138
val = -s% gradT_sub_grada(k)*s% grav(k)*s% mstar_dot*s% Cp(k)*s% T(k) / &

star/test_suite/5M_cepheid_blue_loop/src/run_star_extras.f90

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,13 @@ integer function extras_check_model(id)
133133

134134
real(dp) function get_blue_logT(log_L)
135135
real(dp), intent(in) :: log_L
136-
get_blue_logT = logT2 + (log_L - logL2)*(logT1 - logT2)/(logL1 - logL2)
136+
get_blue_logT = -1d99
137+
if (abs(logL1 - logL2) > 1d-10) then
138+
get_blue_logT = logT2 + (log_L - logL2)*(logT1 - logT2)/(logL1 - logL2)
139+
else
140+
get_blue_logT = 1d-99
141+
end if
142+
137143
end function get_blue_logT
138144

139145
real(dp) function get_red_logT(log_L)

star/test_suite/cburn_inward/src/run_star_extras.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ subroutine extras_photo_read(id, iounit, ierr)
271271

272272
select case (s% x_integer_ctrl(1))
273273
case(2)
274-
read(iounit,iostat=ierr) ign_mass, ign_density, ign_co_core_mass
274+
read(iounit,iostat=ierr) ign_mass, ign_density, ign_co_core_mass,flame_mass
275275
end select
276276

277277
end subroutine extras_photo_read
@@ -287,7 +287,7 @@ subroutine extras_photo_write(id, iounit)
287287

288288
select case (s% x_integer_ctrl(1))
289289
case(2)
290-
write(iounit) ign_mass, ign_density, ign_co_core_mass
290+
write(iounit) ign_mass, ign_density, ign_co_core_mass,flame_mass
291291
end select
292292

293293
end subroutine extras_photo_write

0 commit comments

Comments
 (0)