Skip to content

Commit e4f8cd3

Browse files
Merge pull request tomojitakasu#529 from ourairquality/ppp-res-var
ppp_res: the var[] array needs room for all frequencies
2 parents 4ea4fd6 + caefe57 commit e4f8cd3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ppp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ static int ppp_res(int post, const obsd_t *obs, int n, const double *rs,
935935
{
936936
prcopt_t *opt=&rtk->opt;
937937
double y,r,cdtr,bias,rr[3],pos[3],e[3],dtdx[3],L[NFREQ],P[NFREQ],Lc,Pc;
938-
double var[MAXOBS*2],dtrp=0.0,dion=0.0,vart=0.0,vari=0.0,dcb,freq;
938+
double var[MAXOBS*2*NFREQ],dtrp=0.0,dion=0.0,vart=0.0,vari=0.0,dcb,freq;
939939
double dantr[NFREQ]={0},dants[NFREQ]={0};
940940
double ve[MAXOBS*2*NFREQ]={0},vmax=0;
941941
char str[32];

0 commit comments

Comments
 (0)