Re: [deal.II] Installing dealii on MacOS and step-40: .dmg file or cloning the repo?

2021-03-17 Thread bob bill
Thanks for your answer. 

> My personal option is to install the dmg, then recompile the library (to 
have the master version).

So I have to install the dmg, even if I still have the library installed 
from GitHub with the command line procedure ? 

If so, once I installed the dmg successfully , how can I "recompile the 
library"? 


Best,
Lukas

Il giorno mercoledì 17 marzo 2021 alle 07:57:14 UTC+1 luca@gmail.com ha 
scritto:

>
>
> Il giorno 16 mar 2021, alle ore 23:56, bob bill  ha 
> scritto:
>
> 1) If I install dealii by using the prepackaged .dmg file, will I have all 
> the libraries to compile and run step-40?
>
>
> Yes. 
>
> 2) Is there a way to install dealii and have all those libraries? I've 
> seen the MacOS instructions, but I can't find a workaround for my problem. 
> Should I install PETSc (and the others) manually on my laptop? 
>
> The dmg contains all of the supported external libraries. My personal 
> option is to install the dmg, then recompile the library (to have the 
> master version).
>
> Best, 
> Luca. 
>
>
>

-- 
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/b0f44c4d-9e57-4e6b-9b83-36b6c13de71dn%40googlegroups.com.


Re: [deal.II] Installing dealii on MacOS and step-40: .dmg file or cloning the repo?

2021-03-17 Thread luca.heltai
If you install the dmg package, and compile the library just like you did 
before *within the terminal that opens when you click on the deal.II app*, the 
compilation process would find correctly all the installed libraries.

Best,
Luca. 

> On 17 Mar 2021, at 10:08, bob bill  wrote:
> 
> Thanks for your answer. 
> 
> > My personal option is to install the dmg, then recompile the library (to 
> > have the master version).
> 
> So I have to install the dmg, even if I still have the library installed from 
> GitHub with the command line procedure ? 
> 
> If so, once I installed the dmg successfully , how can I "recompile the 
> library"? 
> 
> 
> Best,
> Lukas
> 
> Il giorno mercoledì 17 marzo 2021 alle 07:57:14 UTC+1 luca@gmail.com ha 
> scritto:
> 
> 
>> Il giorno 16 mar 2021, alle ore 23:56, bob bill  ha 
>> scritto:
>> 
>> 1) If I install dealii by using the prepackaged .dmg file, will I have all 
>> the libraries to compile and run step-40?
>> 
> 
> Yes. 
> 
>> 2) Is there a way to install dealii and have all those libraries? I've seen 
>> the MacOS instructions, but I can't find a workaround for my problem. Should 
>> I install PETSc (and the others) manually on my laptop? 
>> 
>> 
> The dmg contains all of the supported external libraries. My personal option 
> is to install the dmg, then recompile the library (to have the master 
> version).
> 
> Best, 
> Luca. 
> 
> 
> 
> -- 
> 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/b0f44c4d-9e57-4e6b-9b83-36b6c13de71dn%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/261F8166-C6D9-4B94-8CC1-5C6931F65B34%40gmail.com.


Re: [deal.II] Installing dealii on MacOS and step-40: .dmg file or cloning the repo?

2021-03-17 Thread bob bill
I compiled successfully the library within the deal.II app terminal. Then I 
compiled step-1, and after make run I obtain the following

*/usr/local/bin/deal_9.3.0-pre/include/deal.II/base/config.h:503:1: error: 
static_assert failed due to requirement '107000 == 10 * 1 + 100 * 74 + 
0' "The version number of boost that you are compiling with does not match 
the version number of boost found during deal.II's configuration step. This 
leads to difficult to understand bugs and is not supported. Please check 
that you have set up your application with the same version of boost as 
deal.II."*
which I believe is due to the fact that the .dmg refers to version *9.2.0*, 
while the GitHub version is *9.3.0*. 

