summaryrefslogtreecommitdiff
path: root/qmap/libqmap/shell.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 /qmap/libqmap/shell.f90
parent0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (diff)
New upstream version 3.0.0upstream/3.0.0
Diffstat (limited to 'qmap/libqmap/shell.f90')
-rw-r--r--[-rwxr-xr-x]qmap/libqmap/shell.f9054
1 files changed, 27 insertions, 27 deletions
diff --git a/qmap/libqmap/shell.f90 b/qmap/libqmap/shell.f90
index 1e9b4488..d7365bfc 100755..100644
--- a/qmap/libqmap/shell.f90
+++ b/qmap/libqmap/shell.f90
@@ -1,27 +1,27 @@
-subroutine shell(n,a)
- integer n
- real a(n)
- integer i,j,inc
- real v
-
- inc=1
-1 inc=3*inc+1
- if(inc.le.n) go to 1
-2 inc=inc/3
-
- do i=inc+1,n
- v=a(i)
- j=i
-3 if(a(j-inc).gt.v) then
- a(j)=a(j-inc)
- j=j-inc
- if(j.le.inc) go to 4
- go to 3
- endif
-4 a(j)=v
- enddo
-
- if(inc.gt.1) go to 2
-
- return
-end subroutine shell
+subroutine shell(n,a)
+ integer n
+ real a(n)
+ integer i,j,inc
+ real v
+
+ inc=1
+1 inc=3*inc+1
+ if(inc.le.n) go to 1
+2 inc=inc/3
+
+ do i=inc+1,n
+ v=a(i)
+ j=i
+3 if(a(j-inc).gt.v) then
+ a(j)=a(j-inc)
+ j=j-inc
+ if(j.le.inc) go to 4
+ go to 3
+ endif
+4 a(j)=v
+ enddo
+
+ if(inc.gt.1) go to 2
+
+ return
+end subroutine shell