Commit e3c46c01 authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

Parallelizer2 in Basis updated to reflect new ctor

parent 9dce72e9
......@@ -289,9 +289,10 @@ public:
// collapsed loop to fill permutation vector
// -----------------------------------------
const SizeType threads = std::min(nps*npe,
PsimagLite::Concurrency::codeSectionParams.npthreads);
PsimagLite::Parallelizer2<> parallelizer2(threads);
PsimagLite::CodeSectionParams codeParams = PsimagLite::Concurrency::codeSectionParams;
codeParams.npthreads = std::min(nps*npe,
PsimagLite::Concurrency::codeSectionParams.npthreads);
PsimagLite::Parallelizer2<> parallelizer2(codeParams);
parallelizer2.parallelFor(0,
nps*npe,
[nps,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment