On Fri, May 09, 2008 at 03:34:49PM +0200, 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:   4181:a1abffc61e0252498aba4049067677996e533007
> tag:         tip
> user:        "Ola Skavhaug <[EMAIL PROTECTED]>"
> date:        Fri May 09 15:36:18 2008 +0200
> files:       dolfin/swig/dolfin.i dolfin/swig/dolfin_function_post.i 
> dolfin/swig/dolfin_function_pre.i
> description:
> Fix for exposing protected methods to Python (only for director classes).

Thanks, I've added normal() also in the same way. This is useful for
setting for example inflow boundary conditions:

  class InflowBoundaryValue(Function):
      def __init__(self, mesh):
          Function.__init__(self, mesh)

      def eval(self, values, x):
          n = self.normal()
          values[0] = -n[0]
          values[1] = -n[1]
          values[2] = -n[2]

-- 
Anders
_______________________________________________
DOLFIN-dev mailing list
[email protected]
http://www.fenics.org/mailman/listinfo/dolfin-dev

Reply via email to