Skip to content
Snippets Groups Projects
Commit 4737a71e authored by Jesper Andersson's avatar Jesper Andersson
Browse files

Removed some unreachable break statements to silence nvcc

parent 2aff3c66
No related branches found
No related tags found
No related merge requests found
......@@ -834,7 +834,6 @@ unsigned int Splinterpolator<T>::get_dwgts(const double *coord, const int *sinds
switch (_order) {
case 0:
throw SplinterpolatorException("get_dwgts: invalid order spline");
break;
case 1:
dwgts[dim][0] = -1; dwgts[dim][1] = 1; // Not correct on original gridpoints
break;
......@@ -926,7 +925,6 @@ double Splinterpolator<T>::get_wgt_at_i(int i) const
break;
default:
throw SplinterpolatorException("get_wgt_at_i: invalid order spline");
break;
}
return(val);
}
......@@ -948,7 +946,6 @@ double Splinterpolator<T>::get_dwgt_at_i(int i) const
switch (_order) {
case 0: case 1:
throw SplinterpolatorException("get_dwgt: invalid order spline");
break;
case 2:
if (!ai) val = 0.0;
else if (ai==1) val = sign * (-0.5);
......@@ -981,7 +978,6 @@ double Splinterpolator<T>::get_dwgt_at_i(int i) const
break;
default:
throw SplinterpolatorException("get_dwgt_at_i: invalid order spline");
break;
}
return(val);
}
......@@ -1038,7 +1034,6 @@ double Splinterpolator<T>::get_wgt(double x) const
break;
default:
throw SplinterpolatorException("get_wgt: invalid order spline");
break;
}
return(val);
......@@ -1061,7 +1056,6 @@ double Splinterpolator<T>::get_dwgt(double x) const
switch (_order) {
case 0: case 1:
throw SplinterpolatorException("get_dwgt: invalid order spline");
break;
case 2:
if (ax < 0.5) val = sign * -2.0*ax;
else if (ax < 1.5) val = sign * (-1.5 + ax);
......@@ -1094,7 +1088,6 @@ double Splinterpolator<T>::get_dwgt(double x) const
break;
default:
throw SplinterpolatorException("get_dwgt: invalid order spline");
break;
}
return(val);
......@@ -1256,7 +1249,6 @@ T Splinterpolator<T>::coef(int *indx) const
switch (_et[i]) {
case Zeros:
return(static_cast<T>(0));
break;
case Constant:
indx[i] = 0;
break;
......@@ -1274,7 +1266,6 @@ T Splinterpolator<T>::coef(int *indx) const
switch (_et[i]) {
case Zeros:
return(static_cast<T>(0));
break;
case Constant:
indx[i] = _dim[i]-1;
break;
......@@ -1505,7 +1496,6 @@ unsigned int Splinterpolator<T>::SplineColumn::get_poles(unsigned int order, dou
break;
default:
throw SplinterpolatorException("SplineColumn::get_poles: invalid order of spline");
break;
}
return(np);
}
......
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