From 48b80f68f182e0c3f734fdb1f0dbff3a96241c8e Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Wed, 14 Feb 2024 09:31:06 +0100 Subject: [PATCH] HPC implementation in Jastrow --- org/qmckl_jastrow_champ.org | 104 ++++++++++++++++++++++++++++++++++-- 1 file changed, 100 insertions(+), 4 deletions(-) diff --git a/org/qmckl_jastrow_champ.org b/org/qmckl_jastrow_champ.org index 24beab7..40cabff 100644 --- a/org/qmckl_jastrow_champ.org +++ b/org/qmckl_jastrow_champ.org @@ -4485,7 +4485,9 @@ qmckl_exit_code qmckl_compute_jastrow_champ_factor_en_hpc ( if (factor_en == NULL) return QMCKL_INVALID_ARG_11; const double de = (double) elec_num; +#ifdef HAVE_OPENMP #pragma omp parallel for +#endif for (int64_t nw=0 ; nw