On 10/29/22 22:25, ztdepyahoo wrote:
When i output the grid to vtk., I found that the coordinates is in float number, how to control the output precision .

You can just set the precision on the output stream to which you write the information. This works in essence like this:
  std::ofstream out ("my_output_file.vtk");
  out.precision(16);
  data_out.write_vtk(out);

I haven't tested this, but believe that it should work.

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/fb55979f-a7ae-26bb-9587-bb860ceb8bf5%40colostate.edu.

Reply via email to