ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
global_file.h
Go to the documentation of this file.
1//==========================================================
2// AUTHOR : mohan
3// DATE : 2008-11-10
4// LAST UPDATE : 2009-03-23 mohan add modify make_dir_out
5//==========================================================
6#ifndef GLOBAL_FILE_H
7#define GLOBAL_FILE_H
8
9#include <cstdlib>
10#include <string>
11#include <fstream>
12#include <iostream>
13#include <iomanip>
14
15//==========================================================
16// namespace : Global_File_Operation
17//==========================================================
18namespace ModuleBase
19{
20namespace Global_File
21{
22 // called in input.cpp, after reading parameters.
23 void make_dir_out(const std::string &suffix,
24 const std::string &calculation,
25 const bool &out_dir,
26 const bool &out_wfc_dir,
27 const int rank,
28 const bool &restart,
29 const bool out_alllog = false);
30
31 void make_dir_atom(const std::string &label);
32 void open_log ( std::ofstream &ofs, const std::string &fn, const std::string &calculation, const bool &restart);
33 void close_log( std::ofstream &ofs, const std::string &fn);
34 void close_all_log(const int rank, const bool out_alllog = false, const std::string& calculation = "md");
35}
36}
37#endif
38
void open_log(std::ofstream &ofs, const std::string &fn, const std::string &calculation, const bool &restart)
Definition global_file.cpp:320
void make_dir_out(const std::string &suffix, const std::string &calculation, const bool &out_dir, const bool &out_wfc_dir, const int rank, const bool &restart, const bool out_alllog=false)
Definition read_input_test.cpp:33
void close_all_log(const int rank, const bool out_alllog=false, const std::string &calculation="md")
Definition global_file.cpp:352
void close_log(std::ofstream &ofs, const std::string &fn)
Definition global_file.cpp:342
void make_dir_atom(const std::string &label)
Definition global_file.cpp:309
Definition array_pool.h:6