dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #08547
[HG DOLFIN] Cleanup in EpetraVector safety checks (using if(!x) instead of dolfin_assert most places, keeping the check in release builds).
One or more new changesets pushed to the primary dolfin repository.
A short summary of the last three changesets is included below.
changeset: 4378:01039869ddba21eb64800aef6863006ff84e7ca2
tag: tip
user: "Martin Sandve Alnæs <martinal@xxxxxxxxx>"
date: Fri Jul 04 14:51:57 2008 +0200
files: dolfin/la/EpetraVector.cpp dolfin/la/EpetraVector.h dolfin/la/uBlasVector.cpp dolfin/la/uBlasVector.h
description:
Cleanup in EpetraVector safety checks (using if(!x) instead of dolfin_assert most places, keeping the check in release builds).
Implemented get,set,add in a crude, non-parallell way.
changeset: 4377:1f5a6c3eba204a732184ca54c1db14db0c7cda02
user: "Martin Sandve Alnæs <martinal@xxxxxxxxx>"
date: Fri Jul 04 11:22:35 2008 +0200
files: demo/pde/elasticity/python/demo.py demo/pde/stokes/stabilized/python/demo.py demo/pde/stokes/taylor-hood/python/demo.py
description:
Changed zero vector function syntax from (..., 3, zeros(3)) to (..., 3, 0.0)
changeset: 4376:5355d8bde990fe5965105cbb42b4edb2b2117768
user: "Martin Sandve Alnæs <martinal@xxxxxxxxx>"
date: Thu Jul 03 23:32:50 2008 +0200
files: demo/pde/elasticity/python/demo.py demo/pde/stokes/stabilized/python/demo.py demo/pde/stokes/taylor-hood/python/demo.py dolfin/function/Function.cpp dolfin/function/Function.h dolfin/swig/dolfin_function_pre.i
description:
Made python interface functional for constant vector functions, and updated python demos.
ALL CODE USING Function(mesh, 0.0) TO MEAN A VECTOR FUNCTION WILL BREAK!
I couldn't get the array->(size,values) typemap working, so the syntax is currently:
f = [cpp_]Function([element,] mesh, size, array)
e.g.
f = cpp_Function(mesh, 3, zeros(3))
----------------------------------------------------------------------
For more details, visit http://www.fenics.org/hg/dolfin