2017-09-01 16:10:35 -04:00
|
|
|
function stdmsg(msg0,bcontest,mygrid)
|
2013-03-11 15:43:06 -04:00
|
|
|
|
2017-09-29 12:58:05 -04:00
|
|
|
! Is msg0 a standard "JT-style" message?
|
|
|
|
|
2017-09-01 16:10:35 -04:00
|
|
|
use iso_c_binding, only: c_bool
|
2015-04-22 13:48:03 -04:00
|
|
|
use packjt
|
2017-09-29 12:53:57 -04:00
|
|
|
character*22 msg0,msg1,msg
|
2017-09-01 16:10:35 -04:00
|
|
|
character*6 mygrid
|
2013-03-11 15:43:06 -04:00
|
|
|
integer dat(12)
|
2017-09-01 16:10:35 -04:00
|
|
|
logical(c_bool), value :: bcontest
|
|
|
|
logical(c_bool) :: stdmsg
|
2013-03-11 15:43:06 -04:00
|
|
|
|
2017-09-29 12:53:57 -04:00
|
|
|
msg1=msg0
|
|
|
|
i0=index(msg1,' OOO ')
|
|
|
|
if(i0.gt.10) msg1=msg0(1:i0)
|
2017-09-01 16:10:35 -04:00
|
|
|
call packmsg(msg0,dat,itype,logical(bcontest))
|
|
|
|
call unpackmsg(dat,msg,logical(bcontest),mygrid)
|
2017-09-29 12:53:57 -04:00
|
|
|
stdmsg=(msg.eq.msg1) .and. (itype.ge.0) .and. itype.ne.6
|
2013-03-11 15:43:06 -04:00
|
|
|
|
|
|
|
return
|
|
|
|
end function stdmsg
|