summaryrefslogtreecommitdiff
path: root/qmap/libqmap/shell.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2025-01-09 22:12:06 +0100
committerChristoph Berg <myon@debian.org>2025-01-09 22:12:06 +0100
commit992d4b4b8d3f3a630a2cf00d593ee4ce4dfa7ce8 (patch)
treefbfdfe6bcb0a8a114be2480dac53d88c977e4869 /qmap/libqmap/shell.f90
parent4320ce238aae1fe87fc9f379cdd816e9317885fa (diff)
New upstream version 2.7.0~rc8+repackupstream/2.7.0_rc8+repack
Diffstat (limited to 'qmap/libqmap/shell.f90')
-rwxr-xr-xqmap/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
--- 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