mirror of
https://github.com/QuantumPackage/qp2.git
synced 2025-04-28 11:14:56 +02:00
Fix deallocation pt2_serialized
This commit is contained in:
parent
081df88585
commit
11b6525996
@ -350,7 +350,6 @@ subroutine push_pt2_results_async_send(zmq_socket_push, index, pt2_data, b, task
|
|||||||
enddo
|
enddo
|
||||||
|
|
||||||
rc = f77_zmq_send( zmq_socket_push, pt2_serialized, size(pt2_serialized)*8, ZMQ_SNDMORE)
|
rc = f77_zmq_send( zmq_socket_push, pt2_serialized, size(pt2_serialized)*8, ZMQ_SNDMORE)
|
||||||
deallocate(pt2_serialized)
|
|
||||||
if (rc == -1) then
|
if (rc == -1) then
|
||||||
print *, irp_here, ': error sending result'
|
print *, irp_here, ': error sending result'
|
||||||
stop 3
|
stop 3
|
||||||
@ -358,6 +357,7 @@ subroutine push_pt2_results_async_send(zmq_socket_push, index, pt2_data, b, task
|
|||||||
else if(rc /= size(pt2_serialized)*8) then
|
else if(rc /= size(pt2_serialized)*8) then
|
||||||
stop 'push'
|
stop 'push'
|
||||||
endif
|
endif
|
||||||
|
deallocate(pt2_serialized)
|
||||||
|
|
||||||
|
|
||||||
rc = f77_zmq_send( zmq_socket_push, task_id, n_tasks*4, ZMQ_SNDMORE)
|
rc = f77_zmq_send( zmq_socket_push, task_id, n_tasks*4, ZMQ_SNDMORE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user