dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #19693
Re: [Question #125106]: C++ code for user-defined Expression
Question #125106 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/125106
Anders Logg posted a new comment:
On Sun, Sep 12, 2010 at 10:32:55PM -0700, Johan Hake wrote:
> On Sunday September 12 2010 09:27:26 Anders Logg wrote:
> > Question #125106 on DOLFIN changed:
> > https://answers.launchpad.net/dolfin/+question/125106
> >
> > Anders Logg posted a new comment:
> > I think your problem is the way you call the Expression constructor:
> >
> > Expression(1)
> >
> > This creates a vector-valued expression (with only one component).
> >
> > Try with Expression() and it should work.
>
> It looked like this helped. But why are a Vector expression with only one
> value different from a scalar expression?
Because we have value_rank() and value_dimension(i), and checking for
value_dimension[0] == 1 would be a special case.
--
Anders
--
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.
References