summaryrefslogtreecommitdiff
path: root/lib/smo121.f90
blob: d50b790d4ce3c732320e35441fa5c10d788ea4bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
subroutine smo121(x,nz)

  real x(nz)

  x0=x(1)
  do i=2,nz-1
     x1=x(i)
     x(i)=0.5*x(i) + 0.25*(x0+x(i+1))
     x0=x1
  enddo

  return
end subroutine smo121