Skip to content

Commit a40f8d0

Browse files
committed
fix compile
1 parent 5f031f9 commit a40f8d0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source/module_hsolver/test/test_hsolver_sdft.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ Stochastic_Iter<T, Device>::Stochastic_Iter()
5050

5151
template <typename T, typename Device>
5252
Stochastic_Iter<T, Device>::~Stochastic_Iter(){};
53-
template class Stochastic_Iter<std::complex<double>, base_device::DEVICE_CPU>;
5453

5554
template <typename T, typename Device>
5655
void Stochastic_Iter<T, Device>::init(K_Vectors* pkv_in,
@@ -129,6 +128,7 @@ void Stochastic_Iter<T, Device>::cal_storho(const UnitCell& ucell,
129128
ModulePW::PW_Basis_K* wfc_basis)
130129
{
131130
}
131+
template class Stochastic_Iter<std::complex<double>, base_device::DEVICE_CPU>;
132132

133133
Charge::Charge(){};
134134
Charge::~Charge(){};

source/module_psi/psi_initializer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
// numerical algorithm support
1111
#include "module_base/spherical_bessel_transformer.h" // for spherical bessel transform
1212
#ifdef __MPI
13-
// MPI support
1413
#include <mpi.h>
14+
#endif
1515
#include "module_base/parallel_global.h"
1616
#include "module_cell/parallel_kpoints.h"
17-
#endif
17+
1818

1919
#include "module_base/macros.h"
2020
#include <type_traits>

0 commit comments

Comments
 (0)