removed openmp

This commit is contained in:
Krishna Vedala 2020-04-09 00:25:53 -04:00
parent 8e2ad2e1ef
commit 8aaf345748
No known key found for this signature in database
GPG Key ID: BA19ACF8FC8792F7

View File

@ -5,9 +5,6 @@
#include <string.h> #include <string.h>
#include <limits.h> #include <limits.h>
#include <complex.h> #include <complex.h>
#ifdef _OPENMP
#include <omp.h>
#endif
#define ACCURACY 1e-10 #define ACCURACY 1e-10
@ -19,10 +16,6 @@ double complex function(double *coeffs, unsigned int degree, double complex x)
double complex out = 0.; double complex out = 0.;
unsigned int n; unsigned int n;
#ifdef _OPENMP
#pragma omp parallel for reduction(+ \
: out)
#endif
for (n = 0; n < degree; n++) for (n = 0; n < degree; n++)
out += coeffs[n] * cpow(x, degree - n - 1); out += coeffs[n] * cpow(x, degree - n - 1);