1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-14 01:35:36 +00:00

Add bounds checking

This commit is contained in:
Peter Boyle 2019-04-17 11:52:23 +01:00
parent 6160795a43
commit f4723e07c5

View File

@ -66,7 +66,8 @@ namespace QCD {
int, MaxIter, int, MaxIter,
RealD, tolerance, RealD, tolerance,
int, degree, int, degree,
int, precision); int, precision,
int, BoundsCheckFreq);
// MaxIter and tolerance, vectors?? // MaxIter and tolerance, vectors??
@ -76,13 +77,15 @@ namespace QCD {
int _maxit = 1000, int _maxit = 1000,
RealD tol = 1.0e-8, RealD tol = 1.0e-8,
int _degree = 10, int _degree = 10,
int _precision = 64) int _precision = 64,
int _BoundsCheckFreq=20)
: lo(_lo), : lo(_lo),
hi(_hi), hi(_hi),
MaxIter(_maxit), MaxIter(_maxit),
tolerance(tol), tolerance(tol),
degree(_degree), degree(_degree),
precision(_precision){}; precision(_precision),
BoundsCheckFreq(_BoundsCheckFreq){};
}; };