|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
#include "source_io/module_efield/td_vecpot_io.h"#include "source_base/tool_quit.h"#include <cmath>#include <fstream>#include <iomanip>#include <sstream>#include <sys/stat.h>Namespaces | |
| namespace | ModuleIO |
| Internal helpers shared by the R-space sparse text writers. Declared here (instead of duplicated in each anonymous namespace) so the header layout, R records and file-append rules cannot diverge between hs_sparse_io.cpp, dhs_sparse_writer.cpp, pos_op_csr.cpp, hsr_writer.cpp and write_dmr.cpp. | |
Functions | |
| std::vector< ModuleBase::Vector3< double > > | ModuleIO::read_td_vecpot (const std::string &input_dir) |
| Read Cartesian vector potentials for an RT-TDDFT calculation. | |
| void | ModuleIO::check_td_vecpot_paths (const std::string &input_dir, const std::string &output_dir) |
| Reject output that aliases the input file, including symbolic and hard links. | |
| void | ModuleIO::prep_td_vecpot_out (const std::string &output_dir, bool restart) |
| Prepare the vector-potential output file for an RT-TDDFT calculation. | |
| void | ModuleIO::write_td_vecpot (const std::string &output_dir, int electronic_step, const ModuleBase::Vector3< double > &vector_pot) |
| Append one Cartesian vector-potential sample. | |