Skip to content

Commit 5b50b4c

Browse files
committed
fix mpi compiling error
1 parent 8614c82 commit 5b50b4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/module_hamilt_lcao/module_gint/gint_k_pvpr.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
#include "module_basis/module_ao/ORB_read.h"
1313
#include "module_cell/module_neighbor/sltk_grid_driver.h"
1414
#include "module_hamilt_pw/hamilt_pwdft/global.h"
15-
#include <mpi.h>
1615
#include "module_hamilt_lcao/module_hcontainer/hcontainer_funcs.h"
16+
#ifdef __MPI
17+
#include <mpi.h>
18+
#endif
1719

1820
// transfer_pvpR, NSPIN = 1 or 2
1921
void Gint_k::transfer_pvpR(hamilt::HContainer<double>* hR, const UnitCell* ucell, Grid_Driver* gd)

0 commit comments

Comments
 (0)