On 12/8/19 9:02 AM, hussan zeb wrote:
>
> --------------------------------------------------------
> An error occurred in line <361> of file
> </home/MATH/zeb/deal/include/deal.II/base/point.h> in function
> dealii::Point<dim, Number>::Point(Number, Number, Number) [with int dim =
> 2; Number = double]
> The violated condition was:
> dim == 3
> Additional information:
> You can only initialize Point<3> objects using the constructor that takes
> three arguments. Point<dim> objects with dim!=3 require initialization with
> the constructor that takes 'dim' arguments.
>
> Stacktrace:
> -----------
> #0 ./step-35: dealii::Point<2, double>::Point(double, double, double)
> #1 ./step-35: Step35::NavierStokesProjection<2>::run(bool, unsigned int)
> #2 ./step-35: main
> --------------------------------------------------------
Hussan,
we don't know what causes this without debugging the code you attach. But the
error message is quite clear in explaining what is happening. One way or the
other, you will have to learn to debug codes with a debugger so you can see
where this kind of error happens and how to fix it. There are also video
lectures on this topic. Why don't you use this relatively simple occasion as a
way to learn a new skill?
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email:
bang...@colostate.edu
www:
http://www.math.colostate.edu/~bangerth/