Skip to content

Commit 0a69dc1

Browse files
committed
fix bugs
1 parent e1eda2c commit 0a69dc1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

source/module_esolver/lcao_before_scf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ void ESolver_KS_LCAO<TK, TR>::before_scf(UnitCell& ucell, const int istep)
6060
PARAM.inp.test_atom_input);
6161

6262
//! 4) initialize NAO basis set
63+
#ifndef __NEW_GINT
6364
double dr_uniform = 0.001;
6465
std::vector<double> rcuts;
6566
std::vector<std::vector<double>> psi_u;
@@ -69,7 +70,6 @@ void ESolver_KS_LCAO<TK, TR>::before_scf(UnitCell& ucell, const int istep)
6970
Gint_Tools::init_orb(dr_uniform, rcuts, ucell, orb_, psi_u, dpsi_u, d2psi_u);
7071

7172
//! 5) set periodic boundary conditions
72-
#ifndef __NEW_GINT
7373
this->GridT.set_pbc_grid(this->pw_rho->nx,
7474
this->pw_rho->ny,
7575
this->pw_rho->nz,

source/module_hamilt_lcao/module_gint/gint_k.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class Gint_k : public Gint {
6767
Abfs::Vector3_Order<int>,
6868
std::map<size_t, std::map<size_t, std::complex<double>>>>&
6969
pvdpR_soc_sparseMatrix,
70-
LCAO_HS_Arrays& HS_arrays,
70+
LCAO_HS_Arrays& HS_Arrays,
7171
const Parallel_Orbitals* pv);
7272

7373
void cal_dvlocal_R_sparseMatrix(const int& current_spin,

source/module_hamilt_lcao/module_gint/grid_technique.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ void Grid_Technique::set_pbc_grid(const int& ncx_in,
122122
this->cal_trace_lo(ucell);
123123
#if ((defined __CUDA) /* || (defined __ROCM) */)
124124
if (PARAM.inp.device == "gpu") {
125-
// this->init_gpu_gint_variables(ucell, num_stream);
125+
this->init_gpu_gint_variables(ucell, num_stream);
126126
}
127127
#endif
128128

0 commit comments

Comments
 (0)