Dear all

I have a dimension independent code which can work for 1D, 2D and 3D. The 
dimension of the problem is defined in the input file. Is there a way to 
declare a constant integer variable (dim) for template?

for 1D
dim = 1;
for 2D
dim = 2;
else
dim = 3;

then,

FEM<dim> solid("parameters.prm");
solid.run();

Best,
Pasha

-- 
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.

Reply via email to