45#include "lattice/CubicLattice.hpp" 
   51  CubicLattice::CubicLattice() {
 
   54    cellLen[0] = latticeParam;
 
   55    cellLen[1] = latticeParam;
 
   56    cellLen[2] = latticeParam;
 
   59  std::vector<RealType> CubicLattice::getLatticeConstant() {
 
   60    std::vector<RealType> lc;
 
   62    lc.push_back(cellLen.
x());
 
   66  void CubicLattice::setLatticeConstant(
const std::vector<RealType>& lc) {
 
   69          << 
"CubicLattice::setLatticeConstant Error: the lattice constant " 
   73    } 
else if (lc.size() > 1) {
 
   74      std::cerr << 
"CubicLattice::setLatticeConstant Warning: the size of " 
   77                << lc.size() << std::endl;
 
   82    cellLen[0] = latticeParam;
 
   83    cellLen[1] = latticeParam;
 
   84    cellLen[2] = latticeParam;
 
Real & x()
Returns reference of the first element of Vector3.
 
This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.