#include "array.h"
#include "poisson.h"
void
finalize(dmatrix a, dmatrix b, dmatrix f, Grid *grid)
{
  /* clean up matrices and communicators */
   delete_dmatrix(a);
   delete_dmatrix(b);
   delete_dmatrix(f);
   MPI_Comm_free(&grid->comm);
   MPI_Finalize();
}
![]()