Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a check for duplicate neighbouring cells within the theory pair counters (periodic) #192

Closed
manodeep opened this issue Aug 21, 2019 · 4 comments
Assignees
Milestone

Comments

@manodeep
Copy link
Owner

Is your feature request related to a problem? Please describe.
When periodic boundary conditions are enabled, Corrfunc should be able to calculate separations out to the maximum possible separation. Instead, Corrfunc might fail with the following error message

*Error message:
../../utils/gridlink_utils_float.c> ERROR: nlattice = 4 is so small that with periodic wrapping the same cells will be counted twice ....exiting
../../utils/gridlink_utils_float.c> Please reduce Rmax = 100.000000 to be a smaller fraction of the particle distribution region = 205.000000

Describe the solution you'd like
While adding a new neighbouring cell, add a check for duplicate neighbouring cells. A similar check is already performed here. Easiest option would be to package those lines of code into a function within gridlink_utils.c.src and call that function from all relevant assign_ngb calls.

Describe alternatives you've considered
N/A

Additional context
Reported by @JonLoveday in #69

@manodeep manodeep self-assigned this Aug 21, 2019
manodeep added a commit that referenced this issue Aug 23, 2019
@manodeep
Copy link
Owner Author

@JonLoveday I pushed a fix via e53bce3. Should not be too long before we can merge this into master.

If possible, would you please checkout the code_quality branch and see if the issue is resolved?

manodeep added a commit that referenced this issue Oct 11, 2019
* Apparently wp was not a target. Cleaned up the Makefiles

* Fixing errors reported by codacy

* More code quality fixes

* Added the codacy badge [ci skip]

* Fixed the fast divide option

* More code quality fixes

* More clean-ups

* Cleaning up some scope and other codacy comments

* Fixed an accidental edit and another codacy issue

* Modernised the readme and added the OpenMP on OSX to the FAQ

* Fixed build failure from improper initialisation

* Attempting to fix build failure on OSX

* Added a changelog entry

* Fixing #192
@manodeep
Copy link
Owner Author

@JonLoveday The fix is now on the master branch - I am closing this issue.

If the fix does not solve your case, please feel free to re-open this issue.

@manodeep
Copy link
Owner Author

manodeep commented Feb 3, 2020

This is not fixed - see #210

@manodeep manodeep reopened this Feb 3, 2020
@manodeep manodeep added this to the v2.4.0 milestone Feb 3, 2020
@manodeep manodeep modified the milestones: v2.4.0, v2.5.0 Sep 28, 2021
@manodeep
Copy link
Owner Author

This is done / superseded by #277

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant