-
Notifications
You must be signed in to change notification settings - Fork 5
Kokkos/simple md datastructures wip #112
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
Conversation
Thinkpiet
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
INFO SimpleMDBench: SUCCESS Checksum is correct :-)
🚀 👍
| _moleculeIndex--; | ||
| return tmp; | ||
| } | ||
| bool operator!=(const Iterator& other) const { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a if(_moleculeService != other._moleculeService) return true; missing here!
|
|
||
| private: | ||
| std::list<Molecule*> _molecules; | ||
| unsigned int _index; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason why the simplemd::services::MoleculeService* _moleculeService; is stored in the Iterator but not in the LinkedCell? Having it here (passed in via constructor) would have the advantage that you could do
for(Molecule& m : cell)
instead of
for (auto it = cell.begin(_moleculeService); it != cell.end(); it++) {
Molecule* m = (*it);
....
|
Obsolete 👉 delete this branch! |
Partially addresses #109