ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-1.0/utils/sysbuilder/BaseLattice.cpp
Revision: 1423
Committed: Wed Jul 28 04:58:20 2004 UTC (19 years, 11 months ago) by tim
File size: 607 byte(s)
Log Message:
refactorize Lattice class

File Contents

# User Rev Content
1 tim 1423 #include "BaseLattice.hpp"
2     void BaseLattice::getLatticePoints(vector<double>& latticePosX, vector<double>& latticePosY, vector<double>& latticePosZ,
3     int nx, int ny, int nz){
4    
5     for( int i=0;i < nCellSites;i++){
6    
7     latticePosX[i] = startX + thisUnitCell.sx[i] + cellLengthX * (double( ix ) - 0.5);
8     latticePosY[i] = startY + thisUnitCell.sy[i] + cellLengthY * (double( iy ) - 0.5);
9     latticePosZ[i] = startZ + thisUnitCell.sz[i] + cellLengthZ * (double( iz ) - 0.5);
10    
11     }
12    
13     }
14