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:
97c3c3a
)
Set make_ndx max name length and count to 1024
author
Berk Hess
<hess@kth.se>
Mon, 9 Jun 2014 14:19:11 +0000
(16:19 +0200)
committer
Gerrit Code Review
<gerrit@gerrit.gromacs.org>
Mon, 9 Jun 2014 18:05:22 +0000
(20:05 +0200)
Limits were 30, which was a bit on the low side.
Fixes #1512
Change-Id: I62d5146fdac06b7b5b7f56925addeca561c83173
src/gromacs/gmxana/gmx_make_ndx.c
patch
|
blob
|
history
diff --git
a/src/gromacs/gmxana/gmx_make_ndx.c
b/src/gromacs/gmxana/gmx_make_ndx.c
index 7c8f276f9721ecae0c9e9e40e942dfeaf27de03e..686ee49aaa59611fee725941e93d7eeb7159aac9 100644
(file)
--- a/
src/gromacs/gmxana/gmx_make_ndx.c
+++ b/
src/gromacs/gmxana/gmx_make_ndx.c
@@
-55,8
+55,11
@@
#include "gromacs/legacyheaders/gmx_fatal.h"
-#define MAXNAMES 30
-#define NAME_LEN 30
+/* It's not nice to have size limits, but we should not spend more time
+ * on this ancient tool, but instead use the new selection library.
+ */
+#define MAXNAMES 1024
+#define NAME_LEN 1024
gmx_bool bCase = FALSE;