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

Bond based fragmentation bug #64

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Conversation

jlheflin
Copy link
Contributor

Hey @ryanmrichard , I've been trying to add print statements to the 'bond_based.cpp file for diagnosing the fragments but I keep getting a segmentation fault for my implementation. The associated types are pt::NuclearGraphToFragmentsTraits::graph_type.

}

std::ostream& operator<<(std::ostream& os, const chemist::fragmenting::FragmentedNuclei<chemist::Nuclei>& mol) {
os << mol << std::endl;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your segfault is caused by infinite recursion. This line calls the function you are implementing from within the implementation, i.e., you are trying to implement a print function by calling the print function you are implementing.

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

Successfully merging this pull request may close these issues.

2 participants