Skip to content

Commit 6ec94ac

Browse files
committed
DRY
1 parent f24b7e1 commit 6ec94ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Core/Algorithms/Legacy/Fields/Mapping/BuildMappingMatrixAlgo.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ bool BuildMappingMatrixAlgo::runImpl(FieldHandle source, FieldHandle destination
633633
algo.algo_ = this;
634634

635635
auto task_i = [&algo,this](int i) { algo.parallel(i); };
636-
Parallel::RunTasks(task_i, Parallel::NumCores());
636+
Parallel::RunTasks(task_i, np);
637637
}
638638
else if(method == "singledestination")
639639
{
@@ -649,7 +649,7 @@ bool BuildMappingMatrixAlgo::runImpl(FieldHandle source, FieldHandle destination
649649
algo.algo_ = this;
650650

651651
auto task_i = [&algo,this](int i) { algo.parallel(i); };
652-
Parallel::RunTasks(task_i, Parallel::NumCores());
652+
Parallel::RunTasks(task_i, np);
653653
}
654654
else if (method == "interpolateddata")
655655
{
@@ -666,7 +666,7 @@ bool BuildMappingMatrixAlgo::runImpl(FieldHandle source, FieldHandle destination
666666
algo.algo_ = this;
667667

668668
auto task_i = [&algo,this](int i) { algo.parallel(i); };
669-
Parallel::RunTasks(task_i, Parallel::NumCores());
669+
Parallel::RunTasks(task_i, np);
670670
}
671671

672672
output.reset(new SparseRowMatrix(m,n,rr,cc,vv,nnz));

0 commit comments

Comments
 (0)