ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/applications/utilities/waterBoxer
(Generate patch)

Comparing trunk/src/applications/utilities/waterBoxer (file contents):
Revision 1119 by gezelter, Mon Jan 22 22:27:37 2007 UTC vs.
Revision 1123 by chrisfen, Tue Mar 6 00:01:51 2007 UTC

# Line 3 | Line 3
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  
# Line 170 | Line 170 | if ($lattice == 0){
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines