![]() |
(git:27c966b)
|
Implements simple k-space/R-space transformations and Gamma-point MIC reconstruction. More...
Functions/Subroutines | |
| subroutine, public | replicate_rs_matrices (rs_dbcsr_in, kpoint_in, rs_array_out, cell_to_index_out) |
| Convert dbcsr matrices representing operators in real-space image cells to arrays. | |
| subroutine, public | rs_to_kp (rs_real, ks_complex, index_to_cell, xkp, deriv_direction, hmat) |
| Integrate RS matrices (stored as Fortran array) into a kpoint matrix at given kp. | |
| subroutine, public | fm_gamma_to_kp (cfm_kp, fm_gamma, cell, particle_set, atom_from_bf, index_to_cell, xkp) |
| Reconstruct a complex k-point matrix from a real Gamma matrix using one MIC phase. Among images within 1.0E-6 of the minimum distance, select the last candidate in index_to_cell order whose lattice coordinates lie between -1 and 1. | |
| subroutine, public | fm_rs_to_kp (cfm_kp, fm_rs, kpoints, ikp) |
| Transforms array of fm RS matrices into cfm k-space matrix, at given kpoint index. | |
| subroutine, public | add_kp_to_all_rs (array_kp, array_rs, kpoints, ikp, index_to_cell_ext) |
| Adds given kpoint matrix to all rs matrices. | |
| subroutine, public | fm_add_kp_to_all_rs (cfm_kp, fm_rs, kpoints, ikp) |
| Adds given kpoint matrix to a single rs matrix. | |
| subroutine, public | add_kp_to_rs (array_kp, array_rs, cell, kpoints, ikp) |
| Adds given kpoint matrix to a single rs matrix. | |
Implements simple k-space/R-space transformations and Gamma-point MIC reconstruction.
| subroutine, public kpoint_k_r_trafo_simple::replicate_rs_matrices | ( | type(dbcsr_p_type), dimension(:, :), pointer | rs_dbcsr_in, |
| type(kpoint_type), pointer | kpoint_in, | ||
| real(kind=dp), dimension(:, :, :, :) | rs_array_out, | ||
| integer, dimension(:, :, :), pointer | cell_to_index_out ) |
Convert dbcsr matrices representing operators in real-space image cells to arrays.
| rs_dbcsr_in | Array of dbcsr matrices |
| kpoint_in | The kpoint environment of the source matrix (providing neighbor list and cell_to_index) |
| rs_array_out | Multidimensional array - matrices are duplicated on each MPI rank dim 1 : spin, dim 2 : rows, dim 3 : cols, dim 4 : image index |
| cell_to_index_out | Cell to index array for the destination array |
Definition at line 69 of file kpoint_k_r_trafo_simple.F.
| subroutine, public kpoint_k_r_trafo_simple::rs_to_kp | ( | real(kind=dp), dimension(:, :, :), intent(in) | rs_real, |
| complex(kind=dp), dimension(:, :), intent(out) | ks_complex, | ||
| integer, dimension(:, :), pointer | index_to_cell, | ||
| real(kind=dp), dimension(3), intent(in) | xkp, | ||
| integer, intent(in), optional | deriv_direction, | ||
| real(kind=dp), dimension(3, 3), intent(in), optional | hmat ) |
Integrate RS matrices (stored as Fortran array) into a kpoint matrix at given kp.
| rs_real | Multidimensional array of real parts of the matrix, dim 1 : rows, dim 2 : cols, dim 3 : image index |
| ks_complex | Target complex k-space matrix |
| index_to_cell | Gets the image cell coordinates from the rs_dbcsr index |
| xkp | Single kpoint where the transformation is evalued at |
| deriv_direction | Derivative direction - indicates along which cartesian direction to take the derivative |
| hmat | Cell size matrix, required for the derivative |
Definition at line 240 of file kpoint_k_r_trafo_simple.F.
| subroutine, public kpoint_k_r_trafo_simple::fm_gamma_to_kp | ( | type(cp_cfm_type), intent(inout) | cfm_kp, |
| type(cp_fm_type), intent(in) | fm_gamma, | ||
| type(cell_type), intent(in), pointer | cell, | ||
| type(particle_type), dimension(:), intent(in) | particle_set, | ||
| integer, dimension(:), intent(in) | atom_from_bf, | ||
| integer, dimension(:, :), intent(in) | index_to_cell, | ||
| real(kind=dp), dimension(3), intent(in) | xkp ) |
Reconstruct a complex k-point matrix from a real Gamma matrix using one MIC phase. Among images within 1.0E-6 of the minimum distance, select the last candidate in index_to_cell order whose lattice coordinates lie between -1 and 1.
| cfm_kp | Complex output, with the same distributed layout as fm_gamma. |
| fm_gamma | Real Gamma matrix. |
| cell | Simulation cell. |
| particle_set | Atom positions defining the minimum images. |
| atom_from_bf | Atom index of each row/column basis function. |
| index_to_cell | Candidate lattice translations, indexed (direction, image). |
| xkp | Target k-point in reciprocal-cell coordinates. |
Definition at line 282 of file kpoint_k_r_trafo_simple.F.
| subroutine, public kpoint_k_r_trafo_simple::fm_rs_to_kp | ( | type(cp_cfm_type) | cfm_kp, |
| type(cp_fm_type), dimension(:) | fm_rs, | ||
| type(kpoint_type), pointer | kpoints, | ||
| integer | ikp ) |
Transforms array of fm RS matrices into cfm k-space matrix, at given kpoint index.
| cfm_kp | The resulting complex fm matrix, containing the k-space matrix elements |
| fm_rs | The real space matrix array |
| kpoints | Structure containing information about number, positions, weights etc. of kpoints |
| ikp | Index of the target kpoint at which the transformation is evaluated |
Definition at line 365 of file kpoint_k_r_trafo_simple.F.
| subroutine, public kpoint_k_r_trafo_simple::add_kp_to_all_rs | ( | complex(kind=dp), dimension(:, :) | array_kp, |
| real(kind=dp), dimension(:, :, :) | array_rs, | ||
| type(kpoint_type), pointer | kpoints, | ||
| integer | ikp, | ||
| integer, dimension(:, :), optional, pointer | index_to_cell_ext ) |
Adds given kpoint matrix to all rs matrices.
| array_kp | Input k-space matrix array |
| array_rs | Output rs arrays |
| kpoints | Structure containing information about number, positions, weights etc. of kpoints |
| ikp | Index of the target kpoint at which the transformation is evaluated |
| index_to_cell_ext | External supplied index_to_cell |
Definition at line 455 of file kpoint_k_r_trafo_simple.F.
| subroutine, public kpoint_k_r_trafo_simple::fm_add_kp_to_all_rs | ( | type(cp_cfm_type) | cfm_kp, |
| type(cp_fm_type), dimension(:) | fm_rs, | ||
| type(kpoint_type), pointer | kpoints, | ||
| integer | ikp ) |
Adds given kpoint matrix to a single rs matrix.
| cfm_kp | The input complex fm matrix, containing the k-space matrix elements |
| fm_rs | The real space matrix array |
| kpoints | Structure containing information about number, positions, weights etc. of kpoints |
| ikp | Index of the target kpoint at which the transformation is evaluated |
Definition at line 494 of file kpoint_k_r_trafo_simple.F.
| subroutine, public kpoint_k_r_trafo_simple::add_kp_to_rs | ( | complex(kind=dp), dimension(:, :) | array_kp, |
| real(kind=dp), dimension(:, :) | array_rs, | ||
| integer, dimension(3) | cell, | ||
| type(kpoint_type), pointer | kpoints, | ||
| integer | ikp ) |
Adds given kpoint matrix to a single rs matrix.
| array_kp | The resulting complex fm matrix, containing the k-space matrix elements |
| array_rs | The real space matrix array |
| cell | The image cell of the target RS matrix |
| kpoints | Structure containing information about number, positions, weights etc. of kpoints |
| ikp | Index of the target kpoint at which the transformation is evaluated |
Definition at line 528 of file kpoint_k_r_trafo_simple.F.