ianhinder / Kranc

A Mathematica package for generating code for solving time dependent partial differential equations
http://kranccode.org
GNU General Public License v2.0
28 stars 10 forks source link

Don't call GenericFD_GetBoundaryWidth in level mode #59

Open eschnett opened 12 years ago

eschnett commented 12 years ago

I see this warning in my simulations:

WARNING level 1 in thorn GenericFD processor 1 host qb665 (line 77 of /project/eschnett/Calpha/arrangements/KrancNumericalTools/GenericFD/src/GenericFD.c): -> GenericFD_GetBoundaryWidths: Could not determine current map (can be caused by calling in LEVEL mode)

This is probably because the Kranc-generated SelectBCs routine calls GenericFD_GetBoundaryWidth in level mode, which in turn calls GenericFD_GetBoundaryWidths, which does not work in level mode (it needs singlemap or local mode).

This is a multi-patch simulation. In a multi-patch simulation, the Cactus boundary conditions don't work anyway, and hence only the "none" boundary condition is applied, which does not need to know the boundary width.