-
Notifications
You must be signed in to change notification settings - Fork 66
Add the 'xtalsymm' action #672
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
…rting code not yet included.
…ome signed/unsigned comparisons.
…s on some of the old behavior currently
… test (assists with debugging). Remove test.out from CleanFiles since it is already removed by MasterTest.sh
For both types of trajectories? |
IIRC, "xtal" is a commonly-used abbreviation for crystal throughout many places in Amber, so I don't expect this name to cause problems. |
but we have
I agree. Just the combination "xtalsymm" is an issue to me. |
In absence of a better suggestion, I don't know what to do about the naming
convention. "Symm" is symmetry, "xtal" crystal. I could make it
"xtalalign" but that doesn't give you much more indication of what it
really does.
…On Fri, Mar 1, 2019 at 3:14 PM Hai Nguyen ***@***.***> wrote:
. Other commands that modify coordinates don't have any special naming
convention that indicates coordinates are modified (e.g., rms/rmsd)
but we have align, rotate, translate, scale, center, strip that indicate
to modify coords. :P
IIRC, "xtal" is a commonly-used abbreviation for crystal throughout many
places in Amber, so I don't expect this name to cause problems.
I agree. Just the combination "xtalsymm" is an issue to me.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#672 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AQdh-1XNL2A1K9U8o0i3hSkNihuyEHvOks5vSYoXgaJpZM4bZa0a>
.
|
As Jason indicated, there is currently no command naming convention for indicating coordinate modification. However, in the cpptraj manual the table containing all Action commands has a column that indicates whether the command modifies coordinates, so the information is at least somewhere. In the manual (dating back to Overall, the command names in cpptraj range from OK (e.g. |
The horse is dead but I’ll still beat it. It’s generally advisable that users should understand exactly what they want to do with a command before they decide to use it. Presumably the fact that If we demand that a name be short (as we should), then we can’t demand too much in the way of self-documentation from it. |
I could alias the command with a super-long name as a fun easter egg - something like |
…nt the following error with some compilers: Action_XtalSymm.cpp(694): error C2131: expression did not evaluate to a constant
Ugh...
This is going to require some re-coding here...let me think about the best way to do it. May need to do it in a more object-oriented way... |
You mean |
You only got that error on Windows, right? |
… branched code in Action_XtalSymm:LoadSpaceGroupSymOps
warning: assuming signed overflow does not occur when assuming that (X + c) >= X is always true [-Wstrict-overflow] for (m = 0; m < nops_; m++) {
Yeah. I think the refactoring I did from multiple |
At last... |
Code originally written by Dave Cerutti (@dscerutti, https://github.com/dscerutti/cpptraj/tree/xtalsymm). Includes some fixes and cleanup.