17 bool required =
false;
30 "lattice-point-group",
"Pretty print prim lattice point group")(
32 "factor-group",
"Pretty print prim factor group")(
34 "crystal-point-group",
"Pretty print prim crystal point group")(
36 "brief",
"Print brief descriptions of symmetry operations")(
39 "Perform calculation of irreducible wedge (may significantly slow down "
40 "analysis). Used for --dof-space-analysis.")(
42 "tol", po::value<double>(&
m_tol)->default_value(1.0e-5),
43 "Tolerance in Angstr. Used for --symmetrize (default 1e-5)")(
45 "dof-space-analysis",
"Print DoF Space analysis files")(
48 "symmetrize a POSCAR specified by path to a given tolerance");
75 err_log() <<
"Error in 'casm sym'. The options --settings or --input may "
94 log() <<
"DESCRIPTION" << std::endl << std::endl;
107 if (
vm().
count(
"symmetrize")) {
109 }
else if (
vm().
count(
"dof-space-analysis")) {
PrimClex & primclex() const
const OptionType & opt() const
const po::variables_map & vm() const
int count(std::string s) const
static std::string path()
Get value_type string for path completion.
void add_input_suboption(bool required=true)
void add_confignames_suboption()
Add a –confignames suboption.
const po::options_description & desc()
Get the program options, filled with the initialized values.
void add_settings_suboption(bool required=true)
void add_help_suboption()
Add a plain –help and –desc suboptions.
po::options_description m_desc
void add_selection_no_default_suboption()
Add –selection suboption (no default)
void add_coordtype_suboption()
Add a –coord suboption to specify FRAC or CART.
void add_dofs_suboption()
Add a –dofs suboption to specify DoF Types.
void initialize() override
Fill in the options descriptions accordingly.
void error(const std::string &what)
int help() const override
int vm_count_check() const override
int desc() const override
SymCommand(const CommandArgs &_args, Completer::SymOption &_opt)
static const std::string name
std::string write_prim_symmetry_desc()
Describe the default casm sym option.
void dof_space_analysis(PrimClex &primclex, jsonParser const &json_options, jsonParser const &cli_options_as_json)
Perform DoF space analysis.
std::string dof_space_analysis_desc()
Describe DoF space analysis input.
jsonParser make_json_input(const OptionType &opt)
void write_prim_symmetry(PrimClex &primclex, jsonParser const &json_options, jsonParser const &cli_options_as_json)
Write/print prim symmetry.
std::string symmetrize_desc()
Describe the symmetrize method.
void symmetrize(PrimClex &primclex, jsonParser const &json_options, jsonParser const &cli_options_as_json)
Adjust a structure's lattice and basis to increase factor group symmetry.
Data structure holding basic CASM command info.