Skip to content

Commit b5598ce

Browse files
committed
Fix: modify bug of elif
1 parent 048346c commit b5598ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/module_hsolver/diago_elpa.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void DiagoElpa::diag(hamilt::Hamilt *phm_in, psi::Psi<std::complex<double>> &psi
8888
// the eigenvalues.
8989
const int inc = 1;
9090
BlasConnector::copy(GlobalV::NBANDS, eigen.data(), inc, eigenvalue_in, inc);
91-
#elif
91+
#else
9292
ModuleBase::WARNING_QUIT("DiagoElpa", "DiagoElpa only can be used with macro __MPI");
9393
#endif
9494
}
@@ -140,7 +140,7 @@ void DiagoElpa::diag(hamilt::Hamilt *phm_in, psi::Psi<double> &psi, double *eige
140140
ModuleBase::GlobalFunc::OUT(GlobalV::ofs_running, "K-S equation was solved by genelpa2");
141141
BlasConnector::copy(GlobalV::NBANDS, eigen.data(), inc, eigenvalue_in, inc);
142142
ModuleBase::GlobalFunc::OUT(GlobalV::ofs_running, "eigenvalues were copied to ekb");
143-
#elif
143+
#else
144144
ModuleBase::WARNING_QUIT("DiagoElpa", "DiagoElpa only can be used with macro __MPI");
145145
#endif
146146
}

0 commit comments

Comments
 (0)