error while using refine_and_coarsen_fixed_number

22 views
Skip to first unread message

Darius Barreto

unread,
May 30, 2019, 7:27:47 AM5/30/19
to deal.II User Group
Hello everyone,

I am working with adaptive meshing for a one dimensional rod problem. The function refine_and_coarsen_fixed_number has not been instantiated for the class template parameters?.
I am getting the following error message.

/home/darius/elastic_deadtest_adaptive/dead_load_adaptive.cc:710: error: undefined reference to 'void dealii::GridRefinement::refine_and_coarsen_fixed_number<1, float, 3>(dealii::Triangulation<1, 3>&, dealii::Vector<float> const&, double, double, unsigned int)'
collect2: error: ld returned 1 exit status
CMakeFiles/dead_load_adaptive.dir/build.make:103: recipe for target 'dead_load_adaptive' failed

Thanks in advance

Regards

Darius Barreto

Bruno Turcksin

unread,
May 30, 2019, 8:26:25 AM5/30/19
to deal.II User Group
Darius,


On Thursday, May 30, 2019 at 7:27:47 AM UTC-4, Darius Barreto wrote:
I am working with adaptive meshing for a one dimensional rod problem. The function refine_and_coarsen_fixed_number has not been instantiated for the class template parameters?.
No it hasn't. You can't do dim=1 and spacedim=3 but you can do dim=1 and spacedim=2. You can add the explicit instantiation here for dim=1 and spacedim=3 but I don't know if the code will works. Any reason why you need spacedim to be 3?

Best,

Bruno

Darius Barreto

unread,
May 30, 2019, 8:48:48 AM5/30/19
to dea...@googlegroups.com
Thanks for the reply. By saying spacedim 3, I mean that the rod (being one dimensional) can deform in the three dimensional space.

--
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/54e91ab6-a300-4563-aa59-82a1114f31d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bruno Turcksin

unread,
May 30, 2019, 8:56:02 AM5/30/19
to dea...@googlegroups.com
Darius,

Le jeu. 30 mai 2019 à 08:48, Darius Barreto <dariu...@gmail.com> a écrit :
> Thanks for the reply. By saying spacedim 3, I mean that the rod (being one dimensional) can deform in the three dimensional space.
Sure but does the deformation happens in a plan. If you bend a rod,
the deformation is in a plan so you can use a two dimensional space.
It's only if you want to do something more complicated that you need a
three dimensional space.

Best,

Bruno

Darius Barreto

unread,
May 30, 2019, 9:17:19 AM5/30/19
to dea...@googlegroups.com
Dear Bruno,

I agree to you. But I am dealing with the one dimensional rod theory and I want to understand more complicated deformation modes, so I go for spacedim 3.

--
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.
Reply all
Reply to author
Forward
0 new messages