This is a pretty basic MPI question, but I can\'t wrap my head around it. I have a main function that calls another function that uses MPI. I want the main function to execute i
Have a look at this answer.
Short story: MPI_Init and MPI_Finalize do not mark the beginning and end of parallel processing. MPI processes run in parallel in their entirety.
MPI_Init
MPI_Finalize