ghost cells, take three -- ghost cells are now fully functional (for
single file IO) TWO BIG WARNINGS: 1) The MSH file version has been bumped from 2.1 to 2.2 because if a mesh has partitions, the meaning of the tags has changed. Tag 3 used to be the partition id; now tag 3 contains the number of partitions (self+ghosts, if necessary), and the next tag(s) contain(s) the partition(s) id(s). Ghost partitions have < 0 ids. The (new) default behaviour is to not save partition numbers by default if there are none. 2) There is an issue for split-file IO (one file per partition), due to our on-the-fly renumbering of the elements (we would need a global pass+store an inverse multimap to have the correct ghost element numbers in a split-file scheme). The problem comes from the multiple physicals -> multiple copies of the same MElement* in the MSH file + our refusal to store an index in MElement. We need to discuss this before we implement split-file IO in parallel... PS -- I also changed the way we write binary files. We now save blobs of single elements. This is fully compatible with old versions, but might slow down reading large files. I did not see any performance hit on my machine, but this should be tested more thoroughly. Third party codes can still write larger binary blobs if they want to, but Gmsh itself now writes small blobs, which makes the writeMSH routine much simpler.
Showing
- Common/DefaultOptions.h 1 addition, 1 deletionCommon/DefaultOptions.h
- Common/DummyBindings.h 13 additions, 15 deletionsCommon/DummyBindings.h
- Common/LuaBindings.h 2 additions, 0 deletionsCommon/LuaBindings.h
- Fltk/fileDialogs.cpp 1 addition, 1 deletionFltk/fileDialogs.cpp
- Geo/GModelIO_Mesh.cpp 155 additions, 200 deletionsGeo/GModelIO_Mesh.cpp
- Geo/MElement.cpp 32 additions, 7 deletionsGeo/MElement.cpp
- Geo/MElement.h 3 additions, 2 deletionsGeo/MElement.h
- Geo/MElementCut.cpp 10 additions, 10 deletionsGeo/MElementCut.cpp
- Geo/MElementCut.h 6 additions, 4 deletionsGeo/MElementCut.h
- Mesh/meshPartition.cpp 8 additions, 19 deletionsMesh/meshPartition.cpp
- doc/texinfo/gmsh.texi 10 additions, 11 deletionsdoc/texinfo/gmsh.texi
Loading
Please register or sign in to comment