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

Review the Molecule.update() method calls #491

Merged
merged 6 commits into from
Nov 13, 2015
Merged

Conversation

nickvandewiele
Copy link
Contributor

#471 (comment) showed that this method is expensive, and called too many times.

This hopefully speeds up RMG simulations somewhat.

since product.update() is called a few lines later.
the updating is done when we split up the structure into the
corresponding Molecule objects, in applyRecipe(...)
is deprecated since we don't update Molecules anymore in __apply(...)
this function should only be called when the vertices need to be
resorted. The sortVertices method will figure out whether that is true
or not.
is done (if necessary) by sortVertices, which follows that call
if we don't call mol.sortAtoms() here, there is no use in updating
the connectivity values neither.
nickvandewiele added a commit that referenced this pull request Nov 13, 2015
Review the Molecule.update() method calls
@nickvandewiele nickvandewiele merged commit 29f6ea4 into master Nov 13, 2015
@nickvandewiele nickvandewiele deleted the update_eff branch November 13, 2015 15:49
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.

1 participant