Professor Bangerth, thanks for your reply,
I changed the code to 
"
Triangulation<2,3> triangulation;
GridIn<2,3> grid_in;
"
However, it still doesn't work, and the error message is the same as before:
"
An error occurred in line <2264> of file 
</home/fomebody/dealii-9.5.1/source/grid/tria.cc> in function
    static void 
dealii::internal::TriangulationImplementation::Implementation::create_triangulation(const
 
std::vector<dealii::Point<spacedim> >&, const 
std::vector<dealii::CellData<dim> >&, const dealii::SubCellData&, 
dealii::Triangulation<dim, spacedim>&) [with int dim = 2; int spacedim = 3]
The violated condition was:
    cells.size() > 0
Additional information:
    No cells given
"
😭
Can you help me check where the problem is?

On Saturday, March 9, 2024 at 1:17:45 AM UTC+8 Wolfgang Bangerth wrote:

>
>
> On 3/7/24 23:22, Yufei Fang wrote:
> > error: cannot convert ‘dealii::Triangulation<2, 3>’ to 
> > ‘dealii::Triangulation<3, 3>&’
> >    38 |         grid_in.attach_triangulation(triangulation);
> >       |                                      ^~~~~~~~~~~~~
> >       |                                      |
> >       |                                      dealii::Triangulation<2, 3>
> > In file included from 
> > /home/fomebody/myDealii/0308_test_comsolinair/test.cc:6:
> > /home/fomebody/dealii-9.5.1/include/deal.II/grid/grid_in.h:361:54: note: 
> >   initializing argument 1 of ‘void dealii::GridIn<dim, 
> > spacedim>::attach_triangulation(dealii::Triangulation<dim, spacedim>&) 
> > [with int dim = 3; int spacedim = 3]’
>
> You will need GridIn<2,3> as well, not GridIn<3>.
>
> Best
> W.
>

-- 
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/0fd79195-f954-49cf-a7b5-2ce1594802bcn%40googlegroups.com.

Reply via email to