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
Merge remote-tracking branch 'origin/release-4-6'
[alexxy/gromacs.git]
/
src
/
gromacs
/
gmxlib
/
do_fit.c
diff --git
a/src/gromacs/gmxlib/do_fit.c
b/src/gromacs/gmxlib/do_fit.c
index 7b2525c19b0c44eb3c236e51ad49d44249fbd3c4..bea7e005dff020df04581957b300310d1cdccdee 100644
(file)
--- a/
src/gromacs/gmxlib/do_fit.c
+++ b/
src/gromacs/gmxlib/do_fit.c
@@
-244,6
+244,10
@@
void reset_x_ndim(int ndim,int ncm,const atom_id *ind_cm,
rvec xcm;
real tm,mm;
+ if (ndim>DIM)
+ {
+ gmx_incons("More than 3 dimensions not supported.");
+ }
tm = 0.0;
clear_rvec(xcm);
if (ind_cm != NULL)