66 bool pbc,
double vacuum);
94 const std::
string &format =
"");
void set_structure_input_format(std::string fmt)
[Main] input_format: empty or "con" keeps readcon only.
IoStatus chemfiles2matter(Matter &, const std::string &filename, const std::string &)
bool is_chemfiles_path(std::string_view filename)
True for structure paths routed to chemfiles: a known extension (xyz, extxyz, pdb,...
IoStatus inp2matter(Matter &m, const std::string &filename)
Input entry point: .con/.convel (and .gz/.zst) go to readcon, everything else goes to chemfiles.
std::vector< double > parse_cell_values(const std::string &text)
Parse "a b c" or nine numbers; throws std::invalid_argument.
const std::string & last_cell_warning() noexcept
Read the first frame of any chemfiles-supported file into Matter.
bool chemfiles_available() noexcept
True when this build links chemfiles (-Dwith_chemfiles found it).
void publish_structure_input(std::string format, const std::string &cell, bool pbc, double vacuum)
Publish [Main] input_format, cell, pbc, and default_vacuum to the process-wide readers.
IoStatus
Structured I/O result for the client surface (nanobind-friendly).
double default_vacuum() noexcept
const std::string & structure_input_format() noexcept
void set_config_cell(const std::vector< double > &values, bool pbc)
Fallback cell for foreign files that carry none ([Main] cell / pbc).
bool is_readcon_path(std::string_view filename)
True for paths readcon owns: .con, .convel and their .gz/.zst forms.
void set_default_vacuum(double angstrom)
Vacuum padding per side (Angstrom) for the bounding-box default cell.
RAII resource manager for the ARTn C library with global synchronization.