84 bool interrupt =
false;
88#pragma omp parallel for \
89 shared(interrupt_check_frequency, n_cycles, interrupt) \
92 for (
int i=0; i<n_cycles; i+=interrupt_check_frequency) {
99 if (omp_get_thread_num() == 0)
106 int j_end = std::min(i+interrupt_check_frequency, n_cycles);
107 for (
int j=i; j<j_end; ++j) {
108 double summand = 1.0 / (double)(2*j + 1);