summaryrefslogtreecommitdiff
path: root/lib/ft8/ft8apset.f90
diff options
context:
space:
mode:
authorChristoph Berg <christoph.berg@credativ.de>2019-03-11 14:19:23 +0100
committerChristoph Berg <christoph.berg@credativ.de>2019-03-11 14:19:23 +0100
commit200de07a95209a55d6019ba87f0abc78d302bf4c (patch)
tree3b2922eb5d89b01ad214cae492e871c3bfb5df18 /lib/ft8/ft8apset.f90
parente0737c56c1e384e05064a0c6e1ac46979371041b (diff)
New upstream version 2.0.1+repackupstream/2.0.1+repack
Diffstat (limited to 'lib/ft8/ft8apset.f90')
-rw-r--r--lib/ft8/ft8apset.f9028
1 files changed, 12 insertions, 16 deletions
diff --git a/lib/ft8/ft8apset.f90 b/lib/ft8/ft8apset.f90
index 15eddd05..56a18c4f 100644
--- a/lib/ft8/ft8apset.f90
+++ b/lib/ft8/ft8apset.f90
@@ -1,22 +1,21 @@
subroutine ft8apset(mycall12,hiscall12,apsym)
use packjt77
character*77 c77
- character*37 msg
+ character*37 msg,msgchk
character*12 mycall12,hiscall12,hiscall
integer apsym(58)
- logical nohiscall
+ logical nohiscall,unpk77_success
- if(len(trim(mycall12)).eq.0) then
- apsym=0
- apsym(1)=99
- apsym(30)=99
- return
- endif
+ apsym=0
+ apsym(1)=99
+ apsym(30)=99
+
+ if(len(trim(mycall12)).lt.3) return
nohiscall=.false.
hiscall=hiscall12
- if(len(trim(hiscall)).eq.0) then
- hiscall="K9ABC"
+ if(len(trim(hiscall)).lt.3) then
+ hiscall=mycall12 ! use mycall for dummy hiscall - mycall won't be hashed.
nohiscall=.true.
endif
@@ -24,12 +23,9 @@ subroutine ft8apset(mycall12,hiscall12,apsym)
!
msg=trim(mycall12)//' '//trim(hiscall)//' RRR'
call pack77(msg,i3,n3,c77)
- if(i3.ne.1) then
- apsym=0
- apsym(1)=99
- apsym(30)=99
- return
- endif
+ call unpack77(c77,1,msgchk,unpk77_success)
+
+ if(i3.ne.1 .or. (msg.ne.msgchk) .or. .not.unpk77_success) return
read(c77,'(58i1)',err=1) apsym(1:58)
apsym=2*apsym-1