Skip to content

Commit

Permalink
Correct typo/copy/paste mess
Browse files Browse the repository at this point in the history
  • Loading branch information
willend committed Feb 25, 2024
1 parent 21d1787 commit efde091
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mcstas-comps/contrib/StatisticalChopper_Monitor.comp
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ SAVE
/* copy raw detector as correlation base */
long correlation_m = detector.m/f; /* new time binning for autocorrelation */

double *p0=malloc*(correlation_m*detector.n*detector.p*sizeof(double)); /* Arrays to store correlation monitor */
double *p1=malloc*(correlation_m*detector.n*detector.p*sizeof(double));
double *p2=malloc*(correlation_m*detector.n*detector.p*sizeof(double));
double *p0=malloc(correlation_m*detector.n*detector.p*sizeof(double)); /* Arrays to store correlation monitor */
double *p1=malloc(correlation_m*detector.n*detector.p*sizeof(double));
double *p2=malloc(correlation_m*detector.n*detector.p*sizeof(double));

/* initialize arrays to zero */
for (i=0;i<correlation_m*detector.n*detector.p;i++) p0[i]=p1[i]=p2[i]=0;
Expand Down

0 comments on commit efde091

Please sign in to comment.