Skip to content
Snippets Groups Projects
Commit 1c78ca1f authored by Chichi Lalescu's avatar Chichi Lalescu
Browse files

improve some comments

parent 05210a53
No related branches found
No related tags found
No related merge requests found
......@@ -184,15 +184,9 @@ int RMHD_converter::convert(
z = regular_to_zindex(k, j, i);
zid = this->dzcubbie->rank(z);
zz = z - this->dzcubbie->starts[0];
//if (myrank == 0)
// std::cerr <<
// z << " " <<
// k << " " <<
// j << " " <<
// i << std::endl;
if (myrank == rid || myrank == zid)
{
// first, do actual shuffling
// first, copy data into cubbie
if (myrank == rid)
for (int tk = 0; tk < 8; tk++)
for (int tj = 0; tj < 8; tj++)
......@@ -204,7 +198,7 @@ int RMHD_converter::convert(
this->r3 + cc + 16,
rz + (tk*8 + tj)*16);
}
// now copy or send/receive
// now copy or send/receive to zindexed array
if (rid == zid) std::copy(
rz,
rz + cubbie_size,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment