Definition at line 34 of file LatticeIO.h.
◆ ParticleLayout
◆ LatticeXMLWriter()
Definition at line 40 of file LatticeIO.h.
const ParticleLayout & ref_
◆ createNode()
xmlNodePtr createNode |
( |
| ) |
|
Definition at line 259 of file LatticeIO.cpp.
References CrystalLattice< T, D >::R, and LatticeXMLWriter::ref_.
261 xmlNodePtr cur = xmlNewNode(NULL, (
const xmlChar*)
"unitcell");
262 std::ostringstream l;
263 l.setf(std::ios_base::scientific);
266 xmlNodePtr p = xmlNewTextChild(cur, NULL, (
const xmlChar*)
"parameter", (
const xmlChar*)l.str().c_str());
267 xmlNewProp(p, (
const xmlChar*)
"name", (
const xmlChar*)
"lattice");
const ParticleLayout & ref_
Tensor_t R
Real-space unit vectors. R(i,j) i=vector and j=x,y,z.
◆ get()
bool get |
( |
std::ostream & |
os | ) |
const |
Definition at line 240 of file LatticeIO.cpp.
References CrystalLattice< T, D >::BoxBConds, qmcplusplus::ewaldref::DIM, CrystalLattice< T, D >::R, LatticeXMLWriter::ref_, and TinyVector< T, D >::Size.
Referenced by XMLSaveParticle::get().
242 os <<
"<unitcell>" << std::endl;
243 os << R
"(<parameter name="lattice" datatype="tensor">)" << std::endl; 244 os << ref_.R << "</parameter>" << std::endl;
245 os <<
"<parameter name=\"bconds\">";
247 for (
int idir = 0; idir <
DIM; idir++)
254 os <<
"</parameter>" << std::endl;
255 os <<
"</unitcell>" << std::endl;
const ParticleLayout & ref_
TinyVector< int, D > BoxBConds
The boundary condition in each direction.
Tensor_t R
Real-space unit vectors. R(i,j) i=vector and j=x,y,z.
◆ ref_
The documentation for this class was generated from the following files:
- /home/pk7/projects/qmc/for_cron_doxygen/qmcpack/src/Particle/ParticleIO/LatticeIO.h
- /home/pk7/projects/qmc/for_cron_doxygen/qmcpack/src/Particle/ParticleIO/LatticeIO.cpp