From 28c5df9b92f3403b368f774505d34437920acb7c Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Mon, 10 Oct 2022 18:49:57 +0200 Subject: Enabled cheap parallelization. --- uniform.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'uniform.cpp') diff --git a/uniform.cpp b/uniform.cpp index 474399b..08f190a 100644 --- a/uniform.cpp +++ b/uniform.cpp @@ -37,6 +37,7 @@ public: void computeWeights() { for (std::vector& faces : lattices) { +#pragma omp parallel for for (Face& f : faces) { Real w = f[0].get().weights.top(); Real x = f[1].get().weights.top(); @@ -60,6 +61,7 @@ public: void computeProbabilities() { // destroys *all* weights for (auto it = lattices.rbegin(); it != lattices.rend(); it++) { +#pragma omp parallel for for (Face& f : *it) { Real p = f[0].get().probability; Real q = f[1].get().probability; -- cgit v1.2.3-54-g00ecf