summaryrefslogtreecommitdiff
path: root/lib/smo.f90
diff options
context:
space:
mode:
Diffstat (limited to 'lib/smo.f90')
-rw-r--r--lib/smo.f9010
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/smo.f90 b/lib/smo.f90
index 94a33784..c42de7c6 100644
--- a/lib/smo.f90
+++ b/lib/smo.f90
@@ -11,13 +11,9 @@ subroutine smo(x,npts,y,nadd)
enddo
y(i)=sum
enddo
- y(:nh)=0.
- y(npts-nh+1:)=0.
-
- fac=1.0/nadd
- do i=1,npts
- x(i)=fac*y(i)
- enddo
+ x=y
+ x(:nh)=0.
+ x(npts-nh+1:)=0.
return
end subroutine smo