2749
Comment:
|
← Revision 3 as of 2009-07-09 18:51:54 ⇥
2828
|
Deletions are marked like this. | Additions are marked like this. |
Line 66: | Line 66: |
Here is a fixed version of the Gmsh file: [[attachment:cylinder_fixed.geo]] |
Description
According to the documentation
http://www.magpar.net/magpar/doc/html/preprocessing.html#gmsh
the "Physical Volumes" in Gmsh .geo files should be numbered consecutively starting from 0.
However, this is an error in the documentation. Their numbering of the "Physical Volumes" has to start with 1.
Bug reported by Rajmani Gaur - thank you!
Steps to reproduce
See attached file cylinder.geo
- Mesh it with "gmsh -3 cylinder.geo", which gives cylinder.msh
- "gmshtoucd cylinder.msh" gives cylinder.inp
- Run simulation with cylinder.inp.
Example
magpar output/error message:
[...] Opening file cylinder.inp Number of grid vertices: 2937 Number of grid elements: 13696 Number of vertex data: 3 Number of element data: 0 Number of element data2: 0 Allocating array for vertices and reading their coordinates Allocating array for element connectivity and reading it magpar.exe: io/readinp.c:220: int ReadINP(GridData*, char*, _p_Vec*, int): Assertion `a1>0' failed. Aborted
Details
magpar version |
0.8 |
OS and version |
any |
Compiler name and version |
any |
Machine/hardware/CPU type |
any |
Library versions |
any |
Workaround/Fix
Make sure "Physical Volumes" in .geo files are numbered consecutively starting from 1.
Here is a fixed version of the Gmsh file: cylinder_fixed.geo
Plan
- Priority: medium
Assigned to: WernerScholz
- Status: fixed: documentation fixed in development version leading to 0.9
Attachments
There are 2 attachment(s) stored for this page.