[deal.II] Constrain specific dofs to given value

2018-05-16 Thread Pai Liu
Hi all, I want to solve a 2D linear elastic problem with a Dirichlet boundary condition that keeps only one node fixed. And I encountered convergence problem by modifying codes in step-8 as following: In the setup_system() function, I used the "add_line" functions to contrain dof 0 and dof 1 t

[deal.II] Re: Problem about modifying CMakeList.txt to add library

2018-05-16 Thread Pai Liu
Dear David Wells, Thank you for your reply! Your explanation helps me to understand this process better. Yestoday I tried to use "FIND_PACKAGE" as following and it works: _ FIND_PACKAGE(Armadillo) INCLUDE_DIRECTORIES(${ARMADILLO_INCLUDE_

[deal.II] Re: Problem about modifying CMakeList.txt to add library

2018-05-16 Thread Pai Liu
Dear Daniel Arndt, Thank you for your reply! The link is very helpful! Now my CMakeList.txt works! Best, Pai On Thursday, May 17, 2018 at 5:47:11 AM UTC+8, Daniel Arndt wrote: > > Pal, > > We also just updated the CMakeLists.txt file for an example in our > code-gallery that uses armadillo. >

[deal.II] Re: Problem about modifying CMakeList.txt to add library

2018-05-16 Thread Daniel Arndt
Pal, We also just updated the CMakeLists.txt file for an example in our code-gallery that uses armadillo. You might want to look at https://github.com/dealii/code-gallery/blob/master/CeresFE/CMakeLists.txt. Best, Daniel -- The deal.II project is located at http://www.dealii.org/ For mailing l

[deal.II] Re: Problem about modifying CMakeList.txt to add library

2018-05-16 Thread David Wells
Hi Pai, I think that there is an easier way to do this. More exactly: armadillo should not be a target since we don't have to compile anything: we should just be able to specify the library we need to link against and (possibly) a path to the headers and be done. Have you installed armadillo i

[deal.II] Re: Error during configuration since 9.0.0

2018-05-16 Thread Pascal Kraft
I think the problem is the following: In the Ubuntu Package Sources for 18.04 the standard openmpi version of libscalapack is 2.0 while my system has 2.1.1 installed. I guess that causes the problems. I also checked and the problems only occur if MPI=ON and scalapack=ON. Otherwise everything is

Re: [deal.II] Re: Error during configuration since 9.0.0

2018-05-16 Thread Matthias Maier
On Wed, May 16, 2018, at 06:11 CDT, Pascal Kraft wrote: > Configuration now works if I explicitely switch scalapack off > (-DDEAL_II_WITH_SCALAPACK=OFF)... I will try to find out why. My guess is that scalapack was compiled against a different MPI version. Best, Matthias -- The deal.II proj

[deal.II] Re: Error during configuration since 9.0.0

2018-05-16 Thread Pascal Kraft
Configuration now works if I explicitely switch scalapack off (-DDEAL_II_WITH_SCALAPACK=OFF)... I will try to find out why. Am Dienstag, 15. Mai 2018 19:38:03 UTC+2 schrieb Pascal Kraft: > > Dear Deal.ii devs, > > first off: Thanks for your great work and the many new features in 9.0.0! > I have

[deal.II] Re: Error during configuration since 9.0.0

2018-05-16 Thread Pascal Kraft
I have now tried compiling the code from the last error. First i simply used mpicc which worked fine. The command /usr/bin/c++-DMPI_WORKING_COMPILER -pedantic -fPIC -Wall -Wextra -Wpointer-arith -Wwrite-strings -Wsynth -Wsign-compare -Wswitch -Woverloaded-virtual -Wno-placement-new -Wno-dep