Should I just install the 9.2.0 version (i.e. unpack the 
dealii-9.2.0.tar.gz and compile within the deal.II app terminal as before) 
in order to fix this?

Thanks,
Lukas


Il giorno mercoledì 17 marzo 2021 alle 11:41:09 UTC+1 luca@gmail.com ha 
scritto:

> If you install the dmg package, and compile the library just like you did 
> before *within the terminal that opens when you click on the deal.II app*, 
> the compilation process would find correctly all the installed libraries.
>
> Best,
> Luca. 
>
> > On 17 Mar 2021, at 10:08, bob bill  wrote:
> > 
> > Thanks for your answer. 
> > 
> > > My personal option is to install the dmg, then recompile the library 
> (to have the master version).
> > 
> > So I have to install the dmg, even if I still have the library installed 
> from GitHub with the command line procedure ? 
> > 
> > If so, once I installed the dmg successfully , how can I "recompile the 
> library"? 
> > 
> > 
> > Best,
> > Lukas
> > 
> > Il giorno mercoledì 17 marzo 2021 alle 07:57:14 UTC+1 luca@gmail.com 
> ha scritto:
> > 
> > 
> >> Il giorno 16 mar 2021, alle ore 23:56, bob bill  ha 
> scritto:
> >> 
> >> 1) If I install dealii by using the prepackaged .dmg file, will I have 
> all the libraries to compile and run step-40?
> >> 
> > 
> > Yes. 
> > 
> >> 2) Is there a way to install dealii and have all those libraries? I've 
> seen the MacOS instructions, but I can't find a workaround for my problem. 
> Should I install PETSc (and the others) manually on my laptop? 
> >> 
> >> 
> > The dmg contains all of the supported external libraries. My personal 
> option is to install the dmg, then recompile the library (to have the 
> master version).
> > 
> > Best, 
> > Luca. 
> > 
> > 
> > 
> > -- 
> > 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+un...@googlegroups.com.
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dealii/b0f44c4d-9e57-4e6b-9b83-36b6c13de71dn%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/1c2bfb58-4c5c-4130-936e-512d6d48f1d1n%40googlegroups.com.


Re: [deal.II] Installing dealii on MacOS and step-40: .dmg file or cloning the repo?

2021-03-17 Thread bob bill
Okay, here's what I did:
- installed the .dmg file

- I unpacked the .tar.gz 9.2.0 version and installed it in /usr/local/bin 
using the deal.II app terminal

Now, *from within the deal.II app* terminal, I can compile and run *also* 
step-(40, 17, ...) both from:

/Applications/deal.II.app/Contents/Resources/examples

and

/Desktop/dealii-9.2.0/examples/ (i.e. the source directory)


If I try to compile step-40 with a normal terminal window, I got the usual 
error 

*However, the deal.II library found at /usr/local/bin/deal_9.2.0 was 
configured with these options*

*  DEAL_II_WITH_PETSC = OFF*

*  DEAL_II_PETSC_WITH_COMPLEX = *

*  DEAL_II_WITH_P4EST = OFF*

*  DEAL_II_WITH_TRILINOS = OFF*

*  which conflict with the requirements.*

This is expected right? I mean, I should use the deal.II app terminal to 
compile my future own deal.II projects, right?


Thanks for your patience.
Best, Lukas



Il giorno mercoledì 17 marzo 2021 alle 12:55:38 UTC+1 bob bill ha scritto:

