Skip to content

Commit 3fb7174

Browse files
committed
Fix fpe in colors code
1 parent 2ba2c3b commit 3fb7174

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

colors/private/mod_colors.f90

+2-2
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ subroutine Eval_Colors(log_Teff,log_g, M_div_h_in, results, thead, n_colors, ier
573573
if (ierr /= 0) return
574574
call get_glist_results(tnxt% glist, lgg, lgz, results2, n_colors, ierr)
575575
if (ierr /= 0) return
576-
if(any(results1<-1d50) .or.any(results2<-1d50) ) then
576+
if(any(results1(1:n_colors)<-1d50) .or.any(results2(1:n_colors)<-1d50) ) then
577577
results = -1d99
578578
return
579579
end if
@@ -631,7 +631,7 @@ subroutine get_glist_results(gptr, lgg, lgz, results, n_colors, ierr)
631631
call get_zlist_results(gnxt% zlist, lgz, results2, n_colors, ierr)
632632
if (ierr /= 0) return
633633

634-
if(any(results1<-1d50) .or.any(results2<-1d50) ) then
634+
if(any(results1(1:n_colors)<-1d50) .or.any(results2(1:n_colors)<-1d50) ) then
635635
results = -1d99
636636
return
637637
end if

0 commit comments

Comments
 (0)