10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-07-23 11:17:33 +02:00

MPI bug fixed

This commit is contained in:
Anthony Scemama 2018-05-22 17:09:12 +02:00
parent 470ad73484
commit 2437bbfe97
2 changed files with 6 additions and 0 deletions

View File

@ -57,6 +57,8 @@ subroutine run_wf
PROVIDE psi_bilinear_matrix_rows psi_det_sorted_order psi_bilinear_matrix_order
PROVIDE psi_bilinear_matrix_transp_rows_loc psi_bilinear_matrix_transp_columns
PROVIDE psi_bilinear_matrix_transp_order
psi_energy(1:N_states) = energy(1:N_states)
TOUCH psi_energy
!$OMP PARALLEL PRIVATE(i)
i = omp_get_thread_num()

View File

@ -65,6 +65,8 @@ subroutine run_wf
if (zmq_get_N_det_generators (zmq_to_qp_run_socket, 1) == -1) cycle
if (zmq_get_N_det_selectors(zmq_to_qp_run_socket, 1) == -1) cycle
if (zmq_get_dvector(zmq_to_qp_run_socket,1,'energy',energy,N_states) == -1) cycle
psi_energy(1:N_states) = energy(1:N_states)
TOUCH psi_energy
call wall_time(t1)
call write_double(6,(t1-t0),'Broadcast time')
@ -105,6 +107,8 @@ subroutine run_wf
if (zmq_get_dvector(zmq_to_qp_run_socket,1,'energy',energy,N_states) == -1) cycle
if (zmq_get_N_det_generators (zmq_to_qp_run_socket, 1) == -1) cycle
if (zmq_get_N_det_selectors(zmq_to_qp_run_socket, 1) == -1) cycle
psi_energy(1:N_states) = energy(1:N_states)
TOUCH psi_energy
call wall_time(t1)
call write_double(6,(t1-t0),'Broadcast time')