> I compiled successfully the library within the deal.II app terminal. Then 
> I compiled step-1, and after make run I obtain the following
>
> */usr/local/bin/deal_9.3.0-pre/include/deal.II/base/config.h:503:1: error: 
> static_assert failed due to requirement '107000 == 10 * 1 + 100 * 74 + 
> 0' "The version number of boost that you are compiling with does not match 
> the version number of boost found during deal.II's configuration step. This 
> leads to difficult to understand bugs and is not supported. Please check 
> that you have set up your application with the same version of boost as 
> deal.II."*
> which I believe is due to the fact that the .dmg refers to version *9.2.0*, 
> while the GitHub version is *9.3.0*. 
>
> Should I just install the 9.2.0 version (i.e. unpack the 
> dealii-9.2.0.tar.gz and compile within the deal.II app terminal as before) 
> in order to fix this?
>
> Thanks,
> Lukas
>
>
> Il giorno mercoledì 17 marzo 2021 alle 11:41:09 UTC+1 luca@gmail.com 
> ha scritto:
>
>> If you install the dmg package, and compile the library just like you did 
>> before *within the terminal that opens when you click on the deal.II app*, 
>> the compilation process would find correctly all the installed libraries. 
>>
>> Best, 
>> Luca. 
>>
>> > On 17 Mar 2021, at 10:08, bob bill  wrote: 
>> > 
>> > Thanks for your answer. 
>> > 
>> > > My personal option is to install the dmg, then recompile the library 
>> (to have the master version). 
>> > 
>> > So I have to install the dmg, even if I still have the library 
>> installed from GitHub with the command line procedure ? 
>> > 
>> > If so, once I installed the dmg successfully , how can I "recompile the 
>> library"? 
>> > 
>> > 
>> > Best, 
>> > Lukas 
>> > 
>> > Il giorno mercoledì 17 marzo 2021 alle 07:57:14 UTC+1 
>> luca@gmail.com ha scritto: 
>> > 
>> > 
>> >> Il giorno 16 mar 2021, alle ore 23:56, bob bill  ha 
>> scritto: 
>> >> 
>> >> 1) If I install dealii by using the prepackaged .dmg file, will I have 
>> all the libraries to compile and run step-40? 
>> >> 
>> > 
>> > Yes. 
>> > 
>> >> 2) Is there a way to install dealii and have all those libraries? I've 
>> seen the MacOS instructions, but I can't find a workaround for my problem. 
>> Should I install PETSc (and the others) manually on my laptop? 
>> >> 
>> >> 
>> > The dmg contains all of the supported external libraries. My personal 
>> option is to install the dmg, then recompile the library (to have the 
>> master version). 
>> > 
>> > Best, 
>> > Luca. 
>> > 
>> > 
>> > 
>> > -- 
>> > 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+un...@googlegroups.com. 
>> > To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/dealii/b0f44c4d-9e57-4e6b-9b83-36b6c13de71dn%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/5ba8c193-2b59-4698-a54e-6eb2efca2203n%40googlegroups.com.


Re: [deal.II] Installing dealii on MacOS and step-40: .dmg file or cloning the repo?

2021-03-17 Thread bob bill
Okay, here's what I did:
1) installed the .dmg file
2) I unpacked the .tar.gz 9.2.0 version and installed it in /usr/local/bin 
using the deal.II app terminal

Now, *from within the deal.II app* terminal, I can compile step-40 and all 
the others that are located at 

/Applications/deal.II.app/Contents/Resources/examples


But if I try to compile step-40 (always within the deal.II app terminal) 
located at 

/Desktop/dealii-9.2.0/examples/ (i.e. the source directory, not in the 
folder above)

I got this error:

* However, the deal.II library found at /usr/local/bin/deal_9.2.0 was 
configured with these options*

*  DEAL_II_WITH_PETSC = OFF*

*  DEAL_II_PETSC_WITH_COMPLEX = *

*  DEAL_II_WITH_P4EST = OFF*

*  DEAL_II_WITH_TRILINOS = OFF*

*  which conflict with the requirements.*

The problem is that it's not using the "setup 
/Applications/deal.II.app/Contents/Resources/Libraries", but this is 
happening *for step-40 only!* Indeed, if I try to compile step-50( 
17,56,...) it compiles, since it's using the correct setup. 

How is this possible?



Thanks for your patience.
Best, Lukas

