In your original code, you use GeoMagVector (GeoSubVectorVector (ghost.celement, elements.celement)) to represent the distance along face normal between an element and a ghost cell, but I think it is the distance between two cell centers, not on the face normal direction.
The other problem is the output file *.001.pos will miss some data sometime. for example , the last data should be "2.30558E-1", but it shows me "2.30558", that means "E-1" is lost !
If you could give any comment, it would help me a lot.
Yes, that is distance between cell centers only. If you want the normal distance you have to dot product or something more complicated.
Can you send me the files you are using to test that problem in the pos file?
You can try also to save in binary format instead of ascii and check if this solves your problem. Anyway I would like to correct this.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.