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: 1903
Committed: Thu Jan 6 00:16:07 2005 UTC (19 years, 6 months ago) by tim
File size: 582 byte(s)
Log Message:
simpleBuilder in progress

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][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 }
16
17 }