summaryrefslogtreecommitdiff
path: root/lib/foldspec9f.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-04-07 19:02:45 +0200
committerChristoph Berg <myon@debian.org>2026-04-07 19:02:45 +0200
commitf647d78463c1250ce9c99af664615fafccf5e959 (patch)
tree5b00428cef68aef1c9d407e2d4535687422419b6 /lib/foldspec9f.f90
parent0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (diff)
New upstream version 3.0.0upstream/3.0.0
Diffstat (limited to 'lib/foldspec9f.f90')
-rw-r--r--[-rwxr-xr-x]lib/foldspec9f.f9060
1 files changed, 30 insertions, 30 deletions
diff --git a/lib/foldspec9f.f90 b/lib/foldspec9f.f90
index 9a8afd92..a6436eba 100755..100644
--- a/lib/foldspec9f.f90
+++ b/lib/foldspec9f.f90
@@ -1,30 +1,30 @@
-subroutine foldspec9f(s1,nq,jz,ja,jb,s2)
-
-! Fold symbol spectra (quarter-symbol steps) from s1 into s2
-
- real s1(nq,jz)
- real s2(240,340) !340 = 4*85
- integer nsum(340)
-
- s2=0.
- nsum=0
-
- do j=ja,jb
- k=mod(j-1,340)+1
- nsum(k)=nsum(k)+1
- do i=1,NQ
- s2(i,k)=s2(i,k) + s1(i,j)
- enddo
- enddo
-
- do k=1,340
- fac=1.0
- if(nsum(k).gt.0) fac=1.0/nsum(k)
- s2(1:nq,k)=fac*s2(1:nq,k)
- enddo
-
- ave=sum(s2)/(340.0*nq)
- if(ave.gt.0.0) s2=s2/ave
-
- return
-end subroutine foldspec9f
+subroutine foldspec9f(s1,nq,jz,ja,jb,s2)
+
+! Fold symbol spectra (quarter-symbol steps) from s1 into s2
+
+ real s1(nq,jz)
+ real s2(240,340) !340 = 4*85
+ integer nsum(340)
+
+ s2=0.
+ nsum=0
+
+ do j=ja,jb
+ k=mod(j-1,340)+1
+ nsum(k)=nsum(k)+1
+ do i=1,NQ
+ s2(i,k)=s2(i,k) + s1(i,j)
+ enddo
+ enddo
+
+ do k=1,340
+ fac=1.0
+ if(nsum(k).gt.0) fac=1.0/nsum(k)
+ s2(1:nq,k)=fac*s2(1:nq,k)
+ enddo
+
+ ave=sum(s2)/(340.0*nq)
+ if(ave.gt.0.0) s2=s2/ave
+
+ return
+end subroutine foldspec9f