"Use option [TT]-pbc mol[tt] in addition to [TT]-center[tt] when you",
"want all molecules in the box after the centering.[PAR]",
- "Option [TT]-box[tt] sets the size of the new box. If you want to"
- "modify only some of the dimensions, e.g. when reading from a trajectory,"
- "you can use -1 for those dimensions that should stay the same"
+ "Option [TT]-box[tt] sets the size of the new box. This option only works",
+ "for leading dimensions and is thus generally only useful for rectangular boxes.",
+ "If you want to modify only some of the dimensions, e.g. when reading from",
+ "a trajectory, you can use -1 for those dimensions that should stay the same",
"It is not always possible to use combinations of [TT]-pbc[tt],",
"[TT]-fit[tt], [TT]-ur[tt] and [TT]-center[tt] to do exactly what",
if (bSetBox)
{
/* generate new box */
- clear_mat(fr.box);
+ if (fr.bBox == FALSE)
+ {
+ clear_mat(fr.box);
+ }
for (m = 0; m < DIM; m++)
{
if (newbox[m] >= 0)
{
fr.box[m][m] = newbox[m];
}
+ else
+ {
+ if (fr.bBox == FALSE)
+ {
+ gmx_fatal(FARGS, "Cannot preserve a box that does not exist.\n");
+ }
+ }
}
}