Re: [deal.II] Re: Error in Reading Gmsh File in Dealii

2022-12-22 Thread Abbas
If you get stuck you can set the material ID manually after importing it 
with something like:

Point p ;
for (const auto &cell : triangulation.active_cell_iterators())
  {p=cell->center() ; 
   if(sqrt(p[0]^2+p[1]^2)set_material_id(1) ;
else
cell->set_material_id(2) ;
   }

It's a cheat and might be a bad idea if your geometry gets complicated 
though. 
On Thursday, December 22, 2022 at 5:23:35 PM UTC+2 deepika...@iitgoa.ac.in 
wrote:

> Thank you for your response.
> I have changed the 2d algorithm from tool -> option-> mesh. Now it is 
> showing that the mesh curvilinear is off. Still I am getting the same error 
> while reading the gmsh file in dealii. Please find the attached updated 
> mesh and the error message.
>
> [image: image.png]
> [image: image.png]
>
> Thanks
> Deepika
>
> On Thu, Dec 22, 2022 at 7:41 PM Bruno Turcksin  
> wrote:
>
>> Deepika,
>>
>> Can you try using a linear mesh instead of curvilinear one? Does that 
>> work?
>>
>> Best,
>>
>> Bruno
>>
>> On Thursday, December 22, 2022 at 1:47:32 AM UTC-5 
>> deepika...@iitgoa.ac.in wrote:
>>
>>> Hello Everyone,
>>>
>>> I have successfully read a gmsh file for one material in my code. Now I 
>>> am trying to read the gmsh file which has two different materials, but it 
>>> is showing the following error (see below). I am not able to understand the 
>>> meaning of the error message. Please help.
>>>
>>> [image: image.png]
>>> The gmsh geometry is also attached for reference.
>>> [image: image.png]
>>>
>>> Thanks & Regards,
>>> Deepika
>>>
>>> 
>>> **
>>> This e-mail is for the sole use of the intended recipient(s) and may
>>> contain confidential and privileged information. If you are not the
>>> intended recipient, please contact the sender by reply e-mail and destroy
>>> all copies and the original message. Any unauthorized review, use,
>>> disclosure, dissemination, forwarding, printing or copying of this email
>>> is strictly prohibited and appropriate legal action will be taken. 
>>> 
>>>  
>>>
>> -- 
>> 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/819f4a60-a64f-414c-b1a2-cc980f9c6b4bn%40googlegroups.com
>>  
>> 
>> .
>>
>
> **
> This e-mail is for the sole use of the intended recipient(s) and may
> contain confidential and privileged information. If you are not the
> intended recipient, please contact the sender by reply e-mail and destroy
> all copies and the original message. Any unauthorized review, use,
> disclosure, dissemination, forwarding, printing or copying of this email
> is strictly prohibited and appropriate legal action will be taken. 
> 
>  
>

-- 
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/0fa36010-55b0-4097-b0c9-cf0f8d3b17c5n%40googlegroups.com.


[deal.II] Installation error of deal.II in the Stampede2 cluster

2022-12-22 Thread David Montiel Taboada
Hello, 

I am trying to install deal.II v 9.2.0 on the TACC Stampede2 cluster. I 
already a working installation but when I tried to install it again using 
the same instructions I am getting the following error:

/opt/apps/gcc/6.3.0/bin/ld.gold: error: ../lib/libdeal_II.so.9.2.0: bad 
symbol name offset 154807354 at 0

collect2: error: ld returned 1 exit status

make[2]: *** [bin/step-52.release] Error 1

make[1]: *** [examples/CMakeFiles/step-52.release.dir/all] Error 2

make[1]: *** Waiting for unfinished jobs

Here are the cmake and make command lines i used:

$ cmake -DDEAL_II_WITH_MPI=ON -DDEAL_II_WITH_P4EST=ON 
-DCMAKE_INSTALL_PREFIX=$WORK/dealii_install_2 $WORK/dealii-9.2.0

$ make -j 16 install 

I already tried switching the default intel module by gcc and using a 
previous version of cmake (3.20.2)

I would appreciate any help. 

Best, 

David







-- 
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/2647dc34-1f66-4f00-8f2d-fa86ec174739n%40googlegroups.com.


Re: [deal.II] Templating dealii::Function with ADtypes

2022-12-22 Thread Wolfgang Bangerth



Pranshul:

I am trying to template dealii's Function 
(https://www.dealii.org/current/doxygen/deal.II/classFunction.html) with an 
ADType i.e. I am planning to use

template class dealii::Function>;

However, this line encounters an error as this line in function.templates.h 
(https://github.com/dealii/dealii/blob/85f093567b355e1f8173598f2a479593a0506630/include/deal.II/base/function.templates.h#L75-L76) triggers a static_assert  by dealii::Vector (in this line: https://github.com/dealii/dealii/blob/85f093567b355e1f8173598f2a479593a0506630/include/deal.II/lac/vector.h#L118-L122).
Can you show what the error you get is? Are you actually using the 
Function::vector_value() function that produces the error?


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/b72be0ac-5ed2-4600-2145-e73b1573502c%40colostate.edu.


[deal.II] Templating dealii::Function with ADtypes

2022-12-22 Thread Pranshul Thakur
Hi,

I am trying to template dealii's Function 
(https://www.dealii.org/current/doxygen/deal.II/classFunction.html) with an 
ADType i.e. I am planning to use
template class dealii::Function>;

However, this line encounters an error as this line in function.templates.h 
(https://github.com/dealii/dealii/blob/85f093567b355e1f8173598f2a479593a0506630/include/deal.II/base/function.templates.h#L75-L76)
 
triggers a static_assert  by dealii::Vector (in this line: 
https://github.com/dealii/dealii/blob/85f093567b355e1f8173598f2a479593a0506630/include/deal.II/lac/vector.h#L118-L122).

Just wondering if there is a way to use AD with Function by using another 
header file.

Best,
Pranshul.


-- 
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/5c04659c-2bb9-4afe-b03a-abd30825eb2cn%40googlegroups.com.


[deal.II] Re: Error in Reading Gmsh File in Dealii

2022-12-22 Thread Bruno Turcksin
Deepika,

Can you try using a linear mesh instead of curvilinear one? Does that work?

Best,

Bruno

On Thursday, December 22, 2022 at 1:47:32 AM UTC-5 deepika...@iitgoa.ac.in 
wrote:

> Hello Everyone,
>
> I have successfully read a gmsh file for one material in my code. Now I am 
> trying to read the gmsh file which has two different materials, but it is 
> showing the following error (see below). I am not able to understand the 
> meaning of the error message. Please help.
>
> [image: image.png]
> The gmsh geometry is also attached for reference.
> [image: image.png]
>
> Thanks & Regards,
> Deepika
>
> **
> This e-mail is for the sole use of the intended recipient(s) and may
> contain confidential and privileged information. If you are not the
> intended recipient, please contact the sender by reply e-mail and destroy
> all copies and the original message. Any unauthorized review, use,
> disclosure, dissemination, forwarding, printing or copying of this email
> is strictly prohibited and appropriate legal action will be taken. 
> 
>  
>

-- 
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/819f4a60-a64f-414c-b1a2-cc980f9c6b4bn%40googlegroups.com.