DLR-AMR / t8code

Parallel algorithms and data structures for tree-based adaptive mesh refinement (AMR) with arbitrary element shapes.

Home Page:https://dlr-amr.github.io/t8code/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tutorial t8_step7_interpolation error

alecontri opened this issue · comments

Hi,

I am testing the tutorials (Apple M1) and everything goes fine until step 7, where I get the error:
t8_step7_interpolation.cxx:38:10: fatal error: 't8_forest/t8_forest_private.h' file not found
#include <t8_forest/t8_forest_private.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
My t8code is built in t8code/t8code_build/local.
Any idea of the cause? I tried moving the file t8_forest_private.h in t8code/src/t8_forest to t8code/t8code_build/local/include/t8_forest and the tutorial is then compiling.

I am using:
mpicxx t8_step7*.cxx t8_step3_adapt_forest.cxx -I$HOME/t8code/t8code_build/local/include -L$HOME/t8code/t8code_build/local/lib -lt8 -lp4est -lsc -lm -lz

Thank you very much for the constant support.
Best,
Alessandro Contri

Hi @alecontri, thank you for reporting the issue!
I think the header include directive #include <t8_forest/t8_forest_private.h> in the tutorial was added by mistake. As its name implies, it is an internal header that is not part of the public API of t8code and thus should not be used in the tutorial.

By the way, you can also compile the tutorials using the -DT8CODE_BUILD_TUTORIALS=ON option with the CMake build system and the autotools build system builds them by default.

Linking this solved issue to the review for JOSS I am doing: openjournals/joss-reviews#6887