[deal.II] Re: triangulation save not working for 1D domain

2020-06-07 Thread Amaresh B
I have even tried with subdivided_hyper_rectangle 

 . 
The triangulation is not saved.



On Saturday, June 6, 2020 at 11:25:03 PM UTC+5:30, Amaresh B wrote:
>
> Thank you peterrum for your reply.
>
> I have tried the following commands. In both the cases, the triangulation 
> was not saved. Please let me know if you have any suggestions.
>
> 1.GridGenerator::hyper_cube (triangulation, 0., 40.0);
>
>
> 2.   GridGenerator::hyper_rectangle(triangulation,
>  Point(0.0),
>  Point(40.0),
>  true);
>
>
> Thanks,
> Amaresh
>
>
> On Saturday, June 6, 2020 at 9:33:20 PM UTC+5:30, peterrum wrote:
>>
>> What type of triangulation are you using?
>>
>> Peter
>>
>> On Saturday, 6 June 2020 17:52:53 UTC+2, Amaresh B wrote:
>>>
>>>   Dear all,
>>>
>>> I am trying to save my triangulation and using the lines below. 
>>> 'triangulation.save' commands works and saves the mesh if my domain is 
>>> either 2D or 3D (i.e. dim=2 or 3). However, it does not save the 
>>> triangulation if dim=1, nor it gives any error message. I will be thankful 
>>> if someone can comment on it and give suggestions.
>>>
>>>
>>>
>>>std::vector 
>>> sol_transfer_vectors;
>>>sol_transfer_vectors.push_back(&solution0);
>>> 
>>> 
>>> parallel::distributed::SolutionTransfer 
>>> sol_transfer(dof_handler);
>>>  sol_transfer.prepare_for_serialization 
>>> (sol_transfer_vectors);
>>>
>>>   triangulation.save("restart.mesh");
>>>
>>> Thank you,
>>>
>>> Regards
>>> Amaresh
>>>  
>>>
>>

-- 
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/816239ba-d993-4ae1-8772-77d920b946eeo%40googlegroups.com.


[deal.II] Re: triangulation save not working for 1D domain

2020-06-06 Thread Amaresh B
Thank you peterrum for your reply.

I have tried the following commands. In both the cases, the triangulation 
was not saved. Please let me know if you have any suggestions.

1.GridGenerator::hyper_cube (triangulation, 0., 40.0);


2.   GridGenerator::hyper_rectangle(triangulation,
 Point(0.0),
 Point(40.0),
 true);


Thanks,
Amaresh


On Saturday, June 6, 2020 at 9:33:20 PM UTC+5:30, peterrum wrote:
>
> What type of triangulation are you using?
>
> Peter
>
> On Saturday, 6 June 2020 17:52:53 UTC+2, Amaresh B wrote:
>>
>>   Dear all,
>>
>> I am trying to save my triangulation and using the lines below. 
>> 'triangulation.save' commands works and saves the mesh if my domain is 
>> either 2D or 3D (i.e. dim=2 or 3). However, it does not save the 
>> triangulation if dim=1, nor it gives any error message. I will be thankful 
>> if someone can comment on it and give suggestions.
>>
>>
>>
>>std::vector 
>> sol_transfer_vectors;
>>sol_transfer_vectors.push_back(&solution0);
>> 
>> 
>> parallel::distributed::SolutionTransfer 
>> sol_transfer(dof_handler);
>>  sol_transfer.prepare_for_serialization 
>> (sol_transfer_vectors);
>>
>>   triangulation.save("restart.mesh");
>>
>> Thank you,
>>
>> Regards
>> Amaresh
>>  
>>
>

-- 
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/d4f7eb57-9a58-489e-879a-d3a56906e568o%40googlegroups.com.


[deal.II] Re: triangulation save not working for 1D domain

2020-06-06 Thread 'peterrum' via deal.II User Group
What type of triangulation are you using?

Peter

On Saturday, 6 June 2020 17:52:53 UTC+2, Amaresh B wrote:
>
>   Dear all,
>
> I am trying to save my triangulation and using the lines below. 
> 'triangulation.save' commands works and saves the mesh if my domain is 
> either 2D or 3D (i.e. dim=2 or 3). However, it does not save the 
> triangulation if dim=1, nor it gives any error message. I will be thankful 
> if someone can comment on it and give suggestions.
>
>
>
>std::vector 
> sol_transfer_vectors;
>sol_transfer_vectors.push_back(&solution0);
> 
> 
> parallel::distributed::SolutionTransfer 
> sol_transfer(dof_handler);
>  sol_transfer.prepare_for_serialization 
> (sol_transfer_vectors);
>
>   triangulation.save("restart.mesh");
>
> Thank you,
>
> Regards
> Amaresh
>  
>

-- 
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/00da9e61-551a-4a19-851a-3179fc4df131o%40googlegroups.com.