Project

General

Profile

Bug #283

g_traj crashes with -mol option

Added by Alexey Anikeenko almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Erik Lindahl
Category:
analysis tools
Target version:
Affected version - extra info:
Affected version:
Difficulty:
uncategorized
Close

Description

Created an attachment (id=346)
fix

g_traj crashes with -mol option

fix:

--- a/gmx_traj.c 2009-01-28 14:12:38.000000000 0600
+
+ b/gmx_traj.c 2009-01-28 14:12:49.000000000 0600
@ -601,7 +601,7 @
snew(isize,ngroups);
snew(index,ngroups);
for (i=0; i<ngroups; i
+) {
- if (index00[i] < 0 || index0[i] >= mols->nr)
+ if (index00[i] < 0 || index00[i] >= mols->nr)
gmx_fatal(FARGS,"Molecule index (%d) is out of range (%d-%d)",
index00[i]+1,1,mols->nr);
isize[i] = atndx[index00[i]+1] - atndx[index00[i]];

gmx_traj_2009-01-28.patch (485 Bytes) gmx_traj_2009-01-28.patch fix Alexey Anikeenko, 01/28/2009 09:26 AM

History

#1 Updated by Berk Hess almost 11 years ago

I fixed it for 4.0.4.

Thanks for reporting this with the fix,

Berk

Also available in: Atom PDF