Skip to content

Commit ca1ab07

Browse files
committed
small change
1 parent db170d4 commit ca1ab07

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/module_lr/potentials/xc_kernel.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ void LR::KernelXC::f_xc_libxc(const int& nspin, const double& omega, const doubl
237237
const std::vector<double>& vs = this->vsigma_;
238238
const double tpiba2 = tpiba * tpiba;
239239

240-
if (1 == nspin)
240+
if (nspin == 1)
241241
{
242242
// 0. drho
243243
this->drho_gs_ = gradrho[0];
@@ -267,7 +267,8 @@ void LR::KernelXC::f_xc_libxc(const int& nspin, const double& omega, const doubl
267267
+ " unfinished in " + std::string(__FILE__) + " line " + std::to_string(__LINE__));
268268
}
269269
}
270-
if (1 == PARAM.inp.nspin || 2 == PARAM.inp.nspin) { return;
270+
if (PARAM.inp.nspin == 1 || PARAM.inp.nspin == 2) {
271+
return;
271272
// else if (4 == PARAM.inp.nspin)
272273
} else//NSPIN != 1,2,4 is not supported
273274
{

0 commit comments

Comments
 (0)