summaryrefslogtreecommitdiff
path: root/lib/smolorentz.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2025-09-16 12:37:12 +0200
committerChristoph Berg <myon@debian.org>2025-09-16 12:57:29 +0200
commit5a4967c577ad245a2117b7b2f71c13b1212fe285 (patch)
tree4d09343cfe757239895a0dd9b399242d2a07d7c2 /lib/smolorentz.f90
parent23c903a09fb1d73fd20b50323cd80cfb3aba8799 (diff)
Merge 2.7 changes, I had uploaded -1 from the wrong branch.debian/3.0.0_rc1+repack-2
Diffstat (limited to 'lib/smolorentz.f90')
-rwxr-xr-xlib/smolorentz.f9084
1 files changed, 42 insertions, 42 deletions
diff --git a/lib/smolorentz.f90 b/lib/smolorentz.f90
index 70132f59..35c5c88e 100755
--- a/lib/smolorentz.f90
+++ b/lib/smolorentz.f90
@@ -1,42 +1,42 @@
-!program smolorentz
-subroutine smolorentz(s1,nz,w,s2)
-
-! parameter (nz=512)
- real s1(nz),s2(nz)
- real y(-50:50)
-! character*8 arg
-
-! s1=0.
-! s1(256)=1.
-
-! call getarg(1,arg)
-! read(arg,*) w
-
- do i=-50,50
- x=i
- z=x/(0.5*w)
- y(i)=0.
- if(abs(z).lt.3.0) then
- d=1.0 + z*z
- y(i)=(1.0/d - 0.1)*10.0/9.0
- endif
- enddo
-
- jz=nint(1.5*w)
- if(jz.gt.50) jz=50
- do i=1,nz
- s=0.
- sy=0.
- do j=-jz,jz
- k=i+j
- if(k.ge.1 .and. k.le.nz) then
- s=s + s1(k)*y(j)
- sy=sy+y(j)
- endif
- enddo
- s2(i)=s/sy
-! write(52,3002) i-256,s1(i),s2(i)
-!3002 format(i5,2f10.4)
- enddo
-
-end subroutine smolorentz
+!program smolorentz
+subroutine smolorentz(s1,nz,w,s2)
+
+! parameter (nz=512)
+ real s1(nz),s2(nz)
+ real y(-50:50)
+! character*8 arg
+
+! s1=0.
+! s1(256)=1.
+
+! call getarg(1,arg)
+! read(arg,*) w
+
+ do i=-50,50
+ x=i
+ z=x/(0.5*w)
+ y(i)=0.
+ if(abs(z).lt.3.0) then
+ d=1.0 + z*z
+ y(i)=(1.0/d - 0.1)*10.0/9.0
+ endif
+ enddo
+
+ jz=nint(1.5*w)
+ if(jz.gt.50) jz=50
+ do i=1,nz
+ s=0.
+ sy=0.
+ do j=-jz,jz
+ k=i+j
+ if(k.ge.1 .and. k.le.nz) then
+ s=s + s1(k)*y(j)
+ sy=sy+y(j)
+ endif
+ enddo
+ s2(i)=s/sy
+! write(52,3002) i-256,s1(i),s2(i)
+!3002 format(i5,2f10.4)
+ enddo
+
+end subroutine smolorentz