ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
td_vecpot_io.h File Reference
#include "source_base/vector3.h"
#include <string>
#include <vector>
Include dependency graph for td_vecpot_io.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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.