Read simulation parameters from a namelist file.
Each namelist group in the file is optional. Missing groups keep the
default values defined in config_t. If the file itself cannot be
opened (e.g. not found), a warning is printed and all defaults are kept.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | filename |
Path to the namelist input file. |
||
| type(config_t), | intent(out) | :: | cfg |
Populated configuration object. |
||
| logical, | intent(out), | optional | :: | is_ok | ||
| character(len=*), | intent(out), | optional | :: | message |
| Name | Type | Default | Description |
|---|---|---|---|
| dt | real(kind=wp) | None | |
| time_start | real(kind=wp) | None | |
| time_stop | real(kind=wp) | None | |
| cfl | real(kind=wp) | None | |
| lapack_solver | logical | None |
| Name | Type | Default | Description |
|---|---|---|---|
| flux_scheme | character(len=64) | None | |
| recon_scheme | character(len=64) | None | |
| time_scheme | character(len=64) | None | |
| char_proj | character(len=8) | None | |
| limiter | character(len=32) | None | |
| use_positivity_limiter | logical | None | |
| use_hybrid_recon | logical | None | |
| hybrid_sensor | character(len=32) | None | |
| hybrid_sensor_threshold | real(kind=wp) | None |
| Name | Type | Default | Description |
|---|---|---|---|
| problem_type | character(len=64) | None | |
| ic_file | character(len=256) | None | |
| ic_interp | logical | None | |
| ic_udf_src | character(len=256) | None | |
| bc_left | character(len=32) | None | |
| bc_right | character(len=32) | None | |
| p_ref_left | real(kind=wp) | None | |
| p_ref_right | real(kind=wp) | None | |
| sigma_nrbc | real(kind=wp) | None | |
| nrbc_mode | character(len=32) | None | |
| u_ref_left | real(kind=wp) | None | |
| u_ref_right | real(kind=wp) | None | |
| rho_ref_left | real(kind=wp) | None | |
| rho_ref_right | real(kind=wp) | None | |
| sigma_nrbc_entropy | real(kind=wp) | None | |
| p_stag_left | real(kind=wp) | None | |
| rho_stag_left | real(kind=wp) | None | |
| p_stag_right | real(kind=wp) | None | |
| rho_stag_right | real(kind=wp) | None | |
| p_back_left | real(kind=wp) | None | |
| p_back_right | real(kind=wp) | None | |
| neumann_grad_left | real(kind=wp) | None | |
| neumann_grad_right | real(kind=wp) | None | |
| rho_left | real(kind=wp) | None | |
| u_left | real(kind=wp) | None | |
| p_left | real(kind=wp) | None | |
| rho_right | real(kind=wp) | None | |
| u_right | real(kind=wp) | None | |
| p_right | real(kind=wp) | None | |
| x_diaphragm | real(kind=wp) | None |
| Name | Type | Default | Description |
|---|---|---|---|
| output_file | character(len=256) | None | |
| print_freq | integer | None | |
| do_timing | logical | None | |
| verbosity | integer | None | |
| log_file | character(len=256) | None | |
| snapshot_freq | integer | None | |
| snapshot_file | character(len=256) | None |
| Name | Type | Default | Description |
|---|---|---|---|
| checkpoint_freq | integer | None | |
| checkpoint_file | character(len=256) | None | |
| restart_file | character(len=256) | None |