(git:8917686)
Loading...
Searching...
No Matches
rt_bse_io.F File Reference

Go to the source code of this file.

Modules

module  rt_bse_io
 Input/output from the propagation via RT-BSE method.
 

Functions/Subroutines

subroutine, public rt_bse_io::print_rtbse_header_info (rtbse_env)
 Writes the header and basic info to the standard output.
 
subroutine, public rt_bse_io::print_etrs_info (rtbse_env, step, metric)
 Writes the update after single etrs iteration - only for log level > medium.
 
subroutine, public rt_bse_io::print_etrs_info_header (rtbse_env)
 Writes the header for the etrs iteration updates - only for log level > medium.
 
subroutine, public rt_bse_io::print_timestep_info (rtbse_env, step, electron_num_re, convergence, etrs_num, step_walltime)
 Writes the summary line of a completed propagation timestep.
 
subroutine, public rt_bse_io::output_mos_contravariant (rtbse_env, rho, print_key_section)
 Outputs the matrix in MO basis for matrix coefficients corresponding to contravariant operator, i.e. density matrix.
 
subroutine, public rt_bse_io::output_mos_covariant (rtbse_env, ham, print_key_section)
 Outputs the matrix in MO basis for matrix components corresponding to covariant representation, i.e. the Hamiltonian matrix.
 
subroutine, public rt_bse_io::output_field (rtbse_env, append_opt)
 Prints the current field components into a file provided by input.
 
subroutine, public rt_bse_io::read_field (rtbse_env)
 Reads the field from the files provided by input - useful for the continuation run.
 
subroutine, public rt_bse_io::output_moments (rtbse_env, rho)
 Outputs the expectation value of moments from a given density matrix.
 
subroutine, public rt_bse_io::output_restart (rtbse_env, rho, time_index)
 Outputs the restart info (last finished iteration step) + restard density matrix.
 
subroutine, public rt_bse_io::read_restart (rtbse_env)
 Reads the density matrix from restart files and updates the starting time.
 
subroutine, public rt_bse_io::output_restart_linearized (rtbse_env, rho)
 Linearized RT-BSE restart writer. Writes the restart set: lab-frame MO-active density matrices, the .info step index (sim_step = steps completed = the resume step), the once-per-run C_active gauge reference, and the appended RESTART.trace record feeding the FT prefix on continuation. All indices derive from sim_step so the .info/.trace bookkeeping cannot drift apart. (Full RTBSE uses the upstream output_restart above.)
 
subroutine, public rt_bse_io::read_restart_info (rtbse_env)
 Early phase of the restart read: the starting step index from the .info file, the original run's dt peeked from the RESTART.trace header (so ENFORCE_MAX_DT can inherit it), and an SCF_GUESS hygiene check. Runs BEFORE initialize_maximum_timestep; the trace prefix records are loaded separately by read_restart_trace once the trace arrays are sized.
 
subroutine, public rt_bse_io::read_restart_trace (rtbse_env)
 Reads the RESTART.trace prefix (records 1..sim_start) into the in-memory moment/field/ time traces so the continuation FT covers the full history. Header guards: version, n_spin, dims, dt (abort); kick params (warn); eps_active > 0.1 meV (warn). All ranks read (the traces are replicated). Record layout matches write_restart_trace verbatim.
 
subroutine, public rt_bse_io::check_restart_eps_consistency (rtbse_env)
 Compares the original run's active eigenvalues (stashed by read_restart_trace) against the recomputed eps_active, once the Hamiltonian is built. Prints the max deviation and warns above 0.1 meV (GW analytic continuation gives run-to-run QP noise above FP, so the threshold is deliberately loose). Frees the stash. No-op if nothing was stashed.
 
subroutine, public rt_bse_io::read_restart_density (rtbse_env)
 Late phase of the restart read: overwrites rho from the lab-frame restart matrices and sets restart_extracted. MO-active for the linearized path, AO otherwise (cp_fm_read_unformatted aborts on a size mismatch, guarding a changed active window).
 
subroutine, public rt_bse_io::read_restart_c (rtbse_env, c_old, found)
 Reads the previous run's C_active slabs (gauge reference for the restart basis bridge).