Functionspace Restriction

Asked by jhameed2@illinois.edu

Hello,

I hope this is the right list to ask this question. I am trying to restrict a function space in C++, but I get an error saying

Error: FunctionSpace::attach is not working. Please fix the dof map builder.

I am trying to restrict the function space using

boost::shared_ptr<FunctionSpace> W = V.restriction(cells);

Anyone help me figure out whats going wrong here?

-Jehanzeb

Question information

Language:
English Edit question
Status:
Answered
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Anders Logg (logg) said :
#1

On Mon, Dec 14, 2009 at 11:49:18PM -0000, <email address hidden> wrote:
> New question #94104 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/94104
>
> Hello,
>
> I hope this is the right list to ask this question. I am trying to restrict a function space in C++, but I get an error saying
>
> Error: FunctionSpace::attach is not working. Please fix the dof map builder.
>
> I am trying to restrict the function space using
>
> boost::shared_ptr<FunctionSpace> W = V.restriction(cells);
>
> Anyone help me figure out whats going wrong here?
>
> -Jehanzeb

Restrictions have been broken for a while after the work on
parallelization of DOLFIN in August.

This needs to be reimplemented. I don't have time for this now so it
will take a while if no one else is willing to fix it.

--
Anders

Revision history for this message
Kent-Andre Mardal (kent-and) said :
#2

> Question #94104 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/94104
>
> Status: Open => Answered
>
> Anders Logg proposed the following answer:
> On Mon, Dec 14, 2009 at 11:49:18PM -0000, <email address hidden> wrote:
>> New question #94104 on DOLFIN:
>> https://answers.launchpad.net/dolfin/+question/94104
>>
>> Hello,
>>
>> I hope this is the right list to ask this question. I am trying to
>> restrict a function space in C++, but I get an error saying
>>
>> Error: FunctionSpace::attach is not working. Please fix the dof map
>> builder.
>>
>> I am trying to restrict the function space using
>>
>> boost::shared_ptr<FunctionSpace> W = V.restriction(cells);
>>
>> Anyone help me figure out whats going wrong here?
>>
>> -Jehanzeb
>
> Restrictions have been broken for a while after the work on
> parallelization of DOLFIN in August.
>
> This needs to be reimplemented. I don't have time for this now so it
> will take a while if no one else is willing to fix it.
>
> --
> Anders
>

I am sorry, but the implementation is not suited for parallel meshes. I am
not sure
how to fix it just now.

My best advice is to use some kind of penalty method to "remove" the extra
degrees
of freedom.

Kent

Kent

Revision history for this message
Niclas Jansson (njansson) said :
#3

Kent <email address hidden> writes:

> Question #94104 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/94104
>
> Kent proposed the following answer:
>> Question #94104 on DOLFIN changed:
>> https://answers.launchpad.net/dolfin/+question/94104
>>
>> Status: Open => Answered
>>
>> Anders Logg proposed the following answer:
>> On Mon, Dec 14, 2009 at 11:49:18PM -0000, <email address hidden> wrote:
>>> New question #94104 on DOLFIN:
>>> https://answers.launchpad.net/dolfin/+question/94104
>>>
>>> Hello,
>>>
>>> I hope this is the right list to ask this question. I am trying to
>>> restrict a function space in C++, but I get an error saying
>>>
>>> Error: FunctionSpace::attach is not working. Please fix the dof map
>>> builder.
>>>
>>> I am trying to restrict the function space using
>>>
>>> boost::shared_ptr<FunctionSpace> W = V.restriction(cells);
>>>
>>> Anyone help me figure out whats going wrong here?
>>>
>>> -Jehanzeb
>>
>> Restrictions have been broken for a while after the work on
>> parallelization of DOLFIN in August.
>>
>> This needs to be reimplemented. I don't have time for this now so it
>> will take a while if no one else is willing to fix it.
>>
>> --
>> Anders
>>
>
> I am sorry, but the implementation is not suited for parallel meshes. I am
> not sure
> how to fix it just now.
>
> My best advice is to use some kind of penalty method to "remove" the extra
> degrees
> of freedom.
>
> Kent
>

I can have a look at it during the holidays...but I need to get bzr to
work first.

Niclas

Revision history for this message
Garth Wells (garth-wells) said :
#4

