Skip to content
Snippets Groups Projects
Commit bc2d8fd8 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

MNT: Safeguard against being passed a bad value for nthr

parent 15056b3f
No related branches found
No related tags found
No related merge requests found
Pipeline #25437 skipped
This commit is part of merge request !17. Comments created here will be created in the context of that merge request.
...@@ -1506,7 +1506,7 @@ void Splinterpolator<T>::deconv_along(unsigned int dim) ...@@ -1506,7 +1506,7 @@ void Splinterpolator<T>::deconv_along(unsigned int dim)
ss *= _dim[i]; ss *= _dim[i];
} }
if (_nthr==1) { // If we are to run single-threaded if (_nthr<=1) { // If we are to run single-threaded
SplineColumn col(mdim,mstep); // Column helps us do the job SplineColumn col(mdim,mstep); // Column helps us do the job
for (unsigned int l=0; l<rdim[3]; l++) { for (unsigned int l=0; l<rdim[3]; l++) {
for (unsigned int k=0; k<rdim[2]; k++) { for (unsigned int k=0; k<rdim[2]; k++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment