--- trunk/src/lattice/shapedLattice.cpp 2006/10/14 20:21:26 1070 +++ trunk/src/lattice/shapedLattice.cpp 2008/09/10 19:51:45 1290 @@ -42,11 +42,11 @@ * * Created by Charles F. Vardeman II on 17 Feb 2006. * @author Charles F. Vardeman II - * @version $Id: shapedLattice.cpp,v 1.5 2006-10-14 20:21:26 gezelter Exp $ + * @version $Id: shapedLattice.cpp,v 1.7 2008-09-10 19:51:43 cli2 Exp $ * */ - +#include #include "lattice/shapedLattice.hpp" #include "math/Vector3.hpp" #include "brains/Register.hpp" @@ -82,6 +82,12 @@ namespace oopse{ endNz_ = (int) ceil(0.5*dimension_[2]/latticeConstant_); sitesComputed_ = false; } + + void shapedLattice::setOrigin(Vector3d origin){ + origin_ = origin; + simpleLattice_->setOrigin(origin_); + sitesComputed_ = false; + } void shapedLattice::findSites(){