-
Notifications
You must be signed in to change notification settings - Fork 15
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
Write POSCAR in direct coordinate when selective dynamics is on #448
Conversation
Indentation of the added line is wrong. Try aligning it with the others in the if clause and then it should be fine. Otherwise lgtm, but I'm not a vasp user so wait for Marvin too 😉 |
@liamhuber Thanks for pointing out the wrong indentation. I will correct it. |
Have you checked that this actually causes an issue? From reading the warning again and the wiki I currently understand that VASP only supports fixing the fractional/direct coordinates of an atom, i.e. even when writing as Cartesian it will internally convert to fractional/direct and then fix this position. The distinction therefore only plays a role when the volume changes. Just as a heads-up, I'm still happy to put this in to silence the warning. |
@pmrv I did some test calculations from my side. For my calculations with cartesian poscar, apart from giving the warning message, vasp did the fixing correctly. I also checked the vasp wiki page, but not sure this warning message is not relevant anymore for these newer version of vasp or there is something else (maybe some special case where this is relevant). Hence, I thought it's a good idea to avoid this warning message by just writing the poscar in direct coordinate. |
Pull Request Test Coverage Report for Build 1518285353
💛 - Coveralls |
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.
@pmrv I did some test calculations from my side. For my calculations with cartesian poscar, apart from giving the warning message, vasp did the fixing correctly. I also checked the vasp wiki page, but not sure this warning message is not relevant anymore for these newer version of vasp or there is something else (maybe some special case where this is relevant). Hence, I thought it's a good idea to avoid this warning message by just writing the poscar in direct coordinate.
Sure, looks good to me now!
@usaikia Do you want to add more things here or can I merge this? |
@pmrv I don't have anything else to add here. You can merge it. |
When I run a vasp job with POSCAR written in cartesian coordinates vasp returns the following warning message:
"using selective dynamics as specified on POSCAR
WARNING: If single coordinates had been selected the selection of coordinates
is made according to the corresponding d i r e c t coordinates!
Don't support selection of single cartesian coordinates -- sorry ..."
Hence, I would like to write POSCAR in direct coordinates when selective dynamics is on.