Dear all,
I'm trying to simulate two-fluid in square duct, using non-cubic domain via Multigrid3D and MPI. To dump and restart, I run into the same issue as post here in April
https://groups.google.com/g/basilisk-fr/c/i0rcMEy_KNY/m/eqpE4Io7DQAJ. (grid depth do not match error (from the grid/multigrid.h file)). Upon inspection, the conflict is due to the depth that is recalculated in the restart function in output.h, and the one is being provided in the dump file is in conflict. Since I'm new to Basilisk, I'm not sure whether this is potentially a bug or just my confusion. Also what exactly is depth() for Multigrid3D. My understanding is it's the value of grid number (2^depth).
Output.h (The code below giving depth of 9 & init_grid(512))
dimensions (header.n.x, header.n.y, header.n.z); double n = header.n.x; int depth = header.depth; while (n > 1) depth++, n /= 2; init_grid (1 << depth);
My simulation parameter
size(3);
dimensions(nx=3,ny=1,nz=1)
init_grid(260);
With 192 processors for MPI, and that is giving me depth() = 5 and a grid point of 384x128x128.
Best Regards,
Tay W