Hello Clemens and Christophe,
The variables are MXPTVS (maximum of points around a point in the mesh) and MXELVS (maximum number of elements around a point in the mesh). I am not sure that there is a clear limitation of these numbers as obviously the program does not stop. The only real limitation I remember is for using the frontal product (keyword MATRIX-VECTOR PRODUCT, I think, with presumably 1 : normal and 2 : frontal, not checked). In this case we start by the points with two neighbours, then 3 neighbours, etc., and for every number of neighbours there is a loop, and we stopped at 10 neighbours (but it would be easy to write more loops for larger numbers...).
However it could be that this limitation at 10 is elsewhere in the program, but the program should stop there with a clear message.
So I would say that either the mesh has really something else weird, or we miss a clear stop somewhere before elebd (I do not see any such limitation by 10 in ELEBD, nor in VOISIN which is also a key subroutine at the beginning).
With best regards,
Jean-Michel Hervouet