Repository navigation
Conversation
… bonds so that recipe does not give error when applied.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation or Problem
When running RMG to create a surface mechanism for H2 reacting with CO, CO2, CH4, NH3, O2 (on Ni111), I encountered the following error:
The traceback looks like:
It seems as though the reaction family
Surface_Dissociation_vdWtried to break the double bond connecting two atoms while only giving each of them a single bond to the surface. Breaking the double bond seems to be handled bySurface_Dissociation_Double_vdW.Description of Changes
I changed the entries that match species with a double bond between the atoms where the dissociation occurs to require a single bond only.
Testing
The following can be run, which I found reproduces the error without the fix, but runs without error after the fix is applied. This uses the same species that failed in the problem case.
Reviewer Tips
I hope that I have understood this correctly, and I am not sure if a test would need to be added to RMG-Py, but if it did, I would plan to have it be in the form of the test provided. Thank you so much for taking a look!