Il giorno mercoledì 17 marzo 2021 alle 11:41:09 UTC+1 luca@gmail.com ha 
scritto:

> If you install the dmg package, and compile the library just like you did 
> before *within the terminal that opens when you click on the deal.II app*, 
> the compilation process would find correctly all the installed libraries.
>
> Best,
> Luca. 
>
> > On 17 Mar 2021, at 10:08, bob bill  wrote:
> > 
> > Thanks for your answer. 
> > 
> > > My personal option is to install the dmg, then recompile the library 
> (to have the master version).
> > 
> > So I have to install the dmg, even if I still have the library installed 
> from GitHub with the command line procedure ? 
> > 
> > If so, once I installed the dmg successfully , how can I "recompile the 
> library"? 
> > 
> > 
> > Best,
> > Lukas
> > 
> > Il giorno mercoledì 17 marzo 2021 alle 07:57:14 UTC+1 luca@gmail.com 
> ha scritto:
> > 
> > 
> >> Il giorno 16 mar 2021, alle ore 23:56, bob bill  ha 
> scritto:
> >> 
> >> 1) If I install dealii by using the prepackaged .dmg file, will I have 
> all the libraries to compile and run step-40?
> >> 
> > 
> > Yes. 
> > 
> >> 2) Is there a way to install dealii and have all those libraries? I've 
> seen the MacOS instructions, but I can't find a workaround for my problem. 
> Should I install PETSc (and the others) manually on my laptop? 
> >> 
> >> 
> > The dmg contains all of the supported external libraries. My personal 
> option is to install the dmg, then recompile the library (to have the 
> master version).
> > 
> > Best, 
> > Luca. 
> > 
> > 
> > 
> > -- 
> > 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+un...@googlegroups.com.
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dealii/b0f44c4d-9e57-4e6b-9b83-36b6c13de71dn%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/f2f27bf5-f891-40c8-8c42-fd9956cc1c4fn%40googlegroups.com.


Re: [deal.II] Installing dealii on MacOS and step-40: .dmg file or cloning the repo?

2021-03-17 Thread bob bill

After removing *CMakeCache.txt* and *CMakeFiles* folder in 
/examples/step-40, I can compile and run it, both within deal.II app 
terminal and with a common terminal.

One last thing: are the steps I described above  (.dmg + cloning) the usual 
way to install dealii with MacOS? It seems to me like if I installed the 
library twice.


Thanks again,
Lukas

Il giorno mercoledì 17 marzo 2021 alle 16:36:46 UTC+1 bob bill ha scritto:

> Okay, here's what I did:
> 1) installed the .dmg file
> 2) I unpacked the .tar.gz 9.2.0 version and installed it in /usr/local/bin 
> using the deal.II app terminal
>
> Now, *from within the deal.II app* terminal, I can compile step-40 and all 
> the others that are located at 
>
> /Applications/deal.II.app/Contents/Resources/examples
>
>
> But if I try to compile step-40 (always within the deal.II app terminal) 
> located at 
>
> /Desktop/dealii-9.2.0/examples/ (i.e. the source directory, not in the 
> folder above)
>
> I got this error:
>
> * However, the deal.II library found at /usr/local/bin/deal_9.2.0 was 
> configured with these options*
>
> *  DEAL_II_WITH_PETSC = OFF*
>
> *  DEAL_II_PETSC_WITH_COMPLEX = *
>
> *  DEAL_II_WITH_P4EST = OFF*
>
> *  DEAL_II_WITH_TRILINOS = OFF*
>
> *  which conflict with the requirements.*
>
> The problem is that it's not using the "setup 
> /Applications/deal.II.app/Contents/Resources/Libraries", but this is 
> happening *for step-40 only!* Indeed, if I try to compile step-50( 
> 17,56,...) it compiles, since it's using the correct setup. 
>
> How is this possible?
>
>
>
> Thanks for your patience.
> Best, Lukas
>
> Il giorno mercoledì 17 marzo 2021 alle 11:41:09 UTC+1 luca@gmail.com 
> ha scritto:
>
>> If you install the dmg package, and compile the library just like you did 
>> before *within the terminal that opens when you click on the deal.II app*, 
>> the compilation process would find correctly all the installed libraries. 
>>
>> Best, 
>> Luca. 
>>
>> > On 17 Mar 2021, at 10:08, bob bill  wrote: 
>> > 
>> > Thanks for your answer. 
>> > 
>> > > My personal option is to install the dmg, then recompile the library 
>> (to have the master version). 
>> > 
>> > So I have to install the dmg, even if I still have the library 
>> installed from GitHub with the command line procedure ? 
>> > 
>> > If so, once I installed the dmg successfully , how can I "recompile the 
>> library"? 
>> > 
>> > 
>> > Best, 
>> > Lukas 
>> > 
>> > Il giorno mercoledì 17 marzo 2021 alle 07:57:14 UTC+1 
>> luca@gmail.com ha scritto: 
>> > 
>> > 
>> >> Il giorno 16 mar 2021, alle ore 23:56, bob bill  ha 
>> scritto: 
>> >> 
>> >> 1) If I install dealii by using the prepackaged .dmg file, will I have 
>> all the libraries to compile and run step-40? 
>> >> 
>> > 
>> > Yes. 
>> > 
>> >> 2) Is there a way to install dealii and have all those libraries? I've 
>> seen the MacOS instructions, but I can't find a workaround for my problem. 
>> Should I install PETSc (and the others) manually on my laptop? 
>> >> 
>> >> 
>> > The dmg contains all of the supported external libraries. My personal 
>> option is to install the dmg, then recompile the library (to have the 
>> master version). 
>> > 
>> > Best, 
>> > Luca. 
>> > 
>> > 
>> > 
>> > -- 
>> > 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+un...@googlegroups.com. 
>> > To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/dealii/b0f44c4d-9e57-4e6b-9b83-36b6c13de71dn%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/78a474e2-07a5-485e-acc6-097c16f226c6n%40googlegroups.com.


Re: [deal.II] Installing dealii on MacOS and step-40: .dmg file or cloning the repo?

2021-03-17 Thread Luca Heltai
Dear Bob,

The dmg package comes already with deal.II 9.2 installed, so your compilation 
is not necessary.

As far as your problem is concerned, can you try to start from a clean 
directory? Remove everything except the cc file and the CMakeLists.txt file and 
try again. 

Step 40 works for me using the installation from the dmg file directly. 

Luca

