Skip to content

Commit d532615

Browse files
committed
Merge branch 'develop' of github.com:deepmodeling/abacus-develop into new
2 parents 41e19ec + 06cc53d commit d532615

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

source/module_cell/setup_nonlocal.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ InfoNonlocal::InfoNonlocal()
1111
{
1212
this->Beta = new Numerical_Nonlocal[1];
1313
this->nproj = new int[1];
14-
this->nprojmax = 0;
14+
this->nprojmax = 0;
15+
this->rcutmax_Beta = 0.0;
1516
}
1617
InfoNonlocal::~InfoNonlocal()
1718
{

source/module_deepks/LCAO_deepks_torch.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ void LCAO_Deepks::cal_gedm(const int nat)
293293
std::vector<torch::jit::IValue> inputs;
294294

295295
//input_dim:(natom, des_per_atom)
296-
inputs.push_back(torch::cat(this->d_tensor, 0).reshape({ nat, this->des_per_atom }));
296+
inputs.push_back(torch::cat(this->d_tensor, 0).reshape({ 1, nat, this->des_per_atom }));
297297
std::vector<torch::Tensor> ec;
298298
ec.push_back(module.forward(inputs).toTensor()); //Hartree
299299
this->E_delta = ec[0].item().toDouble() * 2;//Ry; *2 is for Hartree to Ry
@@ -502,4 +502,4 @@ void LCAO_Deepks::cal_orbital_precalc(const std::vector<ModuleBase::matrix> &dm_
502502
return;
503503
}
504504

505-
#endif
505+
#endif

source/module_orbital/ORB_read.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ LCAO_Orbitals::LCAO_Orbitals()
3030
this->dr_uniform = 0.001;
3131

3232
this->lmax_d = 0;
33-
this->nchimax_d = 0;
33+
this->nchimax_d = 0;
34+
this->rcutmax_Phi = 0.0;
3435
}
3536

3637
LCAO_Orbitals::~LCAO_Orbitals()

source/src_pw/test/diago_david_test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ TEST(DiagoDavRealSystemTest,dataH)
122122
ModuleBase::ComplexMatrix hmatrix;
123123
std::ifstream ifs("data-H");
124124
DIAGOTEST::readh(ifs,hmatrix);
125+
ifs.close();
125126
DIAGOTEST::hmatrix = hmatrix;
126127
DIAGOTEST::npw = hmatrix.nc;
127128

0 commit comments

Comments
 (0)