From a36155e316d064ebeac00235100fc297e3234a22 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Tue, 2 Apr 2013 13:49:52 +0000 Subject: [PATCH] Write all decodes to file 'decoded.txt'. Unlike ALL.TXT, this file is not cumulative; each invocation of the decoder starts the file anew. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3118 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- lib/decoder.f90 | 5 ++++- mainwindow.cpp | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/decoder.f90 b/lib/decoder.f90 index c3be5ff33..1404d14bf 100644 --- a/lib/decoder.f90 +++ b/lib/decoder.f90 @@ -24,6 +24,7 @@ subroutine decoder(ss,c0) call timer('decoder ',0) + open(13,file='decoded.txt',status='unknown') ntrMinutes=ntrperiod/60 newdat=1 nsynced=0 @@ -118,11 +119,12 @@ subroutine decoder(ss,c0) ndrift=nint(drift/df3) if(msg.ne.' ') then write(*,fmt) nutc,nsync,nsnr,xdt,freq,ndrift,msg + write(13,fmt) nutc,nsync,nsnr,xdt,freq,ndrift,msg fgood=f nsynced=1 ndecoded=1 -! ccfred(max(ia,i-3):min(ib,i+11))=0. ccfok(max(ia,i-3):min(ib,i+11))=.false. + call flush(6) endif endif enddo @@ -130,6 +132,7 @@ subroutine decoder(ss,c0) write(*,1010) nsynced,ndecoded 1010 format('',2i4) call flush(6) + close(13) call timer('decoder ',1) if(nstandalone.eq.0) call timer('decoder ',101) diff --git a/mainwindow.cpp b/mainwindow.cpp index c2fd73794..a91041c5f 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1,4 +1,4 @@ -//--------------------------------------------------------------- MainWindow +//-------------------------------------------------------------- MainWindow #include "mainwindow.h" #include "ui_mainwindow.h" #include "devsetup.h"