> Il giorno 17 mar 2021, alle ore 16:36, bob bill  ha scritto:
> 
> Okay, here's what I did:
> 1) installed the .dmg file
> 2) I unpacked the .tar.gz 9.2.0 version and installed it in /usr/local/bin 
> using the deal.II app terminal
> 
> Now, *from within the deal.II app* terminal, I can compile step-40 and all 
> the others that are located at 
> 
> /Applications/deal.II.app/Contents/Resources/examples
> 
> 
> But if I try to compile step-40 (always within the deal.II app terminal) 
> located at 
> 
> /Desktop/dealii-9.2.0/examples/ (i.e. the source directory, not in the folder 
> above)
> 
> I got this error:
>  However, the deal.II library found at /usr/local/bin/deal_9.2.0 was 
> configured with these options
> 
>   DEAL_II_WITH_PETSC = OFF
> 
>   DEAL_II_PETSC_WITH_COMPLEX = 
> 
>   DEAL_II_WITH_P4EST = OFF
> 
>   DEAL_II_WITH_TRILINOS = OFF
> 
>   which conflict with the requirements.
> 
> 
> The problem is that it's not using the "setup 
> /Applications/deal.II.app/Contents/Resources/Libraries", but this is 
> happening for step-40 only! Indeed, if I try to compile step-50( 17,56,...) 
> it compiles, since it's using the correct setup. 
> 
> How is this possible?
> 
> 
> 
> Thanks for your patience.
> Best, Lukas
> 
> Il giorno mercoledì 17 marzo 2021 alle 11:41:09 UTC+1 luca@gmail.com ha 
> scritto:
>> If you install the dmg package, and compile the library just like you did 
>> before *within the terminal that opens when you click on the deal.II app*, 
>> the compilation process would find correctly all the installed libraries. 
>> 
>> Best, 
>> Luca. 
>> 
>> > On 17 Mar 2021, at 10:08, bob bill  wrote: 
>> > 
>> > Thanks for your answer. 
>> > 
>> > > My personal option is to install the dmg, then recompile the library (to 
>> > > have the master version). 
>> > 
>> > So I have to install the dmg, even if I still have the library installed 
>> > from GitHub with the command line procedure ? 
>> > 
>> > If so, once I installed the dmg successfully , how can I "recompile the 
>> > library"? 
>> > 
>> > 
>> > Best, 
>> > Lukas 
>> > 
>> > Il giorno mercoledì 17 marzo 2021 alle 07:57:14 UTC+1 luca@gmail.com 
>> > ha scritto: 
>> > 
>> > 
>> >> Il giorno 16 mar 2021, alle ore 23:56, bob bill  ha 
>> >> scritto: 
>> >> 
>> >> 1) If I install dealii by using the prepackaged .dmg file, will I have 
>> >> all the libraries to compile and run step-40? 
>> >> 
>> > 
>> > Yes. 
>> > 
>> >> 2) Is there a way to install dealii and have all those libraries? I've 
>> >> seen the MacOS instructions, but I can't find a workaround for my 
>> >> problem. Should I install PETSc (and the others) manually on my laptop? 
>> >> 
>> >> 
>> > The dmg contains all of the supported external libraries. My personal 
>> > option is to install the dmg, then recompile the library (to have the 
>> > master version). 
>> > 
>> > Best, 
>> > Luca. 
>> > 
>> > 
>> > 
>> > -- 
>> > 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+un...@googlegroups.com. 
>> > To view this discussion on the web visit 
>> > https://groups.google.com/d/msgid/dealii/b0f44c4d-9e57-4e6b-9b83-36b6c13de71dn%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/f2f27bf5-f891-40c8-8c42-fd9956cc1c4fn%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/AADD4623-360C-46BB-AEC9-1CFA51866605%40gmail.com.


Re: [deal.II] Installing dealii on MacOS and step-40: .dmg file or cloning the repo?

2021-03-17 Thread bob bill
Great! I followed your suggestion and now it compiles and run (with a 
normal terminal and also within the deal.ii app terminal). Thanks so much 
for the check.


> The dmg package comes already with deal.II 9.2 installed, so your 
compilation is not necessary.

So far I have deal.II 9.2.0 installed with .dmg, but also the "unnecessary" 
installation in /usr/local/bin/deal_9.2.0 obtained with .tar.gz. 
To remove the latter, is it sufficient to drag the deal_9.2.0 folder into 
bin? 

Thanks 

Il giorno mercoledì 17 marzo 2021 alle 18:13:46 UTC+1 luca@gmail.com ha 
scritto:

> Dear Bob,
>
> The dmg package comes already with deal.II 9.2 installed, so your 
> compilation is not necessary.
>
> As far as your problem is concerned, can you try to start from a clean 
> directory? Remove everything except the cc file and the CMakeLists.txt file 
> and try again. 
>
> Step 40 works for me using the installation from the dmg file directly. 
>
> Luca
>
> Il giorno 17 mar 2021, alle ore 16:36, bob bill  ha 
> scritto:
>
> Okay, here's what I did:
>
> 1) installed the .dmg file
> 2) I unpacked the .tar.gz 9.2.0 version and installed it in /usr/local/bin 
> using the deal.II app terminal
>
> Now, *from within the deal.II app* terminal, I can compile step-40 and all 
> the others that are located at 
>
> /Applications/deal.II.app/Contents/Resources/examples
>
>
> But if I try to compile step-40 (always within the deal.II app terminal) 
> located at 
>
> /Desktop/dealii-9.2.0/examples/ (i.e. the source directory, not in the 
> folder above)
>
> I got this error:
>
> * However, the deal.II library found at /usr/local/bin/deal_9.2.0 was 
> configured with these options*
>
> *  DEAL_II_WITH_PETSC = OFF*
>
> *  DEAL_II_PETSC_WITH_COMPLEX = *
>
> *  DEAL_II_WITH_P4EST = OFF*
>
> *  DEAL_II_WITH_TRILINOS = OFF*
>
> *  which conflict with the requirements.*
>
> The problem is that it's not using the "setup 
> /Applications/deal.II.app/Contents/Resources/Libraries", but this is 
> happening *for step-40 only!* Indeed, if I try to compile step-50( 
> 17,56,...) it compiles, since it's using the correct setup. 
>
> How is this possible?
>
>
>
> Thanks for your patience.
> Best, Lukas
>
> Il giorno mercoledì 17 marzo 2021 alle 11:41:09 UTC+1 luca@gmail.com 
> ha scritto:
>
>> If you install the dmg package, and compile the library just like you did 
>> before *within the terminal that opens when you click on the deal.II app*, 
>> the compilation process would find correctly all the installed libraries. 
>>
>> Best, 
>> Luca. 
>>
>> > On 17 Mar 2021, at 10:08, bob bill  wrote: 
>> > 
>> > Thanks for your answer. 
>> > 
>> > > My personal option is to install the dmg, then recompile the library 
>> (to have the master version). 
>> > 
>> > So I have to install the dmg, even if I still have the library 
>> installed from GitHub with the command line procedure ? 
>> > 
>> > If so, once I installed the dmg successfully , how can I "recompile the 
>> library"? 
>> > 
>> > 
>> > Best, 
>> > Lukas 
>> > 
>> > Il giorno mercoledì 17 marzo 2021 alle 07:57:14 UTC+1 
>> luca@gmail.com ha scritto: 
>> > 
>> > 
>> >> Il giorno 16 mar 2021, alle ore 23:56, bob bill  ha 
>> scritto: 
>> >> 
>> >> 1) If I install dealii by using the prepackaged .dmg file, will I have 
>> all the libraries to compile and run step-40? 
>> >> 
>> > 
>> > Yes. 
>> > 
>> >> 2) Is there a way to install dealii and have all those libraries? I've 
>> seen the MacOS instructions, but I can't find a workaround for my problem. 
>> Should I install PETSc (and the others) manually on my laptop? 
>> >> 
>> >> 
>> > The dmg contains all of the supported external libraries. My personal 
>> option is to install the dmg, then recompile the library (to have the 
>> master version). 
>> > 
>> > Best, 
>> > Luca. 
>> > 
>> > 
>> > 
>> > -- 
>> > 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+un...@googlegroups.com. 
>> > To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/dealii/b0f44c4d-9e57-4e6b-9b83-36b6c13de71dn%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+un...@googlegroups.com.
>
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dealii/f2f27bf5-f891-40c8-8c42-fd9956cc1c4fn%40googlegroups.com
>  
> 

Re: [deal.II] Installing dealii on MacOS and step-40: .dmg file or cloning the repo?

2021-03-17 Thread Luca Heltai
Il giorno 17 mar 2021, alle ore 18:30, bob bill  ha scritto:
> 
> So far I have deal.II 9.2.0 installed with .dmg, but also the "unnecessary" 
> installation in /usr/local/bin/deal_9.2.0 obtained with .tar.gz. 
> To remove the latter, is it sufficient to drag the deal_9.2.0 folder into 
> bin? 

