FreeFem / FreeFem-sources

FreeFEM source code
https://freefem.org/
Other
796 stars 193 forks source link

Using a path when loading a mesh file (DSL)? #38

Closed cdoucet closed 5 years ago

cdoucet commented 6 years ago

When one loads a mesh in an edp file, e.g. mesh3 Th("foo.mesh"), no path seems to be used (see Mesh::read in femlib/fem.cpp).

Unless there already exists some mechanism to use a path, I would like to modify Mesh::read so that it looks for mesh files in some path variable such as PATH, or FF_DATAPATH, or something like that.

Another strategy would be to look for mesh files in the same directory as the edp file which needs it, i.e. implementing the same behavior as the one submitted for include directive in issue #37.

What do you think of it?

frederichecht commented 6 years ago

yes

Le 30 juil. 2018 à 13:48, cdoucet notifications@github.com a écrit :

When one loads a mesh in an edp file, e.g. mesh3 Th("foo.mesh"), no path seems to be used (see Mesh::read in femlib/fem.cpp).

Unless there already exists some mechanism to use a path, I would like to modify Mesh::read so that it looks for mesh files in some path variable such as PATH, or FF_DATAPATH, or something like that.

Another strategy would be to look for mesh files in the same directory as the edp file which needs it, i.e. implementing the same behavior as the one submitted for include directive in issue #37 https://github.com/FreeFem/FreeFem-sources/issues/37.

Do you agree with that?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/FreeFem/FreeFem-sources/issues/38, or mute the thread https://github.com/notifications/unsubscribe-auth/AFb2jJzIpf6SniFtXhX98BKLeD45E8Vzks5uLvKdgaJpZM4VmRD3.