ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | Private Member Functions | List of all members
Restart Class Reference

#include <restart.h>

Collaboration diagram for Restart:

Classes

struct  Info_Load
 
struct  Info_Save
 

Public Member Functions

template<typename T >
bool save_disk (const std::string label, const int index, const int size, T *data, const bool error_quit=true) const
 
template<typename T >
bool load_disk (const std::string label, const int index, const int size, T *data, const bool error_quit=true) const
 

Public Attributes

Info_Save info_save
 
Info_Load info_load
 
std::string folder
 

Private Member Functions

void write_file1 (const std::string &file_name, const void *const ptr, const size_t size) const
 
void read_file1 (const std::string &file_name, void *const ptr, const size_t size) const
 
bool write_file2 (const std::string &file_name, const void *const ptr, const size_t size, const bool error_quit=true) const
 
bool read_file2 (const std::string &file_name, void *const ptr, const size_t size, const bool error_quit=true) const
 

Member Function Documentation

◆ load_disk()

template<typename T >
bool Restart::load_disk ( const std::string  label,
const int  index,
const int  size,
T data,
const bool  error_quit = true 
) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_file1()

void Restart::read_file1 ( const std::string &  file_name,
void *const  ptr,
const size_t  size 
) const
private

◆ read_file2()

bool Restart::read_file2 ( const std::string &  file_name,
void *const  ptr,
const size_t  size,
const bool  error_quit = true 
) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ save_disk()

template<typename T >
bool Restart::save_disk ( const std::string  label,
const int  index,
const int  size,
T data,
const bool  error_quit = true 
) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_file1()

void Restart::write_file1 ( const std::string &  file_name,
const void *const  ptr,
const size_t  size 
) const
private

◆ write_file2()

bool Restart::write_file2 ( const std::string &  file_name,
const void *const  ptr,
const size_t  size,
const bool  error_quit = true 
) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ folder

std::string Restart::folder

◆ info_load

Info_Load Restart::info_load

◆ info_save

Info_Save Restart::info_save

The documentation for this class was generated from the following files: