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

Revert linked lists #54

Merged
merged 28 commits into from
Jul 10, 2018
Merged

Revert linked lists #54

merged 28 commits into from
Jul 10, 2018

Conversation

oscarsaleta
Copy link
Owner

Many of the vector structures that were used (e.g. for orbits, separatrices, singularities...) are reverted to pointer linked lists for ease of implementation.

The main reason is that P4 keeps track of the "current X" (separatrice, singularity, etc) being used in computations, with a pointer to that struct. Using vectors we needed an iterator or an index, but this made it impossible to keep track of exactly which container we were iterating in (which vector does this iterator belong to?, what if we're trying to get an iterator from an empty vector?, etc.).

@oscarsaleta
Copy link
Owner Author

oscarsaleta commented Jul 10, 2018

Commit a7b4bbe fixes #57 and #56

@oscarsaleta
Copy link
Owner Author

Commit 837083a message is wrong, it should say "fix #53", not 55

@oscarsaleta oscarsaleta merged commit 08976d6 into develop_p5 Jul 10, 2018
@oscarsaleta oscarsaleta deleted the revert_linked_lists branch July 10, 2018 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant