Step-1 3D triangulation

21 views
Skip to first unread message

Vinayak Vijay

unread,
Jan 22, 2021, 5:20:17 AM1/22/21
to deal.II User Group
I tried to play with step-1 by simply changing the Triangulation dim from 2 to 3. However, I got the following error:

An error occurred in line <1539> of file </home/ubuntu/deal.II/dealii/source/grid/grid_out.cc> in function
    void dealii::GridOut::write_svg(const dealii::Triangulation<dim, spacedim>&, std::ostream&) const [with int dim = 3; int spacedim = 3; std::ostream = std::basic_ostream<char>]
The violated condition was: 
    false

Could someone highlight what I am missing to do here?
Thanks, Vinayak

luca.heltai

unread,
Jan 22, 2021, 6:17:33 AM1/22/21
to Deal.II Users
svg output is not implemented in 3 dimensions. You should output the grid using vtk (or gmsh), so

write_vtk

instead of

write_svg

and open the resulting mesh with paraview/visit/ and/or gmsh.

L.
> --
> 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/9670e5a7-e7b4-460e-9aa3-a5ef72ba1a65n%40googlegroups.com.

Vinayak Vijay

unread,
Jan 22, 2021, 7:15:01 AM1/22/21
to deal.II User Group
Thanks. It worked!
V.
Reply all
Reply to author
Forward
0 new messages