You will also need to set
-D DEAL_II_WITH_MPI=ON

On Tue, Sep 22, 2020 at 1:54 PM Daniel Arndt <d.arndt.m...@gmail.com> wrote:
>
> https://dealii.org/developer/readme.html#configuration-options says to call 
> cmake with -DPETSC_DIR=/path/to/petsc -DPETSC_ARCH=architecture.
> I normally just set the environment variable PETSC_DIR and configure deal.II 
> with -DDEAL_II_WITH_PETSC=ON
>
> Best,
> Daniel
>
> Am Di., 22. Sept. 2020 um 12:29 Uhr schrieb krishan...@gmail.com 
> <krishanu.se...@gmail.com>:
>>
>>
>> Hello,
>>
>> I tried to run step-18 and initially received the following error message:
>>
>>  Error! This tutorial requires a deal.II library that was configured with
>>   the following options:
>>
>>       DEAL_II_WITH_MPI = ON
>>       DEAL_II_WITH_PETSC = ON
>>       DEAL_II_PETSC_WITH_COMPLEX = OFF
>>
>>   However, the deal.II library found at
>>   /home/krishanu/Google_Drive/dealii/dealii_920/library_dealii_920 was
>>   configured with these options
>>
>>       DEAL_II_WITH_MPI = OFF
>>       DEAL_II_WITH_PETSC = OFF
>>       DEAL_II_PETSC_WITH_COMPLEX =
>>
>>   which conflict with the requirements.
>>
>> So, I used the following commands (from this link: 
>> https://www.dealii.org/current/external-libs/petsc.html) to install PETSC:
>>
>> tar xvzf petsc-x-y-z.tar.gz cd petsc-x-y-z
>> export PETSC_DIR=`pwd`
>> export PETSC_ARCH=x86_64
>> ./config/configure.py --with-shared=1 --with-x=0 --with-mpi=1 
>> --download-hypre=1
>> make
>> make test
>>
>> Then used the following commands to build, configure and install deal.ii
>>
>> mkdir build
>> cd build
>> cmake -DCMAKE_INSTALL_PREFIX=/path/to/install/dir ../deal.II
>>
>> But it seems that deal.ii did not auto detect PETSC and MPI as it showed the 
>> following among other configured features:
>>
>> Configured Features (DEAL_II_ALLOW_BUNDLED = ON, DEAL_II_ALLOW_AUTODETECTION 
>> = ON):
>>
>> #      ( DEAL_II_WITH_MPI = OFF )
>> #      ( DEAL_II_WITH_PETSC = OFF )
>>
>> I am wondering what I might be missing here. Could anyone please help?
>>
>>
>> --
>> 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 the Google Groups 
>> "deal.II User Group" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to dealii+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/dealii/cd2d891c-b80e-4502-b496-89378acd91c0n%40googlegroups.com.
>
> --
> 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 the Google Groups 
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dealii/CAOYDWbKOLYpHcu6MheA%2BW%3DPKneoip6aojq9o1-RsaY8MCSPWow%40mail.gmail.com.



-- 
Timo Heister
http://www.math.clemson.edu/~heister/

-- 
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 the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CAMRj59FEv5s-TUmgeYysxNfOZccDbMYBkOW5P2pUHPQm%2BSnV7Q%40mail.gmail.com.

Reply via email to