Lisa,
you can write something like
Point<dim> p;
switch(dim)
{
case 1:
p = Point<dim> (1);
break;
case 2:
p = Point<dim> (1, 2);
break;
case 3:
p = Point<dim> (1, 2, 3);
break;
default:
Assert(false, ExcNotImplemented());
}
const Point<dim> test_point = p;
Best,
Daniel
--
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].
For more options, visit https://groups.google.com/d/optout.