********>Bugfix 29: Author: Holger Gohlke Date: 11/25/02 Programs: ptraj.c Severity: minor Description: Parsing of the atom mask cut the last atom if no continuation given Fix: apply the following patch to amber7/src/ptraj/ptraj.c ------------------------------------------------------------------------------ *** ptraj.c Wed Jan 16 15:56:35 2002 --- ptraj.c Mon Nov 25 15:00:38 2002 *************** *** 1171,1180 **** if (continuation) { continuation = 0; if (atom1 < 0) atom1 = 0; ! if (atom2 > atoms) atom2 = atoms; if (atom2 < atom1) atom2 = atom1; ! for (i = atom1; i < atom2; i++) { atomMask[i] = (not ? 0 : 1); atomMaskActive = 1; } --- 1171,1180 ---- if (continuation) { continuation = 0; if (atom1 < 0) atom1 = 0; ! if (atom2 > atoms) atom2 = atoms-1; if (atom2 < atom1) atom2 = atom1; ! for (i = atom1; i <= atom2; i++) { atomMask[i] = (not ? 0 : 1); atomMaskActive = 1; } ------------------------------------------------------------------------------ Temporary workarounds: increment the last number of the atom mask range by one