Point to point Synchronization
The producer thread:
- Computes field variables on its own subdomain
- Set a shared flag when the data is ready
- In MPI the point at which MPI_send happens
The consumer thread:
- Needs field variables in neighboring subdomain(s) to continue simulation
- Waits for the neighbor’s flag to be set before using the data
- In MPI the MPI_receive event