Hi All,
/home/steytler/basilisk/src/embed-tree.h:280: refine_embed_linear: Assertion `((double *) ((((Tree *)grid)->L[point.level-1]->m[(point.i+2)/2+child.x] [(point.j+2)/2+0]) + sizeof(Cell)))[cs.i] && ((double *) ((((Tree *)grid)->L[point.level-1]->m[(point.i+2)/2+0] [(point.j+2)/2+child.y]) + sizeof(Cell)))[cs.i]' failed.
The original karman.c file does not include restarting from dump files or writing of dump files, so I modified the init event and included an event to dump files as shown at the bottom.
Any ideas why this error happens when restarting from a dump file? (Starting the computation from scratch produces no errors.)
Could this be a bug or am I missing something?
Any advice would be much appreciated.
Thanks,
Louis
------------------------------------------
event init (t = 0)
{
/**
The domain is the intersection of a channel of width unity and a
circle of diameter 0.125. */
if (!restore ("restart")) {
vertex scalar phi[];
foreach_vertex() {
phi[] = intersection (0.5 - y, 0.5 + y);
phi[] = intersection (phi[], sq(x) + sq(y) - sq(0.125/2.));
}
boundary ({phi});
fractions (phi, cs, fs);
}
else {
vertex scalar phi[];
foreach_vertex() {
phi[] = intersection (0.5 - y, 0.5 + y);
phi[] = intersection (phi[], sq(x) + sq(y) - sq(0.125/2.));
}
boundary ({phi});
fractions (phi, cs, fs);
}
/**
We set the initial velocity field. */
foreach()
u.x[] = cs[] ? 1. : 0.;
}
event snapshots (i += 10)
{
char name [80];
sprintf (name, "dump-%d", i);
dump (name);
}