Import Geant4 9.3.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 16:15:05 +02:00
parent b79225fb37
commit 74cad5e589
3877 changed files with 234205 additions and 167127 deletions
@@ -30,7 +30,7 @@
* fast, flexible operations on piecewise-twice-differentiable functions
*
* \author Created by R. A. Weller and Marcus H. Mendenhall on 7/9/05.
* \author Copyright 2005 __Vanderbilt University__. All rights reserved.
* \author 2005 Vanderbilt University.
*
* \version c2_function.cc,v 1.169 2008/05/22 12:45:19 marcus Exp
*/
@@ -345,8 +345,8 @@ template <typename float_type> bool c2_function<float_type>::check_monotonicity(
bool rev=(data[1] < data[0]); // which way do data point?
size_t i;
if(!rev) for(i = 2; i < np && (data[i-1] < data[i]) ; i++);
else for(i = 2; i < np &&(data[i-1] > data[i]) ; i++);
if(!rev) for(i = 2; i < np && (data[i-1] < data[i]) ; i++) { }
else for(i = 2; i < np &&(data[i-1] > data[i]) ; i++) { }
if(i != np) throw c2_exception(message);