Skip to content

Commit

Permalink
Fixed undefined value.
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankThomasTveter committed Apr 28, 2022
1 parent b4c2349 commit 6c6838f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion astro/src/astro/event.F
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ subroutine event(s1000, ! query string
real :: sec1,sec2,dsec1,dsec2,sec,cpuStart,cpuStop
logical :: debug, silent, bdeb
data bdeb /.false./
real, parameter :: undef =1.7E38
integer :: cost
C
C bdeb=.true.
Expand Down Expand Up @@ -528,7 +529,7 @@ subroutine execute_event()
call jd2date(repJD(jj),yy,mm,dd,hh,mi,sec)
call chop0(rep250(jj),250)
lenr=length(rep250(jj),250,10)
if (nint(repVal(jj)).ne.-99999) then
if (nint(repVal(jj)).ne.-99999.and.repVal(jj).ne.undef) then
val50=getVal50(repVal(jj))
call chop0(val50,50)
lenv=length(val50,50,10)
Expand Down

0 comments on commit 6c6838f

Please sign in to comment.