Skip to content

Commit 508322a

Browse files
author
dquartul
committed
update
1 parent c17c5ad commit 508322a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cpp_routines/mean_std_whereint.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ extern "C" double standard_deviation(const double * __restrict__ data, const int
2626

2727

2828
extern "C" int where(const double *__restrict__ dt, const int n_macroparticles,
29-
const double constant)
29+
const double constant1, const double constant2)
3030
{
31-
int s = 0;
31+
int s = 0;
3232
#pragma omp parallel for reduction(+:s)
3333
for (int i = 0; i < n_macroparticles; i++) {
34-
s += (dt[i]< constant && dt[i]>0) ? 1 : 0;
34+
s += (dt[i] < constant2 && dt[i] > constant1) ? 1 : 0;
3535
}
3636
return s;
3737
}

0 commit comments

Comments
 (0)