[Dune] Using absolute path to a mesh file
Markus Blatt
markus at dr-blatt.de
Wed Nov 26 11:26:11 CET 2014
Hi,
On Wed, Nov 26, 2014 at 09:47:53AM +0100, Aleksejs Fomins wrote:
> Now when the tests are built out of source, I feel I should use the
> absolute path to mesh files for testing dune-curvilineargrid, same as it
> is done in dune-grid.
>
> I notice that in dune-grid it is done by using the variable
>
> DUNE_GRID_EXAMPLE_GRIDS_PATH
>
> However, I cannot find where this variable is defined using grep on
> dune-grid. Could you please teach me how to define such a variable?
Unfortunately it was only defined manually in the
CMakeLists.txt of dune-grid but never as a CMake variable that is
exported and usable by downstream modules. I changed this with my
recent commits in dune-common, and dune-grid.
If you pull them and reconfigure dune-grid and your module you can
used to provide the path to your executables via
add_definitions("-DDUNE_GRID_EXAMPLE_GRIDS_PATH=${DUNE_GRID_EXAMPLE_GRIDS_PATH}")
or like Dominic described.
Markus
--
Do you need more support with DUNE or HPC in general?
Dr. Markus Blatt - HPC-Simulation-Software & Services http://www.dr-blatt.de
Hans-Bunte-Str. 8-10, 69123 Heidelberg, Germany
Tel.: +49 (0) 160 97590858
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20141126/de73d4f3/attachment.sig>
More information about the Dune
mailing list