biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix cppcheck-1.67 warnings
[alexxy/gromacs.git]
/
src
/
gromacs
/
gmxana
/
gmx_dyndom.c
diff --git
a/src/gromacs/gmxana/gmx_dyndom.c
b/src/gromacs/gmxana/gmx_dyndom.c
index 5a727cb1c2317a7e5391eabde550148b8bd02964..63fb697756d84766509652fadefec326d89c0a35 100644
(file)
--- a/
src/gromacs/gmxana/gmx_dyndom.c
+++ b/
src/gromacs/gmxana/gmx_dyndom.c
@@
-208,6
+208,11
@@
int gmx_dyndom(int argc, char *argv[])
return 0;
}
+ if (maxangle == 0)
+ {
+ gmx_fatal(FARGS, "maxangle not given");
+ }
+
get_stx_coordnum (opt2fn("-f", NFILE, fnm), &natoms);
init_t_atoms(&atoms, natoms, TRUE);
snew(x, natoms);