diff options
| author | Christoph Berg <myon@debian.org> | 2025-09-16 12:37:12 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-09-16 12:57:29 +0200 |
| commit | 5a4967c577ad245a2117b7b2f71c13b1212fe285 (patch) | |
| tree | 4d09343cfe757239895a0dd9b399242d2a07d7c2 /lib/smo.f90 | |
| parent | 23c903a09fb1d73fd20b50323cd80cfb3aba8799 (diff) | |
Merge 2.7 changes, I had uploaded -1 from the wrong branch.debian/3.0.0_rc1+repack-2
Diffstat (limited to 'lib/smo.f90')
| -rwxr-xr-x | lib/smo.f90 | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/lib/smo.f90 b/lib/smo.f90 index c42de7c6..87994310 100755 --- a/lib/smo.f90 +++ b/lib/smo.f90 @@ -1,19 +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 +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
|
