diff options
| author | tony mancill <tmancill@debian.org> | 2026-04-12 08:46:47 -0700 |
|---|---|---|
| committer | tony mancill <tmancill@debian.org> | 2026-04-12 08:46:47 -0700 |
| commit | cd2dad3bc7ae0ee0a18b7b20a945009362ec3851 (patch) | |
| tree | 5a622ec4193e9bc899f6499f936848a661be29cb /lib/interleave4.f90 | |
| parent | 558c0b9d6ecf70c5222e2069ece1fea3656c75d7 (diff) | |
| parent | 291b3817bf0c7a742e9e17d42c94fc8c9530e40d (diff) | |
Merge branch 'debian/latest' into debian/trixie-backports
Diffstat (limited to 'lib/interleave4.f90')
| -rw-r--r--[-rwxr-xr-x] | lib/interleave4.f90 | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/lib/interleave4.f90 b/lib/interleave4.f90 index dd666cc6..db57ec32 100755..100644 --- a/lib/interleave4.f90 +++ b/lib/interleave4.f90 @@ -1,43 +1,43 @@ -subroutine interleave4(id,ndir)
- integer*1 id(0:205),itmp(0:205)
- integer j0(0:205)
- logical first
- data first/.true./
- save first,j0
-
- if(first) then
- k=-1
- do i=0,255
- m=i
- n=iand(m,1)
- n=2*n + iand(m/2,1)
- n=2*n + iand(m/4,1)
- n=2*n + iand(m/8,1)
- n=2*n + iand(m/16,1)
- n=2*n + iand(m/32,1)
- n=2*n + iand(m/64,1)
- n=2*n + iand(m/128,1)
- if(n.le.205) then
- k=k+1
- j0(k)=n
- endif
- enddo
- first=.false.
- endif
-
- if(ndir.eq.1) then
- do i=0,205
- itmp(j0(i))=id(i)
- enddo
- else
- do i=0,205
- itmp(i)=id(j0(i))
- enddo
- endif
-
- do i=0,205
- id(i)=itmp(i)
- enddo
-
- return
-end subroutine interleave4
+subroutine interleave4(id,ndir) + integer*1 id(0:205),itmp(0:205) + integer j0(0:205) + logical first + data first/.true./ + save first,j0 + + if(first) then + k=-1 + do i=0,255 + m=i + n=iand(m,1) + n=2*n + iand(m/2,1) + n=2*n + iand(m/4,1) + n=2*n + iand(m/8,1) + n=2*n + iand(m/16,1) + n=2*n + iand(m/32,1) + n=2*n + iand(m/64,1) + n=2*n + iand(m/128,1) + if(n.le.205) then + k=k+1 + j0(k)=n + endif + enddo + first=.false. + endif + + if(ndir.eq.1) then + do i=0,205 + itmp(j0(i))=id(i) + enddo + else + do i=0,205 + itmp(i)=id(j0(i)) + enddo + endif + + do i=0,205 + id(i)=itmp(i) + enddo + + return +end subroutine interleave4 |
