ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-3.0/src/applications/simpleBuilder/BaseLattice.cpp
(Generate patch)

Comparing branches/new_design/OOPSE-3.0/src/applications/simpleBuilder/BaseLattice.cpp (file contents):
Revision 1902 by tim, Wed Dec 15 22:34:41 2004 UTC vs.
Revision 1903 by tim, Thu Jan 6 00:16:07 2005 UTC

# Line 7 | Line 7 | void BaseLattice::getLatticePointsPos(std::vector<Vect
7                                                            
8    for( int i=0;i < nCellSites;i++){
9  
10 <    latticePos[i].x = origin.x + cellSitesPos[i].x + cellLen.x * (double(nx) - 0.5);
11 <    latticePos[i].y = origin.y + cellSitesPos[i].y + cellLen.y * (double(ny) - 0.5);
12 <    latticePos[i].z = origin.z + cellSitesPos[i].z + cellLen.z * (double(nz) - 0.5);    
10 >    latticePos[i][0] = origin[0] + cellSitesPos[i][0] + cellLen[0] * (double(nx) - 0.5);
11 >    latticePos[i][1] = origin[1] + cellSitesPos[i][1] + cellLen[1] * (double(ny) - 0.5);
12 >    latticePos[i][2] = origin[2] + cellSitesPos[i][2] + cellLen[2] * (double(nz) - 0.5);    
13    }
14  
15   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines