From 48b9f9235a586da029d421b6237fb9d592c49585 Mon Sep 17 00:00:00 2001 From: macrocosme Date: Wed, 17 Feb 2021 10:25:56 +0100 Subject: [PATCH] Fix double pointer, missing bracket, timing print --- include/rficlean.h | 2 +- src/cleanit.c | 1 + src/rficlean_data.c | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/rficlean.h b/include/rficlean.h index e4916fe..d55ae05 100644 --- a/include/rficlean.h +++ b/include/rficlean.h @@ -9,7 +9,7 @@ long byte_offset; int headerless,obits,iflip,nred, iwhite,nints,nsub,maxhist,numhist,nsubchans,tnorm,fnorm,igetstat,nharm,pcl,nsect,zerodm,bl_start,nblocks; char inpfile[128], outfile[128], gminfofile[128],gmhdrfile[128],psfile[100]; FILE *input, *output, *gminfo, *gmhdr; -double tempra,tempdec, psrf, psrfdf, *last_mspec, *wrms, *wmean, *ai; +double tempra,tempdec, psrf, psrfdf, *last_mspec, **wrms, **wmean, **ai; float forcefthresh,fthresh,rthresh,sthresh,last_tvar,last_fvar,chanfrac,sampfrac,clipthresh; float *fftstat, *chanstat, *predist, *xpredist, *postdist, *xpostdist, *finaldist, *xfinaldist ; double *tfvar, *tfmean,meanvar,rmsvar ; diff --git a/src/cleanit.c b/src/cleanit.c index 1260ee1..15cae67 100644 --- a/src/cleanit.c +++ b/src/cleanit.c @@ -525,6 +525,7 @@ void cleanit(float *data, int nchans, long int nadd) if(wt[t] < 0.0){ for (c=0; c