> The problem that I worked with the same code, but insted of
> hyper_rectangle, I used hyper_cube, it worked in three dimension, it
> gave me three dimensional cube, but in my problem I need to generate a
> mesh on rectangular prism.

Oh, I see. I'm sorry I didn't read the error message carefully:

> 1-I want to build three dimensional rectangle using
> "hyper_rectangle(triangulation,(0,0,0),(1,1,0.5))" when I compile I get the
> following error:"no matching function for call to
> ´dealii::GridGenerator::hyper_rectangle (dealii::Triangulation<3, 3>&, int,
> int)´"

As you write the code, the call does not do what you want:
  hyper_rectangle(triangulation,(0,0,0),(1,1,0.5))
Here,
  (0,0,0)
is interpreted as 0 (zero), not as a point with three coordinates -- take a look
at a C/C++ book and read up on the comma operator. What you want is
this call:
  hyper_rectangle(triangulation,Point<3>(0,0,0),Point<3>(1,1,0.5));

Best
 W.

-------------------------------------------------------------------------
Wolfgang Bangerth                email:            [email protected]
                                 www: http://www.math.tamu.edu/~bangerth/

_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to