[Dune] Installation of dune pdelab
Peter Meisrimel
peter.meisrimel at na.lu.se
Wed Jan 22 10:12:11 CET 2020
Hi,
latexmk did the trick for automatically building the latex documents.
Also what I apparently was missing was a opts file to that defines
"dune_symlink_to_source_files". This fixed the
> CMake Error at CMakeLists.txt:3 (dune_symlink_to_source_files):
> Unknown CMake command "dune_symlink_to_source_files".
I noticed that from the instructions of the iwr-course.
Thanks a lot, it is running now!
Best regards, Peter
On 18/01/2020 09:41, René Heß wrote:
> Hi,
>
> I think for building the PDF documentation you need LaTeX and latexmk (a
> utility program for building latex documents). Then you should build
> dune-pdelab-tutorials through dunecontontrol:
>
> ./dune-common/bin/dunecontrol --module=dune-pdelab-tutorials all
>
> This should already build all the pdfs and you should be able to see
> that in the command line output. If you build like this the single pdfs
> can be found in the build directory of the tutorials:
>
> cd dune-pdelab-tutorials/build_cmake/tutorial00/doc/
>
> (Or something very similar, I didn't check.)
>
> Some notes:
>
> - If you read through the exercises of the tutorials you will realize
> that a different folder structure is used. Just make sure that you
> know where to find your source directories and where to find the build
> directories.
>
> - The setup described in the exercises comes from our annual dune-pdelab
> course. You can find it here:
>
> https://gitlab.dune-project.org/dune-course/iwr-course-2019
>
> You could get all the modules in this setup by using:
>
> git clone --recursive https://gitlab.dune-project.org/dune-course/iwr-course-2019.git
>
> Running ./install (as user) should build the modules (it doesn't
> install anything it just calls dunecontrol).
>
>
> Best regards,
> René
>
> Peter Meisrimel <peter.meisrimel at na.lu.se> writes:
>
>> Hej,
>>
>> thanks, also to Markus.
>>
>> I tried several of the suggested approaches and simply not installing it
>> worked and I could build pdelab and pdelab-tutorials.
>>
>> I had also tried the make doc run that Markus suggested, but that didn't
>> quite work either, I have LaTeX installed though.
>>
>> I am having some problem getting the tutorials running right now. As a
>> recap:
>>
>> 1.I build the core modules via ./dune-common/bin/dunecontrol all.
>>
>> 2. Tested the "hello world" by creating and building a new duneproject,
>> as suggested in the getting started guide. This worked.
>>
>> 3. Build pdelab (and pdelab-tutorials) via ./dune-common/bin/dunecontrol
>> --module=dune-pdelab all
>>
>> 4. Running cmake .in /tutorials03/src gives me
>>
>>> CMake Error at CMakeLists.txt:3 (dune_symlink_to_source_files):
>>> Unknown CMake command "dune_symlink_to_source_files".
>>>
>> Similarly, running cmake . in /tutorials03 gives me
>>
>>> CMake Error at exercise/doc/CMakeLists.txt:1 (add_latexmk_document):
>>> Unknown CMake command "add_latexmk_document".
>> I'm have cmake3.10.2 and pdflatex 3.14159265-2.6-1.40.18 (TeX Live
>> 2017/Debian) installed.
>>
>> Any help would be appreciated.
>>
>> Also a question on a more general note:
>>
>> I am working on methods for coupled systems of PDEs, where the PDEs come
>> from existing codes. I am trying to use Dune to create such an example
>> for coupling. We picked Dune since I need a C++ interface and certain
>> level of accessibility, that e.g. OpenFOAM does not give me.
>>
>> My goal is to have a problem class, that is using Dune internally, with
>> a time-stepping function that I am calling from my coupling code. I am
>> not looking to implement whole new problems, but rather build on
>> existing ones to add a coupling via boundaries.
>>
>> From looking at the different modules, pdelab and the tutorials seem
>> like the logical starting point, but please let me know if there are
>> some other resources/modules I should be aware of.
>>
>> Best regards and thanks,
>>
>> Peter
--
Peter Meisrimel
PhD Student
Numerical Analysis
Lund University
More information about the Dune
mailing list