Hi all,
I had problems restoring a (axi) simulation from a dump file. Using the -catch -events flags
I saw the problem was located at,
advection_term src/navier-stokes/centered.h:245
more precisely at bcg.h at the tangential components
#if dimension > 1
double vn = uf.y[i,0]/fm.y[i,0] + uf.y[i,1]/fm.y[i,1];
The problem is caused because by fm.y at ghost "face?" which is not initialized. So after restoring you get the
"Floating Point Exception". Applying BC to fm as below solves the problem ,
if (!restore (file = "dump")) {
....
}
else
boundary((scalar *){fm});
Cheers
Jose