ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-2.0/src/applications/simpleBuilder/BaseLattice.cpp
Revision: 1891
Committed: Wed Dec 15 22:34:41 2004 UTC (19 years, 7 months ago) by tim
File size: 570 byte(s)
Log Message:
fix a bug in basic_ifstrstream

File Contents

# Content
1 #include "applications/simpleBuilder/BaseLattice.hpp"
2
3 namespace oopse{
4 void BaseLattice::getLatticePointsPos(std::vector<Vector3d>& latticePos, int nx, int ny, int nz){
5
6 latticePos.resize(nCellSites);
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);
13 }
14
15 }
16
17 }