Hi Denis,
Actually I still need some help regarding this. The program builds but
cannot execute and I get an error of Segmentation fault:11
EdithMac:code_test Edith$ make
[ 33%] Building CXX object
CMakeFiles/Helmholtz_GFEM3.dir/source/functions.cc.o
[ 66%] Building CXX object
CMakeFiles/Helmholtz_GFEM3.dir/source/Helmholtz_GFEM3.cc.o
[100%] *Linking CXX executable Helmholtz_GFEM3*
[100%] Built target Helmholtz_GFEM3
EdithMac:code_test Edith$ Helmholtz_GFEM3
Segmentation fault: 11
Since I wanted to test the constructor, this program is only running a
make_grid() class function that makes the triangulation and should output
the number of cells.
For the constructor, Apart from the FE_Enriched<dim > fe_enriched
object, I created a FE_Q<dim> fe object in my class to be able to pass it
by address as in the code below.
Hope you can give some ideas of what is wrong with it..
template <int dim>
Helmholtz_GFE2<dim>::Helmholtz_GFE2 ():
fe_enriched (
& fe ,
{&fe },
{{
[=] (const typename Triangulation<dim>::cell_iterator &)
-> const Function<dim> * {return & enrich1;},
[=] (const typename Triangulation<dim>::cell_iterator &)
-> const Function<dim> * {return & enrich2;}
}}
),
fe (1),
dof_handler (triangulation),
enrich1 (k[0]),
enrich2 (k[1])
{
}
On Friday, February 3, 2017 at 7:02:56 AM UTC-6, Denis Davydov wrote:
>
> If there are no further questions on this topic,
> please mark some answer as "correct/best" so that this topic
> is displayed as "Answered" in the google group list.
>
> Cheers,
> Denis.
>
> On Tuesday, January 31, 2017 at 10:01:38 AM UTC+1, Denis Davydov wrote:
>>
>> Hi,
>>
>> On Tuesday, January 31, 2017 at 5:27:10 AM UTC+1, Edith Sotelo wrote:
>>>
>>>
>>> Hi,
>>>> So far I just worked with the simple Fe_Enriched constructor, However I
>>>> want to use more enrichment functions and I am having problems to
>>>> understand the third argument of this constructor (below).
>>>> I Know I need to pass a vector of functions but not sure about the
>>>> exact format. For example it is not clear for me exactly how to pass the
>>>> argument Cell_interator , and do not
>>>>
>>>
>> see https://github.com/dealii/dealii/pull/3876
>>
>>
>>
>>> understand why it is needed a vector of a vector of a C++ function
>>>> template
>>>>
>>>
>> that's because the relationship between the FE used to build enriched
>> space and enrichment functions is one-to-many.
>> See an example in the link above. This is also reflect in the first
>> equation at the top of the FE_Enriched page.
>>
>>
>>> .. to have an example on how to define this argument would be nice.
>>>>
>>>
>> Regards,
>> Denis.
>>
>
--
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.