summaryrefslogtreecommitdiff
path: root/qmap/libqmap/chkstat.f90
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2024-04-27 12:26:36 +0100
committerDave Hibberd <hibby@debian.org>2024-04-27 12:26:36 +0100
commit92bc165d4773fd349c819f0e003141bc6deffd2e (patch)
tree4f85e7df3439fd3460ca8f355266f0e5409497a2 /qmap/libqmap/chkstat.f90
parentb3177e837e5875f91766ee84ee6a14127509e7fe (diff)
parent93f7198f9c2864ef9630cc0cc9e46d6cc1933aa9 (diff)
Update upstream source from tag 'upstream/2.7.0_rc4+repack'
Update to upstream version '2.7.0~rc4+repack' with Debian dir 44013c61dd790a48f294ea090087c1fb373ab33f
Diffstat (limited to 'qmap/libqmap/chkstat.f90')
-rwxr-xr-xqmap/libqmap/chkstat.f9028
1 files changed, 28 insertions, 0 deletions
diff --git a/qmap/libqmap/chkstat.f90 b/qmap/libqmap/chkstat.f90
new file mode 100755
index 00000000..cb0c69d1
--- /dev/null
+++ b/qmap/libqmap/chkstat.f90
@@ -0,0 +1,28 @@
+subroutine chkstat(dd,nhsym,pdb)
+
+ real dd(2,5760000)
+ real pdb(4)
+ integer ia(4),ib(4)
+ logical*1 btx0,btx1
+
+ btx0=.false.
+ btx1=.false.
+ ia(1)=23*96000+1
+ ib(1)=24*96000
+ ia(2)=27*96000+1
+ ib(2)=28*96000
+ ia(3)=53*96000+1
+ ib(3)=54*96000
+ ia(4)=57*96000+1
+ ib(4)=58*96000
+
+ do j=1,4
+ sq=0.
+ do i=ia(j),ib(j)
+ sq=sq + dd(1,i)*dd(1,i) + dd(2,i)*dd(2,i)
+ enddo
+ pdb(j)=db(1.0 + sq/(2.0*96000.0))
+ enddo
+
+ return
+end subroutine chkstat