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:
b72bb55
)
More clear message for undefined pullgroups.
author
Rossen Apostolov
<rossen@kth.se>
Wed, 18 Jun 2014 14:19:03 +0000
(16:19 +0200)
committer
Roland Schulz
<roland@rschulz.eu>
Sun, 22 Jun 2014 16:06:35 +0000
(18:06 +0200)
When a pull group was not defined in the index file,
grompp didn't report in a clear way where the problem was.
Fixes #1446.
Change-Id: If571b46b91f6ad28213808b6e18d96e1da0be79d
src/kernel/readpull.c
patch
|
blob
|
history
diff --git
a/src/kernel/readpull.c
b/src/kernel/readpull.c
index 9e2b9f5fcf57952f68f27723c24821491107c38b..16c06762809ba4f459b9e2dee237f03cd7fa6702 100644
(file)
--- a/
src/kernel/readpull.c
+++ b/
src/kernel/readpull.c
@@
-258,6
+258,10
@@
void make_pull_groups(t_pull *pull, char **pgnames, t_blocka *grps, char **gname
{
pgrp->nat = 0;
}
+ else if (g != 0 && strcmp(pgnames[g], "") == 0)
+ {
+ gmx_fatal(FARGS, "Group pull_group%d required by grompp was undefined.",g);
+ }
else
{
ig = search_string(pgnames[g], grps->nr, gnames);