summaryrefslogtreecommitdiff
path: root/qmap/libqmap/smo.f90
diff options
context:
space:
mode:
authortony mancill <tmancill@debian.org>2023-09-03 19:46:43 -0700
committertony mancill <tmancill@debian.org>2023-09-03 19:46:43 -0700
commit393a486ee1d7e308a49f8e0b8c3a4b2f43223248 (patch)
tree6a6e8a56ace360795e1cf1a310d5652bb23f1386 /qmap/libqmap/smo.f90
parent6a285ab382ebff18c88e52bec75dc1773ac33b74 (diff)
New upstream version 2.7.0~rc2+repackupstream/2.7.0_rc2+repack
Diffstat (limited to 'qmap/libqmap/smo.f90')
-rwxr-xr-xqmap/libqmap/smo.f9019
1 files changed, 19 insertions, 0 deletions
diff --git a/qmap/libqmap/smo.f90 b/qmap/libqmap/smo.f90
new file mode 100755
index 00000000..87994310
--- /dev/null
+++ b/qmap/libqmap/smo.f90
@@ -0,0 +1,19 @@
+subroutine smo(x,npts,y,nadd)
+
+ real x(npts)
+ real y(npts)
+
+ nh=nadd/2
+ do i=1+nh,npts-nh
+ sum=0.
+ do j=-nh,nh
+ sum=sum + x(i+j)
+ enddo
+ y(i)=sum
+ enddo
+ x=y
+ x(:nh)=0.
+ x(npts-nh+1:)=0.
+
+ return
+end subroutine smo