ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/lattice/Lattice.cpp
(Generate patch)

Comparing trunk/OOPSE-4/src/lattice/Lattice.cpp (file contents):
Revision 2182 by tim, Tue Apr 12 22:07:45 2005 UTC vs.
Revision 2204 by gezelter, Fri Apr 15 22:04:00 2005 UTC

# Line 1 | Line 1
1 < /*
1 > /*
2   * Copyright (c) 2005 The University of Notre Dame. All Rights Reserved.
3   *
4   * The University of Notre Dame grants you ("Licensee") a
# Line 42 | Line 42 | void Lattice::getLatticePointsPos(std::vector<Vector3d
42   #include "lattice/Lattice.hpp"
43  
44   namespace oopse{
45 < void Lattice::getLatticePointsPos(std::vector<Vector3d>& latticePos, int nx, int ny, int nz){
45 >  void Lattice::getLatticePointsPos(std::vector<Vector3d>& latticePos, int nx, int ny, int nz){
46  
47 <  latticePos.resize(nCellSites);
47 >    latticePos.resize(nCellSites);
48                                                            
49 <  for( int i=0;i < nCellSites;i++){
49 >    for( int i=0;i < nCellSites;i++){
50  
51 <    latticePos[i][0] = origin[0] + cellSitesPos[i][0] + cellLen[0] * (double(nx) - 0.5);
52 <    latticePos[i][1] = origin[1] + cellSitesPos[i][1] + cellLen[1] * (double(ny) - 0.5);
53 <    latticePos[i][2] = origin[2] + cellSitesPos[i][2] + cellLen[2] * (double(nz) - 0.5);    
51 >      latticePos[i][0] = origin[0] + cellSitesPos[i][0] + cellLen[0] * (double(nx) - 0.5);
52 >      latticePos[i][1] = origin[1] + cellSitesPos[i][1] + cellLen[1] * (double(ny) - 0.5);
53 >      latticePos[i][2] = origin[2] + cellSitesPos[i][2] + cellLen[2] * (double(nz) - 0.5);    
54 >    }
55 >
56    }
57  
58   }
57
58 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines