Hi Jean-Paul,

It was another to the point advice which resolved the issue completely.
Much appreciated.

Best,
Behrooz

On Sun, Jan 17, 2021 at 2:30 PM Jean-Paul Pelteret <jppelte...@gmail.com>
wrote:

> Hi Behrooz,
>
> When you install deal.II using Spack, it is completely isolated from the
> system environment. That way, you can install multiple versions of the same
> package without them conflicting with one another. Before you can use
> deal.II though spack, you populate all of the environment variables with
> the paths to deal.II and its dependencies. The quickest way to do this is
> using "spack load" which is documented here
> <https://spack.readthedocs.io/en/latest/command_index.html#spack-load>
> (spack's documentation) and here
> <https://github.com/dealii/dealii/wiki/deal.II-in-Spack#environment-modules>
> (the deal.II wiki). For you, this would mean running "spack load
> dealii@9.2" or something similar, and then simply running "cmake ." in
> the tutorial folder (don't forget to delete CMakeCache.txt first). You can
> also look into using filesystem views
> <https://spack.readthedocs.io/en/latest/workflows.html?highlight=filesystem%20view>
> and environment modules
> <https://spack.readthedocs.io/en/latest/environments.html> to the same
> effect.
>
> Best,
> Jean-Paul
>
> On 17.01.21 12:50, Behrooz Karami wrote:
>
> Hi Wolfgang,
>
> That's true but maybe I should have given a bit of a background here.
>
> I have three versions of deal.ii installed at the moment. The first one
> 9.0 installed through Spack, the second one 9.2 manually installed
> according to procedures described in the readme file; and the third one
> again 9.2 but installed through Spack.
>
> The reason for the third installation was exactly the same problem
> mentioned here (which happened after the 2nd installation). Meaning that
> during the 2nd installation I didn't call my required libraries . But as
> the third attempt I decided to use Spack as it was already available on the
> machine and could install all the libraries along the way.
> Finally the third installation was successful according to the output log.
> And when I check the config. files they are correct. I mean it seems that
> installation has been done with PETSc, MPI and all other required
> libraries. The configurations are also correct e.g. it has been indicated
> that:
>
> DEAL_II_WITH_MPI = ON
> DEAL_II_WITH_PETSC = ON
> DEAL_II_PETSC_WITH_COMPLEX = FALSE (not OFF!)
>
> I attach the config. files here as a reference.
>
> So to me still it seems that deal.ii is not looking at the right folder.
>
> I have not installed deal.ii in "/usr/local" but I could see that somehow
> it has been installed there (as well) probably by default! I guess it in
> fact has happened during the second installation. Because I got the same
> message when I was using the 2nd installation. I am not sure exactly which
> of my modifications resolved it but it was revealed to me that somehow I
> have a copy of deal.ii there which is called as a first choice.
>
> Regards,
> Behrooz
>
>
>
> On Sat, Jan 16, 2021 at 5:25 PM Wolfgang Bangerth <bange...@colostate.edu>
> wrote:
>
>> On 1/16/21 2:04 AM, Behrooz Karami wrote:
>> >
>> > 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 /usr/local was configured with
>> these
>> >    options
>> >
>> >        DEAL_II_WITH_MPI = OFF
>> >        DEAL_II_WITH_PETSC = OFF
>> >        DEAL_II_PETSC_WITH_COMPLEX =
>> >
>> > This is while I use the
>> > 'cmake -DDEAL_II_DIR=/path/to/the/source .'
>> > command to address the right configurations. Also when I check the
>> cmake
>> > configurations in installed folder they look OK and with correct
>> configurations.
>> > Could you please advise me on this issue as well?
>>
>> Behrooz -- the error message says what the problem is. step-18 requires
>> "DEAL_II_WITH_MPI=ON", but your installation has "DEAL_II_WITH_MPI=OFF",
>> and
>> similarly for PETSc. In order to run step-18, you need to install deal.II
>> with
>> a PETSc installation and with MPI installed, but you didn't. The steps
>> necessary to do that are listed in the doc/readme.html file.
>>
>> Best
>>   W.
>>
>> --
>> ------------------------------------------------------------------------
>> Wolfgang Bangerth          email:                 bange...@colostate.edu
>>                             www: http://www.math.colostate.edu/~bangerth/
>>
>> --
>> 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/f176c1af-b90b-6419-7c14-d823aea058f7%40colostate.edu
>> .
>>
> --
> 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/CAPPKNqbNm-b9YZq4fUOBRY0ZMLrTpXtbOenatNRv2sfLQZRtJQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/dealii/CAPPKNqbNm-b9YZq4fUOBRY0ZMLrTpXtbOenatNRv2sfLQZRtJQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
>
> --
> 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/d6683d4c-db78-ccea-13b5-0d9f9ebfca91%40gmail.com
> <https://groups.google.com/d/msgid/dealii/d6683d4c-db78-ccea-13b5-0d9f9ebfca91%40gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAPPKNqZkqF7UFmgzAMTJpREnsobRCnr8SjBe8Zy2sP7WUC9CUA%40mail.gmail.com.

Reply via email to