Skip to content

Commit

Permalink
Fixes the Faure sequence when PrimeSieve is used
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaudin47 committed May 14, 2024
1 parent 501d3dc commit fae5686
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

=== Miscellaneous ===

=== Bug fixes (total 45) ===
* #2653 (The Faure sequence is wrong)


== 1.23rc1 release (2024-05-03) == #release-1.23rc1
Expand Down
4 changes: 2 additions & 2 deletions lib/src/Base/Stat/LowDiscrepancySequenceImplementation.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,9 @@ Unsigned64BitsInteger LowDiscrepancySequenceImplementation::GetNextPrimeNumber(c
#ifdef OPENTURNS_HAVE_PRIMESIEVE
primesieve::iterator it;
#if PRIMESIEVE_VERSION_MAJOR >= 11
it.jump_to(n - 1);
it.jump_to(n);
#else
it.skipto(n - 1);
it.skipto(n);
#endif
return it.next_prime();
#else
Expand Down

0 comments on commit fae5686

Please sign in to comment.