Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import surface mesh from Gmsh 2.6.1 #37

Open
hkroeger opened this issue Feb 17, 2013 · 0 comments
Open

Import surface mesh from Gmsh 2.6.1 #37

hkroeger opened this issue Feb 17, 2013 · 0 comments
Assignees

Comments

@hkroeger
Copy link

Hello,

recently I got problems during import of gmsh surface meshes, created with latest version of gmsh. I guess this might be due to changes in the gmsh format.

For my case, the gmsh header contained an additional section between the keywords "$EndMeshFormat" and "$Nodes" with the patch names, which irritated engrid.
The current header looked like this:
$MeshFormat
2.2 0 8
$EndMeshFormat
$PhysicalNames
10
2 1 "rotor_upstream"
...
3 10 "blade"
$EndPhysicalNames
$Nodes
34428
...
.

To handle this, e.g. the following change around line 134 in gmshreader.cpp might be useful:

    /*
    f >> word;
    if (word != "$Nodes") EG_ERR_RETURN("$Nodes expected");
    */
    while (word != "$Nodes")
    {
        f >> word;
        if (f.status() != QTextStream::Ok) EG_ERR_RETURN("$Nodes expected");
    }

Regards, Hannes

@ghost ghost assigned ogloth Mar 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants