Hi,
I have been taking a look to your code. I find out some flaws in the code and a bug on my side (see jet_embed.c below):
1.- I do not know why solid() seems to rotate the solid in axi or get confuse with which is the radial coordinate. It is a little bit strange. It cam be easily solved using vertex field
2.- If you create/modified a solid (cs & fm) you have to update cm & fm
3.- The upgrade of fm (and cm?) seems to be wrong. The bug appears in the adaption. I think that maybe it is a problem with the list of variables and/or the order they are updated. Comenting "adapt" the code seems to work.
I will try to fix it.
Cheers