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

2020-06-07 Thread Wolfgang Bangerth
On 6/7/20 9:12 AM, Amaresh B wrote: Thank you Luca for your reply. I can avoid parallel::distributed::Triangulation and use serial code. Can you suggest a method to save the solutions along with the triangulation which can be used for restarting code? Also please let me know if any example

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

2020-06-07 Thread luca.heltai
You could use a boost archive, and save the triangulation to a binary file using operator << (and >> to load it), i.e.: #include #include ... std::ofstream file(filename, std::ios::binary | std::ios::trunc); boost::archive::binary_oarchive oa(file); oa << tria; and then restore it with

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

2020-06-07 Thread Amaresh B
Thank you Luca for your reply. I can avoid parallel::distributed::Triangulation and use serial code. Can you suggest a method to save the solutions along with the triangulation which can be used for restarting code? Also please let me know if any example code is available. Thanks Sincerely

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

2020-06-07 Thread luca.heltai
Amaresh, as the documentation states, parallel::distributed::Triangulation is not implemented in 1d. Consequently, parallel::distributed::SolutionTransfer will not work in 1d. Are you running your code in debug mode? In debug mode several assertions are throw when you try to instantiate a 1d

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

2020-06-06 Thread Amaresh B
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