From 1196294b5d9a98abcf3a5d51a8291db2db112776 Mon Sep 17 00:00:00 2001 From: "Paul M. Sutter" Date: Thu, 22 May 2025 18:41:15 -0400 Subject: [PATCH] fixed zobov bug which mis-aligned tracers and guard particles when only using one subdivision (it actually affected all cases but only caused issues here) --- zobov/voz1b1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zobov/voz1b1.c b/zobov/voz1b1.c index 9ff68d8..8a87399 100644 --- a/zobov/voz1b1.c +++ b/zobov/voz1b1.c @@ -118,7 +118,7 @@ int main(int argc, char *argv[]) { exit(1); } - DL c[d] = ((float)b[d])*width; + DL c[d] = ((float)b[d]+0.5)*width; printf("c: %f,%f,%f\n",c[0],c[1],c[2]); /* Assign temporary array*/ nvpbuf = 0; /* Number of particles to tesselate, including