summaryrefslogtreecommitdiff
path: root/lib/ft8/ft8apset.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-10-09 14:12:35 +0200
committerChristoph Berg <myon@debian.org>2026-10-09 14:12:35 +0200
commitffc62c792c9a5196cb4ce7a353287dfe20db6524 (patch)
tree1269efa852935b183daae4bb33a58d1b4d2ffb53 /lib/ft8/ft8apset.f90
parent059831534c7e884f0a607ed86b582fd00d821731 (diff)
New upstream version 3.3.0~beta1+dfsgupstream/3.3.0_beta1+dfsg
Diffstat (limited to 'lib/ft8/ft8apset.f90')
-rw-r--r--lib/ft8/ft8apset.f9021
1 files changed, 17 insertions, 4 deletions
diff --git a/lib/ft8/ft8apset.f90 b/lib/ft8/ft8apset.f90
index 73a224ec..4e395c87 100644
--- a/lib/ft8/ft8apset.f90
+++ b/lib/ft8/ft8apset.f90
@@ -1,4 +1,4 @@
-subroutine ft8apset(mycall12,hiscall12,ncontest,apsym,aph10)
+subroutine ft8apset(mycall12,hiscall12,ncontest,apsym,aph10,knowledge)
use packjt77
character*77 c77
character*37 msg,msgchk
@@ -7,6 +7,10 @@ subroutine ft8apset(mycall12,hiscall12,ncontest,apsym,aph10)
character*10 c10
integer apsym(58),aph10(10)
logical nohiscall,unpk77_success,std
+ type(pack77_state), target, optional, intent(inout) :: knowledge
+ type(pack77_state), pointer :: codec
+
+ if(present(knowledge)) codec => knowledge
apsym=0
apsym(1)=99
@@ -25,7 +29,11 @@ subroutine ft8apset(mycall12,hiscall12,ncontest,apsym,aph10)
n10=0
n12=0
n22=0
- call save_hash_call(hc13,n10,n12,n22)
+ if(present(knowledge)) then
+ call save_hash_call_for_state(codec,hc13,n10,n12,n22)
+ else
+ call save_hash_call(hc13,n10,n12,n22)
+ endif
write(c10,'(b10.10)') iand(n10,Z'3FF')
read(c10,'(10i1.1)',err=1) aph10
aph10=2*aph10-1
@@ -38,8 +46,13 @@ subroutine ft8apset(mycall12,hiscall12,ncontest,apsym,aph10)
if(.not.std) msg='<'//trim(mycall12)//'> '//trim(hiscall)//' RRR'
i3=0
n3=0
- call pack77(msg,i3,n3,c77)
- call unpack77(c77,1,msgchk,unpk77_success)
+ if(present(knowledge)) then
+ call pack77_for_state(codec,msg,i3,n3,c77)
+ call unpack77_for_state(codec,c77,1,msgchk,unpk77_success)
+ else
+ call pack77(msg,i3,n3,c77)
+ call unpack77(c77,1,msgchk,unpk77_success)
+ endif
if(ncontest.eq.7.and. (i3.ne.1 .or. .not.unpk77_success)) return
if(ncontest.le.5.and. (i3.ne.1 .or. msg.ne.msgchk .or. .not.unpk77_success)) return