1 #ifndef CASM_app_clex_file_io
2 #define CASM_app_clex_file_io
4 #include <boost/filesystem.hpp>
5 #include <boost/filesystem/fstream.hpp>
24 fs::ofstream outfile{
dir.
LAT(supercell.
name())};
32 fs::ofstream outfile{
dir.
POS(configuration.name())};
Specification of CASM project directory structure.
fs::path LAT(std::string scelname) const
Return supercell LAT file path.
fs::path structure_json(std::string configname) const
Return path to standard structure.json file location.
fs::path config_json(std::string configname) const
Return path to standard config.json file location.
fs::path configuration_dir(std::string configname) const
Return configuration directory path.
fs::path POS(std::string configname) const
Return path to standard POS file location.
Represents a supercell of the primitive parent crystal structure.
const Lattice & lattice() const
The super lattice.
void print(std::ostream &stream, unsigned int indent=2, unsigned int prec=12) const
Print json to stream.
const Eigen::Matrix3d & lat_column_mat() const
3x3 matrix with lattice vectors as its columne
xtal::SimpleStructure make_simple_structure(Supercell const &_scel, ConfigDoF const &_dof, std::vector< DoFKey > const &_which_dofs={})
Construct from ConfigDoF _dof belonging to provided Supercell _scel.
jsonParser & to_json(const ClexDescription &desc, jsonParser &json)
void write_config_json(Configuration const &configuration, DirectoryStructure const &dir)
void write_structure_json(Configuration const &configuration, DirectoryStructure const &dir)
void write_pos(Configuration const &configuration, DirectoryStructure const &dir)
Write configuration "POS" file (VASP POSCAR) to standard location.
void write_lat(Supercell const &supercell, DirectoryStructure const &dir)
void print_poscar(Configuration const &configuration, std::ostream &sout)
DirectoryStructure const & dir