ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
write_notice.h
Go to the documentation of this file.
1#ifndef MODULEIO_WRITE_NOTICE_H
2#define MODULEIO_WRITE_NOTICE_H
3
4#include <fstream>
5#include <string>
6
7#include "spin_tag.h"
8
9namespace ModuleIO
10{
11
21inline void write_notice(std::ofstream& ofs_running,
22 const std::string& property,
23 const std::string& file_name)
24{
25 ofs_running << " Write " << property << " to file: " << file_name << std::endl;
26}
27
35inline void write_notice(std::ofstream& ofs_running,
36 const std::string& property,
37 const int is,
38 const int nspin,
39 const std::string& file_name)
40{
41 ofs_running << " Write " << property << make_spin_tag(is, nspin) << " to file: " << file_name << std::endl;
42}
43
49inline void write_matrix_notice(std::ofstream& ofs_running,
50 const std::string& property,
51 const std::string& file_name)
52{
53 ofs_running << " Write " << property << " matrix in NAO basis to file: " << file_name << std::endl;
54}
55
63inline void write_matrix_notice(std::ofstream& ofs_running,
64 const std::string& property,
65 const int is,
66 const int nspin,
67 const std::string& file_name)
68{
69 ofs_running << " Write " << property << make_spin_tag(is, nspin)
70 << " matrix in NAO basis to file: " << file_name << std::endl;
71}
72
73} // namespace ModuleIO
74
75#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_matrix_notice(std::ofstream &ofs_running, const std::string &property, const std::string &file_name)
Announce a written NAO-basis matrix file in the running log.
Definition write_notice.h:49
void write_notice(std::ofstream &ofs_running, const std::string &property, const std::string &file_name)
Announce a written output file in the running log.
Definition write_notice.h:21
std::string make_spin_tag(const int is, const int nspin)
Definition spin_tag.h:12