Skip to content

Commit

Permalink
remove a non-used parameter in
Browse files Browse the repository at this point in the history
  • Loading branch information
maki49 committed Apr 21, 2024
1 parent 6840f52 commit 2f247a5
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 18 deletions.
10 changes: 5 additions & 5 deletions source/module_hamilt_lcao/module_gint/gint_fvl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void Gint::gint_kernel_force(
else
{
Gint_Tools::mult_psi_DMR(*this->gridt, this->bxyz, grid_index, na_grid, block_index, block_size, cal_flag,
psir_vlbr3.ptr_2D, psir_vlbr3_DM.ptr_2D, DM_in[GlobalV::CURRENT_SPIN], this->DMRGint[is], false);
psir_vlbr3.ptr_2D, psir_vlbr3_DM.ptr_2D, this->DMRGint[is], false);
}

if(isforce)
Expand Down Expand Up @@ -223,16 +223,16 @@ void Gint::gint_kernel_force_meta(
else
{
Gint_Tools::mult_psi_DMR(*this->gridt, this->bxyz, grid_index, na_grid, block_index, block_size, cal_flag,
psir_vlbr3.ptr_2D, psir_vlbr3_DM.ptr_2D, DM_in[GlobalV::CURRENT_SPIN], this->DMRGint[is], false);
psir_vlbr3.ptr_2D, psir_vlbr3_DM.ptr_2D, this->DMRGint[is], false);

Gint_Tools::mult_psi_DMR(*this->gridt, this->bxyz, grid_index, na_grid, block_index, block_size, cal_flag,
dpsir_x_vlbr3.ptr_2D, dpsirx_v_DM.ptr_2D, DM_in[GlobalV::CURRENT_SPIN], this->DMRGint[is], false);
dpsir_x_vlbr3.ptr_2D, dpsirx_v_DM.ptr_2D, this->DMRGint[is], false);

Gint_Tools::mult_psi_DMR(*this->gridt, this->bxyz, grid_index, na_grid, block_index, block_size, cal_flag,
dpsir_y_vlbr3.ptr_2D, dpsiry_v_DM.ptr_2D, DM_in[GlobalV::CURRENT_SPIN], this->DMRGint[is], false);
dpsir_y_vlbr3.ptr_2D, dpsiry_v_DM.ptr_2D, this->DMRGint[is], false);

Gint_Tools::mult_psi_DMR(*this->gridt, this->bxyz, grid_index, na_grid, block_index, block_size, cal_flag,
dpsir_z_vlbr3.ptr_2D, dpsirz_v_DM.ptr_2D, DM_in[GlobalV::CURRENT_SPIN], this->DMRGint[is], false);
dpsir_z_vlbr3.ptr_2D, dpsirz_v_DM.ptr_2D, this->DMRGint[is], false);
}

if(isforce)
Expand Down
2 changes: 1 addition & 1 deletion source/module_hamilt_lcao/module_gint/gint_gamma.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Gint_Gamma : public Gint

private:

double*** DM; //pointer to LOC.DM
double*** DM = nullptr; //pointer to LOC.DM

///------------------------------------------------------
/// in gint_gamma_vl.cpp
Expand Down
3 changes: 1 addition & 2 deletions source/module_hamilt_lcao/module_gint/gint_rho.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ void Gint::gint_kernel_rho(
block_index, block_size,
cal_flag,
psir_ylm.ptr_2D,
psir_DM.ptr_2D,
inout->DM_R[is],
psir_DM.ptr_2D,
this->DMRGint[is],
inout->if_symm);
}
Expand Down
9 changes: 3 additions & 6 deletions source/module_hamilt_lcao/module_gint/gint_tau.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,26 +102,23 @@ void Gint::gint_kernel_tau(
block_index, block_size,
cal_flag,
dpsir_ylm_x.ptr_2D,
dpsix_DM.ptr_2D,
inout->DM_R[is],
dpsix_DM.ptr_2D,
this->DMRGint[is],
1);
Gint_Tools::mult_psi_DMR(
*this->gridt, this->bxyz, grid_index, na_grid,
block_index, block_size,
cal_flag,
dpsir_ylm_y.ptr_2D,
dpsiy_DM.ptr_2D,
inout->DM_R[is],
dpsiy_DM.ptr_2D,
this->DMRGint[is],
1);
Gint_Tools::mult_psi_DMR(
*this->gridt, this->bxyz, grid_index, na_grid,
block_index, block_size,
cal_flag,
dpsir_ylm_z.ptr_2D,
dpsiz_DM.ptr_2D,
inout->DM_R[is],
dpsiz_DM.ptr_2D,
this->DMRGint[is],
1);
}
Expand Down
3 changes: 1 addition & 2 deletions source/module_hamilt_lcao/module_gint/gint_tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1131,8 +1131,7 @@ namespace Gint_Tools
const int*const block_size,
bool** cal_flag,
double** psi,
double ** psi_DMR,
double* DMR,
double** psi_DMR,
const hamilt::HContainer<double>* DM,
const bool if_symm)
{
Expand Down
3 changes: 1 addition & 2 deletions source/module_hamilt_lcao/module_gint/gint_tools.h
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,7 @@ namespace Gint_Tools
const int*const block_size,
bool** cal_flag,
double** psi,
double** psi_DMR,
double* DMR,
double** psi_DMR,
const hamilt::HContainer<double>* DM,
const bool if_symm);

Expand Down

0 comments on commit 2f247a5

Please sign in to comment.