Install and running deal.II with latest debian package

181 views
Skip to first unread message

Matthew Rich

unread,
Jan 14, 2021, 12:22:39 AM1/14/21
to deal.II User Group
Hi,

I am new to deal.II and I wanted to mess with the tutorials. I am running the mint LDE distro of linux and just installed the package. per the website. On step one when you are just creating a mesh, I am getting an error regrading Sacado.h which appears to be a solver package external to deal.II. I was expecting the package management to cover all dependencies, so I am not sure how to proceed. I searched this group and no one else seems to have this error.

to get this error I simply touched a file called example1.cpp  and cut and pasted all the code from the tutorial in there.

initially tried compiling with g++ but that failed looking for mpi.h. I then switched mpiCC where I get fatal error: Sacado.hpp: No such file or directory.

I am not sure if I need to install something else to get off the ground.

Any help would be much appreciated.

Matt

Matthias Maier

unread,
Jan 14, 2021, 1:47:50 AM1/14/21
to dea...@googlegroups.com
Dear Matt,

You need to compile and link your source code with all include
directives ( -I <path> ) and external libraries. It is easiest to simply
use the CMake configuration that we ship with the examples.

I guess you installed the deal.II package via apt? If so, simply install
the doc package and required dependencies and toolchain:

sudo apt install libdeal.ii-dev libdeal.ii-doc cmake make

and (as user) copy the first example step to a convenient location:

cp -r /usr/share/doc/libdeal.ii-doc/examples/step-1 .
cd step-1
cmake .
make
make run

Best,
Matthias



On Wed, Jan 13, 2021, at 23:22 CST, Matthew Rich <mjri...@gmail.com> wrote:

> Hi,
>
> I am new to deal.II and I wanted to mess with the tutorials. I am running
> the mint LDE distro of linux and just installed the package. per the
> website. On step one when you are just creating a mesh, I am getting an
> error regrading Sacado.h which appears to be a solver package external to
> deal.II. I was expecting the package management to cover all dependencies,
> so I am not sure how to proceed. I searched this group and no one else
> seems to have this error.
>
> to get this error I simply touched a file called example1.cpp and cut and
> pasted all the code from the tutorial in there.
>
> initially tried compiling with g++ but that failed looking for mpi.h. I
> then switched mpiCC where I get *fatal error: Sacado.hpp: No such file or
> directory*.

Matthias Maier

unread,
Jan 14, 2021, 1:58:02 AM1/14/21
to dea...@googlegroups.com
All,

I have created an issue on github to track some much needed updates to
our documentation :-)

https://github.com/dealii/dealii/issues/11529

Best,
Matthias

Matthew Rich

unread,
Jan 14, 2021, 5:43:22 PM1/14/21
to dea...@googlegroups.com
Thank you for the instructions. Only tweak would be you need to explicitly specify the CMakechecklist file so

instead of just cmake

I had to type cmake CMakeLists.txt

Thanks again!

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "deal.II User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dealii/utGbcicbVkw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/87v9c0huoa.fsf%4043-1.org.
Reply all
Reply to author
Forward
0 new messages