Skip to content

Commit

Permalink
Add missing thread_num as omp private
Browse files Browse the repository at this point in the history
  • Loading branch information
macrocosme committed Mar 31, 2021
1 parent 48b9f92 commit 602f65e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cleanit.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ void cleanit(float *data, int nchans, long int nadd)

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

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

// Try clipping some channels in individual samples
if(rfiSclip){
#pragma omp parallel for private(t,c,nxc) schedule(dynamic)
#pragma omp parallel for private(t,c,nxc,thread_num) schedule(dynamic)
for (t=0; t<nadd; t++){
#ifdef _OPENMP
thread_num = omp_get_thread_num();
Expand Down

0 comments on commit 602f65e

Please sign in to comment.