Skip to content

Commit ba2b651

Browse files
Fix: MPI and Makefile
1 parent 25aa53a commit ba2b651

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

source/Makefile.Objects

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,10 @@ OBJS_HAMILT=hamilt_pw.o\
342342
velocity_pw.o\
343343
radial_proj.o\
344344
exx_helper.o\
345+
vec_mul_vec_complex_op.o\
346+
exx_cal_energy_op.o\
347+
cal_density_real_op.o\
348+
mul_potential_op.o\
345349

346350
OBJS_HAMILT_OF=kedf_tf.o\
347351
kedf_vw.o\

source/source_pw/module_pwdft/operator_pw/op_exx_pw.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ OperatorEXXPW<T, Device>::OperatorEXXPW(const int* isk_in,
7373

7474
rhopw_dev = new ModulePW::PW_Basis(wfcpw->get_device(), rhopw->get_precision());
7575
rhopw_dev->fft_bundle.setfft(wfcpw->get_device(), rhopw->get_precision());
76+
#ifdef __MPI
7677
rhopw_dev->initmpi(rhopw->poolnproc, rhopw->poolrank, rhopw->pool_world);
78+
#endif
7779
// here we can actually use different ecut to init the grids
7880
rhopw_dev->initgrids(rhopw->lat0, rhopw->latvec, rhopw->gridecut_lat * rhopw->tpiba2);
7981
rhopw_dev->initgrids(rhopw->lat0, rhopw->latvec, rhopw->nx, rhopw->ny, rhopw->nz);

0 commit comments

Comments
 (0)