ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Namespaces | Functions
tool_quit.cpp File Reference
#include "tool_quit.h"
#include "mpi.h"
#include "global_variable.h"
#include "global_file.h"
#include "timer.h"
#include "memory.h"
Include dependency graph for tool_quit.cpp:

Namespaces

namespace  ModuleBase
 

Functions

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::WARNING (const std::string &file, const std::string &description)
 Print out warning information in warning.log file.
 
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.