biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b237c91
)
Fixed SEGV in eneconv when using the -e flag.
author
David van der Spoel
<spoel@anfinsen.bmc.uu.se>
Sat, 5 Mar 2011 19:06:53 +0000
(20:06 +0100)
committer
David van der Spoel
<spoel@anfinsen.bmc.uu.se>
Sat, 5 Mar 2011 19:06:53 +0000
(20:06 +0100)
src/tools/gmx_eneconv.c
patch
|
blob
|
history
diff --git
a/src/tools/gmx_eneconv.c
b/src/tools/gmx_eneconv.c
index ecf1e0a886496a0dc81ab1569c22b408486bec48..540ef48d4590c358a52e8a47aed3767125debcec 100644
(file)
--- a/
src/tools/gmx_eneconv.c
+++ b/
src/tools/gmx_eneconv.c
@@
-770,7
+770,8
@@
int gmx_eneconv(int argc,char *argv[])
noutfr++;
}
}
-
+ if (f == nfile)
+ f--;
printf("\nLast step written from %s: t %g, step %s\n",
fnms[f],last_t,gmx_step_str(laststep,buf));
lastfilestep = laststep;