Hi R,

I tried mem_checkIntegrity inside the functions but it is not printing any debugging result. 
mem_checkIntegrity(421,"convect_build_vtg","termsNavierStokes.c","~/sfepy/sfepy/terms/extmods");
mem_checkIntegrity(546,"term_ns_asm_convect","termsNavierStokes.c","~/sfepy/sfepy/terms/extmods");

Am I adding it correctly?

regards.