ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/applications/nanoparticleBuilder/shapedLatticeSpherical.cpp
(Generate patch)

Comparing trunk/src/applications/nanoparticleBuilder/shapedLatticeSpherical.cpp (file contents):
Revision 1073 by gezelter, Sat Oct 14 20:21:26 2006 UTC vs.
Revision 1074 by gezelter, Tue Oct 17 15:24:29 2006 UTC

# Line 44 | Line 44
44   *
45   *  Created by Charles F. Vardeman II on 3/15/06.
46   *  @author  Charles F. Vardeman II
47 < *  @version $Id: shapedLatticeSpherical.cpp,v 1.2 2006-10-14 20:21:26 gezelter Exp $
47 > *  @version $Id: shapedLatticeSpherical.cpp,v 1.3 2006-10-17 15:24:29 gezelter Exp $
48   *
49   */
50  
# Line 64 | Line 64 | namespace oopse {
64      dimension[1]=2.0*radius;
65      dimension[2]=2.0*radius;
66      setGridDimension(dimension);
67 +    Vector3d origin;
68 +    origin[0] = latticeConstant / 2.0;
69 +    origin[1] = latticeConstant / 2.0;
70 +    origin[2] = latticeConstant / 2.0;
71 +    setOrigin(origin);
72    }
73    /**
74     * Determines whether a point lies with a sphere at origin 0

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines