mpi/heat-one-sided/c/solution/setup.c
void finalize(field *temperature1, field *temperature2)
{
    free_2d(temperature1->data);
    free_2d(temperature2->data);

    MPI_Win_free(&temperature1->rma_window);
    MPI_Win_free(&temperature2->rma_window);
}
/* Deallocate the 2D arrays of temperature fields */
Deallocate the 2D arrays of temperature fields
Deallocate the 2D arrays of temperature fields
void finalize(field *temperature1, field *temperature2)
{
    free_2d(temperature1->data);
    free_2d(temperature2->data);
    MPI_Win_free(&temperature1->rma_window);
    MPI_Win_free(&temperature2->rma_window);
}
void finalize ( field * temperature1 , field * temperature2 ) { free_2d ( temperature1 -> data ) ; free_2d ( temperature2 -> data ) ; MPI_Win_free ( & temperature1 -> rma_window ) ; MPI_Win_free ( & temperature2 -> rma_window ) ; }
Deallocate the 2D arrays of temperature fields
Deallocate the 2D arrays of temperature fields