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: [email protected] 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/9f55ca5f-d84b-2d7c-f1c7-3d562ccbd582%40colostate.edu.
