FE_Q

30 views
Skip to first unread message

Oliver Br

unread,
Nov 28, 2019, 3:21:48 PM11/28/19
to deal.II User Group
Hello all,
I am new to dealii and I know this is a stupid question, but when I use FE_Q<3,3> fe; the following error occurs:
error: no matching function for call to ‘dealii::FE_Q<3, 3>::FE_Q()’
Can someone help me please?
Oli

Daniel Arndt

unread,
Nov 28, 2019, 7:43:37 PM11/28/19
to deal.II User Group
Oli,

you need to specify a polynomial degree you want to use. If you have a look at step-2 (https://www.dealii.org/current/doxygen/deal.II/step_2.html),
you see that it has a line saying

const FE_Q<2> finite_element(1);

to create a linear finite element.

Best,
Daniel

Oliver Br

unread,
Nov 29, 2019, 2:26:15 PM11/29/19
to deal.II User Group
Hi Daniel,
Thank you for your answer. My question is about step3 in which:
    Triangulation<2>     triangulation;
    FE_Q<2>              fe;
Best,
Oli

Daniel Arndt

unread,
Nov 29, 2019, 2:54:40 PM11/29/19
to dea...@googlegroups.com
Oli,

what is your question? Please elaborate and we are happy to help. You might want to have a look at
"Getting started and posting guidelines for new users" at https://groups.google.com/forum/#!topic/dealii/GRZMUTLIm2I.

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 dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/10c07b05-d200-4c81-8ddc-4a5489bf3095%40googlegroups.com.

Simon Sticko

unread,
Nov 30, 2019, 5:00:24 AM11/30/19
to deal.II User Group
Hi,
Just to elaborate on what Daniel already said, Oliver, note that it is the constructor of the Step3-class that calls the constructor of FE_Q<dim>, that is

Step3::Step3()
  : fe(1)
  , dof_handler(triangulation)
{}

If you miss this call in the Step3-constructor, you will get the error you stated earlier.

Best,
Simon
Reply all
Reply to author
Forward
0 new messages