Differences between revisions 2 and 3
Revision 2 as of 2009-07-09 18:44:44
Size: 2749
Editor: WernerScholz
Comment:
Revision 3 as of 2009-07-09 18:51:54
Size: 2828
Editor: WernerScholz
Comment:
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

  1. See attached file cylinder.geo

  2. Mesh it with "gmsh -3 cylinder.geo", which gives cylinder.msh
  3. "gmshtoucd cylinder.msh" gives cylinder.inp
  4. 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.

  • [get | view] (2009-07-09 18:52:11, 1.1 KB) [[attachment:cylinder.geo]]
  • [get | view] (2009-07-09 18:52:30, 1.1 KB) [[attachment:cylinder_fixed.geo]]
 All files | Selected Files: delete move to page copy to page


CategoryMagparBugFixed

MagparWiki: BugTracker/GmshPhysicalVolumeNumbering (last edited 2009-07-09 18:51:54 by WernerScholz)


Copyright (C) Werner Scholz 2010