PROGRESS  master
prg_initmatrices_mod.F90
Go to the documentation of this file.
1 
7 
8  use bml
9 
10  implicit none
11 
12  private
13 
14  integer, parameter :: dp = kind(1.0d0)
15 
17 
18 contains
19 
28  subroutine prg_init_hsmat(ham_bml,over_bml,bml_type,mdim,norb)
29  implicit none
30  type(bml_matrix_t), intent (inout) :: ham_bml,over_bml
31  integer, intent(in) :: norb
32  integer, intent(inout) :: mdim
33  character(20) :: bml_type
34 
35  if(mdim < 0)mdim = norb
36  !Allocate bml's
37  call bml_zero_matrix(bml_type,bml_element_real,dp,norb,mdim,ham_bml)
38  call bml_zero_matrix(bml_type,bml_element_real,dp,norb,mdim,over_bml)
39 
40  end subroutine prg_init_hsmat
41 
50  subroutine prg_init_pzmat(rho_bml,zmat_bml,bml_type,mdim,norb)
51  implicit none
52  type(bml_matrix_t), intent (inout) :: rho_bml,zmat_bml
53  integer, intent(in) :: norb
54  integer, intent(inout) :: mdim
55  character(20) :: bml_type
56 
57  if(mdim < 0)mdim = norb
58  !Allocate bml's
59  call bml_zero_matrix(bml_type,bml_element_real,dp,norb,mdim,rho_bml)
60  call bml_zero_matrix(bml_type,bml_element_real,dp,norb,mdim,zmat_bml)
61 
62  end subroutine prg_init_pzmat
63 
72  subroutine prg_init_ortho(orthoh_bml,orthop_bml,bml_type,mdim,norb)
73  implicit none
74  type(bml_matrix_t), intent (inout) :: orthoh_bml,orthop_bml
75  integer, intent(in) :: norb
76  integer, intent(inout) :: mdim
77  character(20) :: bml_type
78 
79  if(mdim < 0)mdim = norb
80  !Allocate bml's
81  call bml_noinit_matrix(bml_type,bml_element_real,dp,norb,mdim,orthoh_bml)
82  call bml_noinit_matrix(bml_type,bml_element_real,dp,norb,mdim,orthop_bml)
83 
84  end subroutine prg_init_ortho
85 
86 end module prg_initmatrices_mod
Initialization module.
subroutine, public prg_init_hsmat(ham_bml, over_bml, bml_type, mdim, norb)
Initialize Hamiltonian and Overlap Matrix.
subroutine, public prg_init_ortho(orthoh_bml, orthop_bml, bml_type, mdim, norb)
Initialize The orthogonal versions of Hamiltonian and Density Matrix.
subroutine, public prg_init_pzmat(rho_bml, zmat_bml, bml_type, mdim, norb)
Initialize Density matrix and Inverse square root Overlap.