Skip to content
Snippets Groups Projects
Commit 8c405b76 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Replace trivial xt_redist_s_exchange function call with xt_redist_s_exchange1.

parent 7183a20f
No related branches found
No related tags found
No related merge requests found
......@@ -326,8 +326,7 @@ gatherArray(int root, int nProcsModel, int headerIdx,
Xt_redist gatherRedist
= xt_redist_p2p_off_new(gatherXmap, partOfs, gatherOfs, MPI_DOUBLE);
xt_xmap_delete(gatherXmap);
xt_redist_s_exchange(gatherRedist, (void **)&rxWin[0].buffer, 1,
(void **)&gatherBuf, 1);
xt_redist_s_exchange1(gatherRedist, rxWin[0].buffer, gatherBuf);
free(partOfs);
xt_redist_delete(gatherRedist);
}
......@@ -669,8 +668,7 @@ void readGetBuffers ( int tsID, int vdate, int vtime )
writeBuf = xrealloc(writeBuf,
sizeof (double)
* PPM_extents_size(3, varChunk));
xt_redist_s_exchange(redist, (void **)&data, 1,
(void **)&writeBuf, 1);
xt_redist_s_exchange1(redist, data, writeBuf);
xt_redist_delete(redist);
}
/* write chunk */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment