summaryrefslogtreecommitdiff
path: root/lib/stdmsg.f90
diff options
context:
space:
mode:
authorhibby <d@vehibberd.com>2018-02-16 15:17:14 +0000
committerhibby <d@vehibberd.com>2018-02-16 15:17:14 +0000
commit37f727ac0746fd85504aa46c1f023c09b3eff33a (patch)
treec8a7ce04545040a8f161ba279528730bd9a3e6ab /lib/stdmsg.f90
parentd63dd8d081a6fcd0715cd13f26df59fb831769d2 (diff)
New upstream version 1.8.0+repackupstream/1.8.0+repack
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