Skip to content

Commit 602f65e

Browse files
committed
Add missing thread_num as omp private
1 parent 48b9f92 commit 602f65e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cleanit.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ void cleanit(float *data, int nchans, long int nadd)
394394

395395
for (channum=0; channum<nchans; channum++) coff[channum]=nadd*channum ;
396396

397-
#pragma omp parallel for private(channum,inc,isame,ii,jj) schedule(dynamic)
397+
#pragma omp parallel for private(channum,inc,isame,ii,jj,thread_num) schedule(dynamic)
398398
for (channum=0; channum<nchans; channum++) {
399399
#ifdef _OPENMP
400400
thread_num = omp_get_thread_num();
@@ -497,7 +497,7 @@ void cleanit(float *data, int nchans, long int nadd)
497497

498498
// Try clipping some channels in individual samples
499499
if(rfiSclip){
500-
#pragma omp parallel for private(t,c,nxc) schedule(dynamic)
500+
#pragma omp parallel for private(t,c,nxc,thread_num) schedule(dynamic)
501501
for (t=0; t<nadd; t++){
502502
#ifdef _OPENMP
503503
thread_num = omp_get_thread_num();

0 commit comments

Comments
 (0)