dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #14802
Re: [HG DOLFIN] merge.
On Monday 17 August 2009 19:18:14 DOLFIN wrote:
> One or more new changesets pushed to the primary dolfin repository.
> A short summary of the last three changesets is included below.
>
> changeset: 6765:84e71645284a0ba9cbb851533f61294ca2e2668e
> tag: tip
> parent: 6764:e600ba505bd85cea7809271066bcda330b2fc53e
> parent: 6763:d8a5d0cb18a467039fd1da48363d5ac68ece917c
> user: "Garth N. Wells <gnw20@xxxxxxxxx>"
> date: Mon Aug 17 18:16:29 2009 +0100
> files:
> description:
> merge.
>
>
> changeset: 6764:e600ba505bd85cea7809271066bcda330b2fc53e
> parent: 6761:f936b2842d23b5d0910081001ea16e23eed375a2
> user: "Garth N. Wells <gnw20@xxxxxxxxx>"
> date: Mon Aug 17 18:15:31 2009 +0100
> files: dolfin/function/Function.cpp dolfin/function/Function.h
> dolfin/function/SpecialFunctions.cpp description:
> Remove Function::geometric_dimension().
>
> This breaks the code in dolfin/swig/typemaps.i. Can someone explain it to
> me?
When Function is subclassed in python, we overload eval, for example:
def eval(values,x):
values[0] = sin(x[0])*cos(x[2])
To be able to hand 'eval' a numpy.array with the right dimension we have used
Function::geometric_dimension().
This is all done in the
%typemap(directorin) double* x {
typemap. Any equivalent function will do.
Johan
> changeset: 6763:d8a5d0cb18a467039fd1da48363d5ac68ece917c
> parent: 6762:ca407204632a1b0430099c243c915a151b2bd941
> parent: 6761:f936b2842d23b5d0910081001ea16e23eed375a2
> user: Anders Logg <logg@xxxxxxxxx>
> date: Mon Aug 17 19:09:05 2009 +0200
> files:
> description:
> merge
>
> ----------------------------------------------------------------------
> For more details, visit http://www.fenics.org/hg/dolfin
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
References