1#ifndef PRDC_UNIT_CELL_TPP
2#define PRDC_UNIT_CELL_TPP
13#include <util/format/Dbl.h>
14#include <util/format/Int.h>
83 out <<
"crystal_system" << std::endl
84 <<
" " << cell.lattice_<< std::endl;
85 out <<
"N_cell_param" << std::endl
87 out <<
"cell_param " << std::endl;
bool isInitialized_
Has this unit cell been fully initialized?
FArray< double, 6 > parameters_
Parameters used to describe the unit cell.
void setLattice()
Compute all protected data, given latticeSystem and parameters.
int nParameter_
Number of parameters required to specify unit cell.
int nParameter() const
Get the number of parameters in the unit cell.
LatticeSystem lattice() const
Return lattice system enumeration value.
Base template for UnitCell<D> classes, D=1, 2 or 3.
Wrapper for a double precision number, for formatted ostream output.
#define UTIL_CHECK(condition)
Assertion macro suitable for serial or parallel production code.
void readUnitCellHeader(std::istream &in, UnitCell< D > &cell)
Read UnitCell<D> from a field file header (fortran PSCF format).
void writeUnitCellHeader(std::ostream &out, UnitCell< D > const &cell)
Write UnitCell<D> to a field file header (fortran PSCF format).
Periodic fields and crystallography.
PSCF package top-level namespace.