Yes.
:-)

-- 
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/4930A894-A246-477E-B618-BE576BF29D99%40gmail.com.


Re: [deal.II] Installing dealii on MacOS and step-40: .dmg file or cloning the repo?

2021-03-17 Thread bob bill

Many thanks for your support! Everything is clear now :-)
Il giorno mercoledì 17 marzo 2021 alle 20:39:27 UTC+1 luca@gmail.com ha 
scritto:

> Il giorno 17 mar 2021, alle ore 18:30, bob bill  ha 
> scritto:
> > 
> > So far I have deal.II 9.2.0 installed with .dmg, but also the 
> "unnecessary" installation in /usr/local/bin/deal_9.2.0 obtained with 
> .tar.gz. 
> > To remove the latter, is it sufficient to drag the deal_9.2.0 folder 
> into bin? 
>
> Yes.
> :-)

-- 
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/5cd4eb36-d7f9-47a9-849b-c52b0712985fn%40googlegroups.com.


Re: [deal.II] treatment of handing nodes in the heat conduction problem

2021-03-17 Thread Anton Ermakov
Thanks for the reply. I think I got it. Basically, I had to manually place 
the local matrices into the global matrix, without taking into account the 
hanging node constraints, which are later taken care of by

*constraints.condense(system_matrix, system_rhs);*
In the case of the mass matrix, I had to use this:

* for (unsigned int i = 0; i < dofs_per_cell; ++i)*

* for (unsigned int j = 0; j < dofs_per_cell; ++j)*

* 
mass_matrix.add(local_dof_indices[i], local_dof_indices[j], cell_matrix(i, 
j));*

Instead of 

* constraints.distribute_local_to_global(cell_matrix, local_dof_indices, 
mass_matrix);*

Anton.



On Tuesday, March 16, 2021 at 3:22:54 AM UTC-7 Wolfgang Bangerth wrote:

> On 3/16/21 6:12 AM, Anton Ermakov wrote:
> > 
> > I attach the minimally changed Step-26 code to illustrate the problem. 
> It is 
> > different from the original step-26 in three important  places:
> > 
> > 1) in the run function, the mesh is refined in a corner
> > 2) in the setup_system the mass and Laplace matrices are manually 
> created.
> > 3) Initial temperature field is set to 100 K and the boundary condition 
> is 
> > temperature fixed at 50 K. No source term.
>
> I don't immediately see a problem. What happens if you use your matrices 
> with 
> the exact set up of step-26? Simplify your problem: Make one change at a 
> time, 
> not three.
>
> If you do get different results, compare the matrix you compute with the 
> one 
> computed by the MatrixTools functions. How are they different? And why?
>
> Best
> W.
>
>
> -- 
> 
> Wolfgang Bangerth email: bang...@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/665c688f-fca3-4c21-b56b-7193a09cdb47n%40googlegroups.com.


Re: [deal.II] treatment of handing nodes in the heat conduction problem

2021-03-17 Thread Wolfgang Bangerth

On 3/17/21 10:41 PM, Anton Ermakov wrote:
Thanks for the reply. I think I got it. Basically, I had to manually place the 
local matrices into the global matrix, without taking into account the hanging 
node constraints, which are later taken care of by


/constraints.condense(system_matrix, system_rhs);/

In the case of the mass matrix, I had to use this:

/for (unsigned int i = 0; i < dofs_per_cell; ++i)/

/for (unsigned int j = 0; j < dofs_per_cell; ++j)/

/mass_matrix.add(local_dof_indices[i], local_dof_indices[j], cell_matrix(i, 
j));/

Instead of

/constraints.distribute_local_to_global(cell_matrix, local_dof_indices, 
mass_matrix);/


Ah yes, that makes sense. So do I understand right that whatever you have now 
actually works?


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/5022fa2c-98ef-697c-9372-06eb04d96d45%40colostate.edu.