Niclas Jansson wrote:
> Question #94104 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/94104
>
> Niclas Jansson proposed the following answer:
> Kent <email address hidden> writes:
>
>> Question #94104 on DOLFIN changed:
>> https://answers.launchpad.net/dolfin/+question/94104
>>
>> Kent proposed the following answer:
>>> Question #94104 on DOLFIN changed:
>>> https://answers.launchpad.net/dolfin/+question/94104
>>>
>>> Status: Open => Answered
>>>
>>> Anders Logg proposed the following answer:
>>> On Mon, Dec 14, 2009 at 11:49:18PM -0000, <email address hidden> wrote:
>>>> New question #94104 on DOLFIN:
>>>> https://answers.launchpad.net/dolfin/+question/94104
>>>>
>>>> Hello,
>>>>
>>>> I hope this is the right list to ask this question. I am trying to
>>>> restrict a function space in C++, but I get an error saying
>>>>
>>>> Error: FunctionSpace::attach is not working. Please fix the dof map
>>>> builder.
>>>>
>>>> I am trying to restrict the function space using
>>>>
>>>> boost::shared_ptr<FunctionSpace> W = V.restriction(cells);
>>>>
>>>> Anyone help me figure out whats going wrong here?
>>>>
>>>> -Jehanzeb
>>> Restrictions have been broken for a while after the work on
>>> parallelization of DOLFIN in August.
>>>
>>> This needs to be reimplemented. I don't have time for this now so it
>>> will take a while if no one else is willing to fix it.
>>>
>>> --
>>> Anders
>>>
>> I am sorry, but the implementation is not suited for parallel meshes. I am
>> not sure
>> how to fix it just now.
>>
>> My best advice is to use some kind of penalty method to "remove" the extra
>> degrees
>> of freedom.
>>
>> Kent
>>
>
> I can have a look at it during the holidays...but I need to get bzr to
> work first.
>

This needs a good re-think. The original implementation was ad-hoc.

Garth

> Niclas
>

Revision history for this message
Anders Logg (logg) said :
#5

On Tue, Dec 15, 2009 at 06:45:27PM -0000, Niclas Jansson wrote:
> Question #94104 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/94104
>
> Niclas Jansson proposed the following answer:
> Kent <email address hidden> writes:
>
> > Question #94104 on DOLFIN changed:
> > https://answers.launchpad.net/dolfin/+question/94104
> >
> > Kent proposed the following answer:
> >> Question #94104 on DOLFIN changed:
> >> https://answers.launchpad.net/dolfin/+question/94104
> >>
> >> Status: Open => Answered
> >>
> >> Anders Logg proposed the following answer:
> >> On Mon, Dec 14, 2009 at 11:49:18PM -0000, <email address hidden> wrote:
> >>> New question #94104 on DOLFIN:
> >>> https://answers.launchpad.net/dolfin/+question/94104
> >>>
> >>> Hello,
> >>>
> >>> I hope this is the right list to ask this question. I am trying to
> >>> restrict a function space in C++, but I get an error saying
> >>>
> >>> Error: FunctionSpace::attach is not working. Please fix the dof map
> >>> builder.
> >>>
> >>> I am trying to restrict the function space using
> >>>
> >>> boost::shared_ptr<FunctionSpace> W = V.restriction(cells);
> >>>
> >>> Anyone help me figure out whats going wrong here?
> >>>
> >>> -Jehanzeb
> >>
> >> Restrictions have been broken for a while after the work on
> >> parallelization of DOLFIN in August.
> >>
> >> This needs to be reimplemented. I don't have time for this now so it
> >> will take a while if no one else is willing to fix it.
> >>
> >>
> >
> > I am sorry, but the implementation is not suited for parallel meshes. I am
> > not sure
> > how to fix it just now.
> >
> > My best advice is to use some kind of penalty method to "remove" the extra
> > degrees
> > of freedom.
> >
> > Kent
> >
>
> I can have a look at it during the holidays...but I need to get bzr to
> work first.

Ah, you are running BSD...

Did you manage to compile ls yet ;-)

--
Anders

Can you help with this problem?

Provide an answer of your own, or ask jhameed2@illinois.edu for more information if necessary.

To post a message you must log in.