Problem with hopper_flow.py example

Asked by juan

Hello, I'm trying to run the the hopper_flow.py example and I have this error:

Traceback (most recent call last):
  File "hopper_flow_runnable.py", line 55, in <module>
    meshName = "floor_mesh_wall"
Boost.Python.ArgumentError: Python argument types in
    LsmMpi.readMesh(LsmMpi)
did not match C++ signature:
    readMesh(esys::lsm::LsmMpiPy {lvalue}, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > fileName, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > meshName, int tag)
    readMesh(esys::lsm::LsmMpiPy {lvalue}, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > fileName, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > meshName)

Thanks you in advance for the help!!

Question information

Language:
English Edit question
Status:
Answered
For:
ESyS-Particle Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dion Weatherley (d-weatherley) said :
#1

Hi Juan,

Could you please post your script or the portion containing the complete sim.readMesh(..) command?

Usually error messages like this one are due to a misspelling of a keyword argument name or not all of the required arguments are provided.

Cheers,

Dion

Revision history for this message
juan (juampahv) said :
#2

Hi Dion,

Thanks for the time. This is the portion of the code

#add a wall as a floor for the model:
sim.readMesh (
 filename = "floorMesh.msh",
 meshName = "floor_mesh_wall"
)

Thanks

Revision history for this message
Dion Weatherley (d-weatherley) said :
#3

Hi Juan,

Try replacing the keyword 'filename' with 'fileName' instead.

Cheers,

Dion

Can you help with this problem?

Provide an answer of your own, or ask juan for more information if necessary.

To post a message you must log in.