fix internal checks in QMC samplers
parent
5a272564f7
commit
6ed2b4aedd
|
@ -363,7 +363,7 @@ public:
|
||||||
|
|
||||||
Point2 next2D() {
|
Point2 next2D() {
|
||||||
/* Skip over dimensions that were reserved to arrays */
|
/* Skip over dimensions that were reserved to arrays */
|
||||||
if (m_dimension >= m_arrayStartDim && m_dimension < m_arrayEndDim)
|
if (m_dimension + 1 >= m_arrayStartDim && m_dimension < m_arrayEndDim)
|
||||||
m_dimension = m_arrayEndDim;
|
m_dimension = m_arrayEndDim;
|
||||||
if (m_dimension + 1 >= primeTableSize)
|
if (m_dimension + 1 >= primeTableSize)
|
||||||
Log(EError, "Lookup dimension exceeds the prime number table size! "
|
Log(EError, "Lookup dimension exceeds the prime number table size! "
|
||||||
|
|
|
@ -258,7 +258,7 @@ public:
|
||||||
|
|
||||||
Point2 next2D() {
|
Point2 next2D() {
|
||||||
/* Skip over dimensions that were reserved to arrays */
|
/* Skip over dimensions that were reserved to arrays */
|
||||||
if (m_dimension >= m_arrayStartDim && m_dimension < m_arrayEndDim)
|
if (m_dimension + 1 >= m_arrayStartDim && m_dimension < m_arrayEndDim)
|
||||||
m_dimension = m_arrayEndDim;
|
m_dimension = m_arrayEndDim;
|
||||||
if (m_dimension + 1 >= primeTableSize)
|
if (m_dimension + 1 >= primeTableSize)
|
||||||
Log(EError, "Lookup dimension exceeds the prime number table size! "
|
Log(EError, "Lookup dimension exceeds the prime number table size! "
|
||||||
|
|
|
@ -231,7 +231,7 @@ public:
|
||||||
Float value1, value2;
|
Float value1, value2;
|
||||||
|
|
||||||
/* Skip over dimensions that were reserved to arrays */
|
/* Skip over dimensions that were reserved to arrays */
|
||||||
if (m_dimension >= m_arrayStartDim && m_dimension < m_arrayEndDim)
|
if (m_dimension + 1 >= m_arrayStartDim && m_dimension < m_arrayEndDim)
|
||||||
m_dimension = m_arrayEndDim;
|
m_dimension = m_arrayEndDim;
|
||||||
|
|
||||||
if (m_dimension + 1 >= sobol::Matrices::num_dimensions)
|
if (m_dimension + 1 >= sobol::Matrices::num_dimensions)
|
||||||
|
|
Loading…
Reference in New Issue