summaryrefslogtreecommitdiff
path: root/lib/stdmsg.f90
diff options
context:
space:
mode:
authorhibby <d@vehibberd.com>2018-02-16 15:18:44 +0000
committerhibby <d@vehibberd.com>2018-02-16 15:18:44 +0000
commit368f5331a7641772aa7e0cd1feea57d09a394a36 (patch)
treeb421ac60cc6eb726896ea268ea24e47fc4ce7c88 /lib/stdmsg.f90
parent71c717edc92fa771c857b3c2e5ed65f523f68f90 (diff)
parent37f727ac0746fd85504aa46c1f023c09b3eff33a (diff)
Update upstream source from tag 'upstream/1.8.0+repack'
Update to upstream version '1.8.0+repack' with Debian dir a83ef78cb70a32d1211871fdc08f3ffa295e45a8
Diffstat (limited to 'lib/stdmsg.f90')
-rw-r--r--lib/stdmsg.f9020
1 files changed, 15 insertions, 5 deletions
diff --git a/lib/stdmsg.f90 b/lib/stdmsg.f90
index 7670ff0f..599287bb 100644
--- a/lib/stdmsg.f90
+++ b/lib/stdmsg.f90
@@ -1,11 +1,21 @@
-logical*1 function stdmsg(msg0)
+function stdmsg(msg0,bcontest,mygrid)
- character*22 msg0,msg
+ ! Is msg0 a standard "JT-style" message?
+
+ use iso_c_binding, only: c_bool
+ use packjt
+ character*22 msg0,msg1,msg
+ character*6 mygrid
integer dat(12)
+ logical(c_bool), value :: bcontest
+ logical(c_bool) :: stdmsg
- call packmsg(msg0,dat,itype)
- call unpackmsg(dat,msg)
- stdmsg=(msg.eq.msg0) .and. (itype.ge.0)
+ msg1=msg0
+ i0=index(msg1,' OOO ')
+ if(i0.gt.10) msg1=msg0(1:i0)
+ call packmsg(msg0,dat,itype,logical(bcontest))
+ call unpackmsg(dat,msg,logical(bcontest),mygrid)
+ stdmsg=(msg.eq.msg1) .and. (itype.ge.0) .and. itype.ne.6
return
end function stdmsg