#include <read_input.h>
◆ ReadInput()
ModuleIO::ReadInput::ReadInput |
( |
const int & |
rank | ) |
|
◆ ~ReadInput()
ModuleIO::ReadInput::~ReadInput |
( |
| ) |
|
|
inline |
◆ add_item()
void ModuleIO::ReadInput::add_item |
( |
const Input_Item & |
item | ) |
|
|
private |
add item to input list
- Parameters
-
◆ check_ntype()
void ModuleIO::ReadInput::check_ntype |
( |
const std::string & |
fn, |
|
|
int & |
param_ntype |
|
) |
| |
|
private |
count_nype from STRU file
◆ clear()
void ModuleIO::ReadInput::clear |
( |
| ) |
|
|
inline |
◆ create_directory()
void ModuleIO::ReadInput::create_directory |
( |
const Parameter & |
param | ) |
|
Create a directory for output files.
- Parameters
-
param | parameters of ABACUS |
◆ current_md_step()
int ModuleIO::ReadInput::current_md_step |
( |
const std::string & |
file_dir | ) |
|
|
private |
determine the md step in restart case
- Parameters
-
file_dir | directory of Restart_md.dat |
- Returns
- md step
◆ item_deepks()
void ModuleIO::ReadInput::item_deepks |
( |
| ) |
|
|
private |
◆ item_dftu()
void ModuleIO::ReadInput::item_dftu |
( |
| ) |
|
|
private |
◆ item_elec_stru()
void ModuleIO::ReadInput::item_elec_stru |
( |
| ) |
|
|
private |
◆ item_exx()
void ModuleIO::ReadInput::item_exx |
( |
| ) |
|
|
private |
◆ item_lcao()
void ModuleIO::ReadInput::item_lcao |
( |
| ) |
|
|
private |
◆ item_lr_tddft()
void ModuleIO::ReadInput::item_lr_tddft |
( |
| ) |
|
|
private |
◆ item_md()
void ModuleIO::ReadInput::item_md |
( |
| ) |
|
|
private |
◆ item_model()
void ModuleIO::ReadInput::item_model |
( |
| ) |
|
|
private |
◆ item_ofdft()
void ModuleIO::ReadInput::item_ofdft |
( |
| ) |
|
|
private |
◆ item_others()
void ModuleIO::ReadInput::item_others |
( |
| ) |
|
|
private |
◆ item_output()
void ModuleIO::ReadInput::item_output |
( |
| ) |
|
|
private |
◆ item_postprocess()
void ModuleIO::ReadInput::item_postprocess |
( |
| ) |
|
|
private |
◆ item_relax()
void ModuleIO::ReadInput::item_relax |
( |
| ) |
|
|
private |
◆ item_rt_tddft()
void ModuleIO::ReadInput::item_rt_tddft |
( |
| ) |
|
|
private |
◆ item_sdft()
void ModuleIO::ReadInput::item_sdft |
( |
| ) |
|
|
private |
◆ item_system()
void ModuleIO::ReadInput::item_system |
( |
| ) |
|
|
private |
◆ read_parameters()
void ModuleIO::ReadInput::read_parameters |
( |
Parameter & |
param, |
|
|
const std::string & |
filename_in |
|
) |
| |
read in parameters from input file
- Parameters
-
param | parameters of ABACUS |
filename_in | read INPUT file name |
◆ read_txt_input()
void ModuleIO::ReadInput::read_txt_input |
( |
Parameter & |
param, |
|
|
const std::string & |
filename |
|
) |
| |
|
private |
read INPUT file of txt format
- Parameters
-
param | parameters of ABACUS |
filename | INPUT |
◆ set_global_dir()
set System_para according to input parameters INPUT and STRU need to refer to each other in ABACUS, so it is necessary to obtain the file paths related to all inputs
- Note
- Here para.inp has not been synchronized of all ranks. Only para.inp in rank 0 is right. So we need to broadcast the results to all ranks.
caculate the global output directory
get the global output directory
get the global output directory
get the global output directory
get the global ML KEDF descriptor directory
get the global directory for DeePKS labels during electronic steps
get the global readin directory
get the stru file for md restart case
◆ set_globalv()
- Note
- Here para.inp has been synchronized of all ranks. All para.inp have the same value.
caculate the gamma_only_pw and gamma_only_local
set deepks_setorb
set the noncolin and lspinorb from nspin
set ncx,ncy,ncz
set ks_run
◆ write_parameters()
void ModuleIO::ReadInput::write_parameters |
( |
const Parameter & |
param, |
|
|
const std::string & |
filename_out |
|
) |
| |
write out parameters to output file
- Parameters
-
param | parameters of ABACUS |
filename_out | write output file name |
◆ write_txt_input()
void ModuleIO::ReadInput::write_txt_input |
( |
const Parameter & |
param, |
|
|
const std::string & |
filename |
|
) |
| |
|
private |
write INPUT file of txt format
- Parameters
-
param | parameters of ABACUS |
filename | output file name |
◆ bcastfuncs
std::vector<std::function<void(Parameter&)> > ModuleIO::ReadInput::bcastfuncs |
|
private |
◆ check_mode
bool ModuleIO::ReadInput::check_mode = false |
|
static |
◆ check_ntype_flag
bool ModuleIO::ReadInput::check_ntype_flag = true |
check ntype from STRU file
◆ input_lists
std::vector<std::pair<std::string, Input_Item> > ModuleIO::ReadInput::input_lists |
|
private |
◆ rank
int ModuleIO::ReadInput::rank = 0 |
|
private |
◆ readvalue_items
std::vector<Input_Item*> ModuleIO::ReadInput::readvalue_items |
|
private |
The documentation for this class was generated from the following files: