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

MNT: Safeguard against being passed a bad value for nthr

parent 0b7ca0db
No related branches found
No related tags found
1 merge request!17ENH: Allow `Splinterpolator` instances to be created from an existing set of spline coefficients, and extend extrapolation options
This commit is part of merge request !17. Comments created here will be created in the context of that merge request.
...@@ -1503,7 +1503,7 @@ void Splinterpolator<T>::deconv_along(unsigned int dim) ...@@ -1503,7 +1503,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