Skip to content

Commit 4cff2d1

Browse files
authored
Update LCAO_deepks_interface.cpp
1 parent 3e3c6b4 commit 4cff2d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/module_hamilt_lcao/module_deepks/LCAO_deepks_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void LCAO_Deepks_Interface<TK,TR>::out_deepks_labels(const double& etot,
3232
ModuleBase::timer::tick("LCAO_Deepks_Interface", "out_deepks_labels");
3333

3434
// define TH for different types
35-
using TH = std::conditional_t<std::is_same_v<TK, double>, ModuleBase::matrix, ModuleBase::ComplexMatrix>;
35+
using TH = std::conditional_t<std::is_same<TK, double>::value, ModuleBase::matrix, ModuleBase::ComplexMatrix>;
3636

3737
const int my_rank = GlobalV::MY_RANK;
3838
const int nspin = PARAM.inp.nspin;

0 commit comments

Comments
 (0)