Hello Mohammad,

the function you are trying to call does not exist. You have defined a function heat (const Triangulation<dim>), which expects to get a Triangulation<dim>, but you call the function heat (), which does not have any arguments.

Best Regards,
Markus



Am 27.01.2012 07:42, schrieb Mohammad Mohsenie:
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 .
regards
S.M.Mohseni


_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to