Skip to content

Commit c0d1dcd

Browse files
dyzhengdyzheng
andauthored
Fix: add 'template' keyword for dependent eval_wfc_bloch call (deepmodeling#7827)
exciton_plotter.cpp calls orb_eval_.eval_wfc_bloch<T>() where orb_eval_ is a dependent type, requiring the 'template' keyword under C++11 parsing rules. Co-authored-by: dyzheng <zhengdy@bjaisi.com>
1 parent fde7e06 commit c0d1dcd

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

source/source_lcao/module_lr/utils/exciton_plotter.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ std::vector<std::vector<std::complex<double>>> ExcitonPlotter<T>::build_conditio
624624
{
625625
const Complex fixed_wfc = std::conj(
626626
this->orb_eval_
627-
.eval_wfc_bloch<T>(r_fix, ik, io, this->psi_ks_vec[0], this->ucell, this->kv.kvec_d[ik]));
627+
.template eval_wfc_bloch<T>(r_fix, ik, io, this->psi_ks_vec[0], this->ucell, this->kv.kvec_d[ik]));
628628
for (int iv = 0; iv < nvirt; ++iv)
629629
{
630630
mixing[ik][iv] += this->X[offset_b + x_start + iv + io * nvirt] * fixed_wfc;
@@ -635,12 +635,12 @@ std::vector<std::vector<std::complex<double>>> ExcitonPlotter<T>::build_conditio
635635
{
636636
for (int iv = 0; iv < nvirt; ++iv)
637637
{
638-
const Complex fixed_wfc = this->orb_eval_.eval_wfc_bloch<T>(r_fix,
639-
ik,
640-
nocc + iv,
641-
this->psi_ks_vec[0],
642-
this->ucell,
643-
this->kv.kvec_d[ik]);
638+
const Complex fixed_wfc = this->orb_eval_.template eval_wfc_bloch<T>(r_fix,
639+
ik,
640+
nocc + iv,
641+
this->psi_ks_vec[0],
642+
this->ucell,
643+
this->kv.kvec_d[ik]);
644644
for (int io = 0; io < nocc; ++io)
645645
{
646646
mixing[ik][io] += this->X[offset_b + x_start + iv + io * nvirt] * fixed_wfc;

0 commit comments

Comments
 (0)