Commit 866f16d5 authored by Douglas Serson's avatar Douglas Serson Committed by Spencer Sherwin
Browse files

Free more communicators for DriverAdaptive

parent 372965ba
......@@ -161,7 +161,10 @@ namespace Gs
MPI_Comm_dup(vCommMpi->GetComm(), &vComm.c);
vComm.id = vCommMpi->GetRank();
vComm.np = vCommMpi->GetSize();
return nektar_gs_setup(pId.get(),pId.num_elements(), &vComm, 0, gs_auto, 1);
gs_data* result = nektar_gs_setup(pId.get(),pId.num_elements(),
&vComm, 0, gs_auto, 1);
MPI_Comm_free(&vComm.c);
return result;
#else
return 0;
#endif
......
......@@ -169,7 +169,10 @@ namespace Xxt
MPI_Comm_dup(vCommMpi->GetComm(), &vComm.c);
vComm.id = vCommMpi->GetRank();
vComm.np = vCommMpi->GetSize();
return nektar_crs_setup(pRank, &pId[0], nz, &pAi[0], &pAj[0], &pAr[0], 0, &vComm);
crs_data* result = nektar_crs_setup(pRank, &pId[0], nz, &pAi[0],
&pAj[0], &pAr[0], 0, &vComm);
MPI_Comm_free(&vComm.c);
return result;
#else
return 0;
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment