ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-1.0/utils/sysbuilder/BaseLattice.cpp
(Generate patch)

Comparing trunk/OOPSE-1.0/utils/sysbuilder/BaseLattice.cpp (file contents):
Revision 1423 by tim, Wed Jul 28 04:58:20 2004 UTC vs.
Revision 1427 by tim, Wed Jul 28 18:42:59 2004 UTC

# Line 1 | Line 1
1   #include "BaseLattice.hpp"
2 < void BaseLattice::getLatticePoints(vector<double>& latticePosX, vector<double>& latticePosY, vector<double>& latticePosZ,
3 <                                                           int nx, int ny, int nz){
2 > void BaseLattice::getLatticePoints(vector<Vector3d>& latticePos, int nx, int ny, int nz){
3 >
4 >  latticePos.resize(nCellSites);
5                                                            
6    for( int i=0;i < nCellSites;i++){
7 <  
8 <    latticePosX[i] = startX + thisUnitCell.sx[i] + cellLengthX * (double( ix ) - 0.5);
9 <    latticePosY[i] = startY + thisUnitCell.sy[i] + cellLengthY * (double( iy ) - 0.5);
10 <    latticePosZ[i] = startZ + thisUnitCell.sz[i] + cellLengthZ * (double( iz ) - 0.5);
10 <    
7 >
8 >    latticePos[i].x = origin.x + cellSitesPos[i].x + cellLen.x * (double(nx) - 0.5);
9 >    latticePos[i].y = origin.y + cellSitesPos[i].y + cellLen.y * (double(ny) - 0.5);
10 >    latticePos[i].z = origin.z + cellSitesPos[i].z + cellLen.z * (double(nz) - 0.5);    
11    }
12  
13   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines