← Back to team overview

dolfin team mailing list archive

[noreply@xxxxxxxxxxxxx: [Branch ~dolfin-core/dolfin/trunk] Rev 6585: Make MeshFunction.set_values(other.array()) work when the MeshFunction is of type uint.]

 

Thanks! :-)

--
Anders
--- Begin Message ---
------------------------------------------------------------
revno: 6585
committer: Johan Hake <hake.dev@xxxxxxxxx>
branch nick: work-trunk
timestamp: Tue 2012-02-21 12:21:12 +0100
message:
  Make MeshFunction.set_values(other.array()) work when the MeshFunction is of type uint.
modified:
  dolfin/swig/typemaps/std_vector.i


--
lp:dolfin
https://code.launchpad.net/~dolfin-core/dolfin/trunk

Your team DOLFIN Core Team is subscribed to branch lp:dolfin.
To unsubscribe from this branch go to https://code.launchpad.net/~dolfin-core/dolfin/trunk/+edit-subscription
=== modified file 'dolfin/swig/typemaps/std_vector.i'
--- dolfin/swig/typemaps/std_vector.i	2012-02-08 12:53:23 +0000
+++ dolfin/swig/typemaps/std_vector.i	2012-02-21 11:21:12 +0000
@@ -17,7 +17,7 @@
 // along with DOLFIN. If not, see <http://www.gnu.org/licenses/>.
 //
 // First added:  2009-08-31
-// Last changed: 2012-02-08
+// Last changed: 2012-02-21
 
 //=============================================================================
 // In this file we declare what types that should be able to be passed using a
@@ -558,6 +558,7 @@
 IN_TYPEMAP_STD_VECTOR_OF_PRIMITIVES(double, DOUBLE, , NPY_DOUBLE, double, float_)
 IN_TYPEMAP_STD_VECTOR_OF_PRIMITIVES(int, INT32, , NPY_INT, int, intc)
 IN_TYPEMAP_STD_VECTOR_OF_PRIMITIVES(dolfin::uint, INT32, , NPY_UINT, uint, uintc)
+IN_TYPEMAP_STD_VECTOR_OF_PRIMITIVES(unsigned int, INT32, , NPY_UINT, uint, uintc)
 
 PY_SEQUENCE_OF_SCALARS_TO_VECTOR_OF_PRIMITIVES(dolfin::uint, INT32, coloring_type, uint, -1)
 PY_SEQUENCE_OF_SCALARS_TO_VECTOR_OF_PRIMITIVES(dolfin::uint, INT32, value_shape, uint, -1)


--- End Message ---