protect OpenMP pragma with preprocessor define

This commit is contained in:
Axel Kohlmeyer
2021-06-05 16:24:39 -04:00
parent 655c7b02ec
commit c5c9a27593

View File

@ -1123,7 +1123,9 @@ void FixPolarizeFunctional::calculate_grad_greens_ewald(double *vec,
void FixPolarizeFunctional::calculate_matrix_multiply_vector(double **matrix,
double *in_vec, double *out_vec, int M)
{
#pragma parallel omp for
#if defined(OPENMP)
#pragma parallel omp for
#endif
for (int k = 0; k < M; ++k) {
double temp = 0.0;
for (int l = 0; l < M; ++l) {