MPI-SCATCI
2.0
An MPI version of SCATCI
|
Write matrix module. More...
Data Types | |
type | writermatrix |
Matrix associated with a disk drive. More... | |
Functions/Subroutines | |
integer function | get_matrix_unit (this) |
Return Hamiltonian disk file unit. More... | |
subroutine | set_options_writer (this, option_val) |
Initialize the matrix cache using the Options object. More... | |
subroutine | get_matelem_writer (this, idx, i, j, coeff) |
Not implemented. More... | |
subroutine | write_cache_to_unit (this) |
Write matrix chunk to file. More... | |
logical function | insert_into_write_cache (this, row, column, coefficient) |
Insert matrix element. More... | |
subroutine | finalize_matrix_writer (this) |
Write Hamiltonian to disk. More... | |
subroutine | print_writer (this) |
Print matrix to standard output. More... | |
subroutine | clear_writer (this) |
Clear matrix. More... | |
subroutine | destroy_writer (this) |
Destroy matrix. More... | |
Write matrix module.
Defines the WriterMatrix type which is responsible for writing the Hamiltonian matrix to a disk file. This matrix type is used by all serial diagonalizers.
|
private |
Clear matrix.
Clears matrix element cache.
Definition at line 239 of file WriterMatrix_module.f90.
|
private |
|
private |
Write Hamiltonian to disk.
Uses SCATCI subroutine WRTEM to write Hamiltonian matrix to its disk file unit. Also, appends a dummy finalizing record at the end of the file.
Definition at line 202 of file WriterMatrix_module.f90.
|
private |
|
private |
|
private |
Insert matrix element.
This inserts an element into the hard storage which is considered the final location before diagonalization. It also checks wherther the element exists within the allowed range and tells us if it was successfully inserted. Elements smaller than a specific threshold will be ignored. When the limit size of the cache is reached, it is emptied (appended) to the Hamiltonian disk file.
Definition at line 158 of file WriterMatrix_module.f90.
|
private |
|
private |
Initialize the matrix cache using the Options object.
Definition at line 93 of file WriterMatrix_module.f90.
|
private |
Write matrix chunk to file.
Unless the element cache is empty, this subroutine flushes the elements in cache to the Hamiltonian disk file unit as a new record. The matrix element cache is empty on return from this subroutine.
Definition at line 132 of file WriterMatrix_module.f90.