lanl / vpic

Vector Particle-In-Cell (VPIC) Project
Other
151 stars 76 forks source link

band_interleave hydro_dump #16

Open liangwang0734 opened 6 years ago

liangwang0734 commented 6 years ago

Hi,

This is a new user question: In src/vpic/dump.cc, the band_interleave branch of hydro_dump seems to not correctly set the dim array to include ghost layer:

    dim[0] = nxout;
    dim[1] = nyout;
    dim[2] = nzout;

while the field_dump does

    dim[0] = nxout+2;
    dim[1] = nyout+2;
    dim[2] = nzout+2;

It appears to me that the two extra cells are ghost cells. For direct dump (no stride), I believe the dim array should include them, since the memory block is dumped as a whole.

Thanks, Liang

PS:

rfbird commented 6 years ago

Hey,

Sorry for the slow reply on this. It does look like this may be an issue. We're trying to figure out if changing this would have any other wide spread problems associated with it

Best, Bob