[gmx-users] Example of arithmetic expression in gmx select?

Viveca Lindahl vivecalindahl at gmail.com
Thu Feb 22 18:12:08 CET 2018


Hi all,

I'm trying to do selections that require addition, which is supposed to be
supported according to 'gmx help selections'. I get syntax error however
when doing from within 'gmx select':

a=1+1
resid a

What is the right syntax for achieving a=2...?

Thanks,
Viveca


More information about the gromacs.org_gmx-users mailing list