@@ -200,20 +200,20 @@ void DeepPotPT::compute(ENERGYVTYPE& ener,
200200
201201 std::vector<int > recvnum_new (nswap, 0 );
202202#ifdef USE_MPI
203- if (lmp_list.world ) {
204- MPI_Comm comm = *static_cast <MPI_Comm*>(lmp_list.world );
205- const int TAG_BASE = 0x7a31 ;
206- for (int s = 0 ; s < nswap; ++s) {
207- const int send_to = lmp_list.sendproc [s];
208- const int recv_from = lmp_list.recvproc [s];
209- int send_cnt = sendnum_new[s];
210- int recv_cnt = 0 ;
211- MPI_Sendrecv (&send_cnt, 1 , MPI_INT, send_to, TAG_BASE + s,
212- &recv_cnt, 1 , MPI_INT, recv_from, TAG_BASE + s,
213- comm, MPI_STATUS_IGNORE);
214- recvnum_new[s] = recv_cnt;
215- }
216- } else
203+ if (lmp_list.world ) {
204+ MPI_Comm comm = *static_cast <MPI_Comm*>(lmp_list.world );
205+ const int TAG_BASE = 0x7a31 ;
206+ for (int s = 0 ; s < nswap; ++s) {
207+ const int send_to = lmp_list.sendproc [s];
208+ const int recv_from = lmp_list.recvproc [s];
209+ int send_cnt = sendnum_new[s];
210+ int recv_cnt = 0 ;
211+ MPI_Sendrecv (&send_cnt, 1 , MPI_INT, send_to, TAG_BASE + s, &recv_cnt ,
212+ 1 , MPI_INT, recv_from, TAG_BASE + s, comm ,
213+ MPI_STATUS_IGNORE);
214+ recvnum_new[s] = recv_cnt;
215+ }
216+ } else
217217#endif
218218 {
219219 // need check
0 commit comments