--- trunk/src/lattice/CubicLattice.cpp 2005/04/12 22:07:45 485 +++ trunk/src/lattice/CubicLattice.cpp 2005/04/15 22:04:00 507 @@ -1,4 +1,4 @@ - /* +/* * Copyright (c) 2005 The University of Notre Dame. All Rights Reserved. * * The University of Notre Dame grants you ("Licensee") a @@ -43,39 +43,39 @@ namespace oopse { namespace oopse { -CubicLattice::CubicLattice(){ - latticeParam = 1.0; + CubicLattice::CubicLattice(){ + latticeParam = 1.0; - cellLen[0] = latticeParam; - cellLen[1] = latticeParam; - cellLen[2] = latticeParam; + cellLen[0] = latticeParam; + cellLen[1] = latticeParam; + cellLen[2] = latticeParam; -} + } - std::vector CubicLattice::getLatticeConstant(){ - std::vector lc; + std::vector CubicLattice::getLatticeConstant(){ + std::vector lc; - lc.push_back(cellLen.x()); - return lc; -} + lc.push_back(cellLen.x()); + return lc; + } -void CubicLattice::setLatticeConstant(const std::vector& lc){ + void CubicLattice::setLatticeConstant(const std::vector& lc){ - if(lc.size() < 1){ - std::cerr << "CubicLattice::setLatticeConstant Error: the size of lattice constant vector is 0" << std::endl; - exit(1); - } - else if (lc.size() > 1){ - std::cerr << "CubicLattice::setLatticeConstant Warning: the size of lattice constant vector is " << lc.size() << std::endl; - } + if(lc.size() < 1){ + std::cerr << "CubicLattice::setLatticeConstant Error: the size of lattice constant vector is 0" << std::endl; + exit(1); + } + else if (lc.size() > 1){ + std::cerr << "CubicLattice::setLatticeConstant Warning: the size of lattice constant vector is " << lc.size() << std::endl; + } - latticeParam = lc[0]; + latticeParam = lc[0]; - cellLen[0] = latticeParam; - cellLen[1] = latticeParam; - cellLen[2] = latticeParam; + cellLen[0] = latticeParam; + cellLen[1] = latticeParam; + cellLen[2] = latticeParam; - update(); -} + update(); + } }