Partition 1 Partition 2
(1) ... (1) ...
(2) ... (2) ...
(3) ... (3) ...
where the relative timing can be indicated if you want by
doing things like:
Partition 1 Partition 2
(1) compute ... (1) wait for message
(2) send message M1
(3) wait for message (2) receive message M1
(3) compute ...
(4) send message M2
(4) receive message M2 (5) wait for message
ETC
This does not always work, as loops and if-then's can make
things too complex. The most general thing is to just write
pseudo-code for each of the two partitions.
BW