Dice Fortran Backend Documentation
|
Contains routines that read the input file params.txt. More...
Functions/Subroutines | |
subroutine | read_control (p_system, run_equil, run_restart, write_restart, restart_num, write_chains, write_log) |
Reads the CONTROL namelist in params.txt and assigns its data to the corresponding global variables defined in the shared_data module. More... | |
subroutine | read_qho (QHO) |
Reads the PARAMETER namelist in params.txt for the QHO system. Assigns the input data to the corresponding variables in the QHO derived type. More... | |
subroutine | read_h2plus (H2plus) |
Reads the PARAMETER namelist in params.txt for the H2 ion system. Assigns the input data to the corresponding variables in the QHO derived type. More... | |
subroutine | read_h2 (H2) |
Reads the PARAMETER namelist in params.txt for the H2 molecule system. Assigns the input data to the corresponding variables in the QHO derived type. More... | |
subroutine | read_inputs () |
Main input parser function that reads the input file params.txt and calls the required namelist parser subroutines, depending on the system. More... | |
Contains routines that read the input file params.txt.
Contains subroutines to read the CONTROL namelist and the PARAMETERS namelist for each system respectively. Includes a driver function that handles the input file params.txt. For restart runs, the driver function also ensures that the RESTART namelist from, restart file res_nml.txt, is read into the program.
subroutine input_parser::read_control | ( | character(len=10), intent(out) | p_system, |
logical, intent(out) | run_equil, | ||
logical, intent(out) | run_restart, | ||
logical, intent(out) | write_restart, | ||
integer(int32), intent(out) | restart_num, | ||
logical, intent(out) | write_chains, | ||
logical, intent(out) | write_log | ||
) |
Reads the CONTROL namelist in params.txt and assigns its data to the corresponding global variables defined in the shared_data module.
[out] | p_system | System of interest: QHO, H2plus, H2 |
[out] | run_equil | Tag for equilibration runs |
[out] | run_restart | Tag for restart runs |
[out] | write_restart | Tag for writing restart files |
[out] | restart_num | Interval of MMC loops between writing restart files |
[out] | write_chains | Tag to write final MMC chains |
[out] | write_log | Tag to write logfile |
Definition at line 48 of file input_parser.f90.
subroutine input_parser::read_qho | ( | type(qho_type), intent(out) | QHO | ) |
Reads the PARAMETER namelist in params.txt for the QHO system. Assigns the input data to the corresponding variables in the QHO derived type.
[in] | QHO | Instance of QHO_type, to store input parameter values |
Definition at line 77 of file input_parser.f90.
subroutine input_parser::read_h2plus | ( | type(h2plus_type), intent(out) | H2plus | ) |
Reads the PARAMETER namelist in params.txt for the H2 ion system. Assigns the input data to the corresponding variables in the QHO derived type.
[in] | QHO | Instance of QHO_type, to store input parameter values |
Definition at line 104 of file input_parser.f90.
subroutine input_parser::read_h2 | ( | type(h2_type), intent(out) | H2 | ) |
Reads the PARAMETER namelist in params.txt for the H2 molecule system. Assigns the input data to the corresponding variables in the QHO derived type.
[in] | QHO | Instance of QHO_type, to store input parameter values |
Definition at line 131 of file input_parser.f90.
subroutine input_parser::read_inputs |
Main input parser function that reads the input file params.txt and calls the required namelist parser subroutines, depending on the system.
This subroutine also sets the default parameters for equilibration runs, and calls the restart namelist reader when required.
Definition at line 164 of file input_parser.f90.