Handle demo mesh location better

Issue #37 resolved
Martin Sandve Alnæs created an issue

For the demo problems to be importable from anywhere, they need to get the mesh in a more robust fashion than the current '../../data/...' path.

Comments (5)

  1. Øyvind Evju

    I recently changed

    ../../../data/pipe_0.5k.xml.gz
    

    to

    path.join(path.dirname(path.realpath(__file__)),"../../../data/pipe_0.5k.xml.gz")
    

    in poiseuille3d and womersley3d demos.

    Do you want something better than that?

  2. Log in to comment