ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Namespaces | Functions
tool_quit.h File Reference
#include <cassert>
#include <complex>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <string>
#include <valarray>
#include <vector>
Include dependency graph for tool_quit.h:

Go to the source code of this file.

Namespaces

namespace  ModuleBase
 

Functions

void ModuleBase::WARNING (const std::string &file, const std::string &description)
 Print out warning information in warning.log file.
 
void ModuleBase::set_quit_out_dir (const std::string &dir)
 Inject the global output directory used by QUIT/WARNING_QUIT/CHECK_WARNING_QUIT for log path resolution and user-facing messages.
 
void ModuleBase::set_quit_calculation (const std::string &calculation)
 Inject the calculation tag used by CHECK_WARNING_QUIT to compose the fallback log filename ("running_<calculation>.log") when ofs_running is not already open.
 
void ModuleBase::QUIT (void)
 Close .log files and exit.
 
void ModuleBase::QUIT (int ret)
 Close .log files and exit.
 
void ModuleBase::WARNING_QUIT (const std::string &file, const std::string &description)
 Combine the functions of WARNING and QUIT.
 
void ModuleBase::WARNING_QUIT (const std::string &file, const std::string &description, int ret)
 Combine the functions of WARNING and QUIT.
 
void ModuleBase::CHECK_WARNING_QUIT (const bool error, const std::string &file, const std::string &description)
 Check, if true, WARNING_QUIT.