i tried to define constant triangulation with codes written below :
template <int dim>class heat{ public:
heat (const Triangulation<dim> *triang); ~heat ();
template <int dim> heat<dim>::heat (const Triangulation<dim> triang):
dof_handler (triangulation), fe (FE_Q<dim>(2))
{triangulation.copy_triangulation (triang);}
but error (written below) comes up :
main.cc: In function ‘int main()’:main.cc:10: error: no matching function for
call to ‘heat<2>::heat()’setup.h:8: note: candidates are:
heat<dim>::heat(dealii::Triangulation<dim, dim>) [with int dim = 2]prelim.h:41:
note: heat<2>::heat(const heat<2>&)make: *** [main.g.o] Error 1
any help would be appreciated .regardsS.M.Mohseni
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii