ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
td_vecpot_io.h
Go to the documentation of this file.
1#ifndef TD_VECPOT_IO_H
2#define TD_VECPOT_IO_H
3
5
6#include <string>
7#include <vector>
8
9namespace ModuleIO
10{
11
18std::vector<ModuleBase::Vector3<double>> read_td_vecpot(const std::string& input_dir);
19
21void check_td_vecpot_paths(const std::string& input_dir, const std::string& output_dir);
22
29void prep_td_vecpot_out(const std::string& output_dir, bool restart);
30
38void write_td_vecpot(const std::string& output_dir, int electronic_step, const ModuleBase::Vector3<double>& vector_pot);
39
40} // namespace ModuleIO
41
42#endif
Internal helpers shared by the R-space sparse text writers. Declared here (instead of duplicated in e...
Definition csr_reader.cpp:8
void write_td_vecpot(const std::string &output_dir, const int electronic_step, const ModuleBase::Vector3< double > &vector_pot)
Append one Cartesian vector-potential sample.
Definition td_vecpot_io.cpp:127
void prep_td_vecpot_out(const std::string &output_dir, const bool restart)
Prepare the vector-potential output file for an RT-TDDFT calculation.
Definition td_vecpot_io.cpp:107
void 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.
Definition td_vecpot_io.cpp:93
std::vector< ModuleBase::Vector3< double > > read_td_vecpot(const std::string &input_dir)
Read Cartesian vector potentials for an RT-TDDFT calculation.
Definition td_vecpot_io.cpp:42