Skip to content

Commit cca5fa9

Browse files
committed
Fix GitHub CI MPI compilation bug
1 parent 4f24415 commit cca5fa9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/module_hamilt_lcao/module_tddft/evolve_elec.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ inline void print_tensor_data<std::complex<double>>(const ct::Tensor& tensor, co
9191

9292
namespace module_tddft
9393
{
94-
94+
#ifdef __MPI
9595
template <typename T>
9696
void gatherPsi(const int myid,
9797
const int root_proc,
@@ -133,6 +133,7 @@ void distributePsi(const Parallel_Orbitals& para_orb, T* psi_l, const ModuleESol
133133
// Call the Cpxgemr2d function in ScaLAPACK to distribute the matrix data
134134
Cpxgemr2d(nrows, ncols, psi_g.p.get(), 1, 1, psi_g.desc.get(), psi_l, 1, 1, const_cast<int*>(desc_psi), ctxt);
135135
}
136+
#endif // __MPI
136137

137138
template <typename Device = base_device::DEVICE_CPU>
138139
class Evolve_elec

0 commit comments

Comments
 (0)