#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.txt |
- Returns
- md step
◆ get_input_lists()
| const std::vector< std::pair< std::string, Input_Item > > & ModuleIO::ReadInput::get_input_lists |
( |
| ) |
const |
|
inline |
Get all registered input items (for help system).
- Returns
- Reference to the vector of input items
◆ item_bse()
| void ModuleIO::ReadInput::item_bse |
( |
| ) |
|
|
private |
◆ item_deepks()
| void ModuleIO::ReadInput::item_deepks |
( |
| ) |
|
|
private |
◆ item_dfpt()
| void ModuleIO::ReadInput::item_dfpt |
( |
| ) |
|
|
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_sccs()
| void ModuleIO::ReadInput::item_sccs |
( |
| ) |
|
|
private |
◆ item_sdft()
| void ModuleIO::ReadInput::item_sdft |
( |
| ) |
|
|
private |
◆ item_system()
| void ModuleIO::ReadInput::item_system |
( |
| ) |
|
|
private |
◆ item_tdofdft()
| void ModuleIO::ReadInput::item_tdofdft |
( |
| ) |
|
|
private |
◆ normalize_hs_output_options()
| void ModuleIO::ReadInput::normalize_hs_output_options |
( |
Parameter & | param | ) |
|
|
private |
Resolve the primary H/S output options and their legacy aliases.
This is called after all INPUT values have been read so that the result does not depend on the order of keywords in the INPUT file.
◆ normalize_occ_mat_options()
| void ModuleIO::ReadInput::normalize_occ_mat_options |
( |
Parameter & | param | ) |
|
|
private |
Resolve init_occ_mat and its legacy alias omc.
This is called after all INPUT values have been read so that the result does not depend on the order of keywords in the INPUT file.
◆ normalize_out_eband_alias()
| void ModuleIO::ReadInput::normalize_out_eband_alias |
( |
Parameter & | param | ) |
|
|
private |
Resolve out_eband and its legacy alias out_eband_terms.
This is called after all INPUT values have been read so that the result does not depend on the order of keywords in the INPUT file.
◆ normalize_td_output_frequency()
| void ModuleIO::ReadInput::normalize_td_output_frequency |
( |
Parameter & | param | ) |
|
|
private |
Resolve out_freq_td, the legacy RT-TDDFT alias of out_freq_ion.
This is called after all INPUT values have been read so that the result does not depend on the order of keywords in the INPUT file.
- Parameters
-
| param | parameters of ABACUS |
◆ prepare_input()
| std::string ModuleIO::ReadInput::prepare_input |
( |
Parameter & | param | ) |
|
|
private |
Validate explicit domains, read values, resolve defaults and validate resolved domains. Return diagnostics before entering the calculation.
◆ 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()
| std::string 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 |
- Returns
- Empty on success, otherwise shared input-validation diagnostics.
◆ 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
Set subdirectories based on out_app_flag out_app_flag == 2: use unified uppercase subdirectories otherwise: keep backward-compatible behavior (all point to global_out_dir) The structure subdirectory is named STRUC (not STRU) so it cannot be confused with the STRU input file.
Map legacy directory names to new unified names WFC -> PSI, matrix -> MAT
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:
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/module_parameter/read_input.h
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/module_parameter/read_inp_bse.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/module_parameter/read_inp_deepks.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/module_parameter/read_inp_dfpt.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/module_parameter/read_inp_estruc.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/module_parameter/read_inp_exx_dftu.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/module_parameter/read_inp_model.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/module_parameter/read_inp_ofdft.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/module_parameter/read_inp_other.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/module_parameter/read_inp_out.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/module_parameter/read_inp_postproc.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/module_parameter/read_inp_relax.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/module_parameter/read_inp_sccs.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/module_parameter/read_inp_sys.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/module_parameter/read_inp_tddft.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/module_parameter/read_input.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/module_parameter/read_input_item_md.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/module_parameter/read_input_item_sdft.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_io/module_parameter/read_set_globalv.cpp