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