summaryrefslogtreecommitdiff
path: root/lib/superfox/sfox_remove_tone.f90
diff options
context:
space:
mode:
Diffstat (limited to 'lib/superfox/sfox_remove_tone.f90')
-rw-r--r--lib/superfox/sfox_remove_tone.f901
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/superfox/sfox_remove_tone.f90 b/lib/superfox/sfox_remove_tone.f90
index c8f9e033..35a6fbec 100644
--- a/lib/superfox/sfox_remove_tone.f90
+++ b/lib/superfox/sfox_remove_tone.f90
@@ -68,6 +68,7 @@ subroutine sfox_remove_tone(c0,fsync)
s0=s0+s(i)
s1=s1+(i-i0)*s(i)
enddo
+ if(.not. (s0 .gt. 0.0)) exit
delta=s1/s0
i0=nint(i0+delta)
f2=i0*df