3 |
|
# program that builds water boxes |
4 |
|
|
5 |
|
# author = "Chris Fennell |
6 |
< |
# version = "$Revision: 1.3 $" |
7 |
< |
# date = "$Date: 2007-01-22 22:27:37 $" |
6 |
> |
# version = "$Revision: 1.4 $" |
7 |
> |
# date = "$Date: 2007-03-06 00:01:51 $" |
8 |
|
# copyright = "Copyright (c) 2006 by the University of Notre Dame" |
9 |
|
# license = "OOPSE" |
10 |
|
|
170 |
|
} |
171 |
|
} elsif ($lattice == 1){ |
172 |
|
$crystalNumReal = ($nMol/1.0)**(1.0/3.0); |
173 |
< |
$crystalNum = int($crystalNumReal); |
173 |
> |
$crystalNum = int($crystalNumReal + $tolerance); |
174 |
|
$remainder = $crystalNumReal - $crystalNum; |
175 |
|
|
176 |
|
# again, if crystalNumReal wasn't an integer, we bump the crystal to the next |