← Back to team overview

dolfin team mailing list archive

Re: [Question #104471]: BCs in mixedspace vector+scalar+scalar

 

Question #104471 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/104471

Johan Hake posted a new comment:
On Monday 15 March 2010 14:33:27 Chris Richardson wrote:
> Question #104471 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/104471
> 
>     Status: Answered => Solved
> 
> Chris Richardson confirmed that the question is solved:
> OK, that solves my problem. Thank you, Johan!
> 
> It would be better, perhaps, if the default behaviour could be:
> 
> W=V+Q+R
> is equivalent to
> W=MixedFunctionSpace([V,Q,R])

This is unfortunately not possible in Python (please prove me wrong!).
 
> and
> W=(V+Q)+R
> could be MixedFunctionSpace([MixedFunctionSpace([V,Q]),R]), if it is
>  needed...
> 
> or maybe the W=V+Q style syntax should be deprecated...

I tend to agree with you, as this is the number one question new users of 
FEniCS have.

However it is nice to define a MixedFunctionSpace using the add operator, so 
we like to think of it as a feature and not a bug. :)

Johan

-- 
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.