Error when importing a .mesh file (ymport)

Asked by Christopher Stanbridge

When I'm trying to import a .mesh into the GTU format using the ymport library, I get the following error:

File "/usr/lib/x86_64-linux-gnu/yade/py/yade/ymport.py", line 208, in gmsh c=nodelistVector3[i[3]]
IndexError: list index out of range

What could be the source of this error?

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Christopher Stanbridge
Solved:
Last query:
Last reply:
Revision history for this message
Anton Gladky (gladky-anton) said :
#1

It would be good to see your mesh-file. Please note,
this mesh-file should be produced by GMSH and be
saved in ASCII-mode, not the binary one.

Cheers

Anton

2014-09-25 14:42 GMT+02:00 Christopher Stanbridge <
<email address hidden>>:

> New question #254995 on Yade:
> https://answers.launchpad.net/yade/+question/254995
>
> When I'm trying to import a .mesh into the GTU format using the ymport
> library, I get the following error:
>
> File "/usr/lib/x86_64-linux-gnu/yade/py/yade/ymport.py", line 208, in gmsh
> c=nodelistVector3[i[3]]
> IndexError: list index out of range
>
> What could be the source of this error?
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Christopher Stanbridge (cws105) said :
#2

Actually, never mind, I got the error sorted out. The problem was that I wasn't using the correct vertex references.