← Back to team overview

dolfin team mailing list archive

Re: [HG DOLFIN] Fix bug in numpy wrapping of CRS data.

 



Johan Hake wrote:
On Wednesday 18 February 2009 09:38:05 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:   5728:c01d60f80a759d8126dd67471db65d9b733ff1ee
tag:         tip
user:        "Johan Hake <hake@xxxxxxxxx>"
date:        Wed Feb 18 09:37:59 2009 +0100
files:       dolfin/swig/dolfin_la_post.i test/unit/la/python/test.py
description:
Fix bug in numpy wrapping of CRS data.
  - Numpy type needed to be NPY_ULONG instead of NPY_UINT(!?)

I noticed a qurious thing while fixing this bug. The sparsity pattern are not the same at a 64 bit computer and on my laptop, a 32 bit one.

Any clue why?


Strange. Can you add some simple code to the sandbox to which reproduces this?

Garth

The assembled matrice is the same so it won't have any thing to say for the finall results.

Johan

changeset:   5727:bdae98cb5f9a7794bce8050fcf669020609d8de6
user:        "Johan Hake <hake@xxxxxxxxx>"
date:        Tue Feb 17 23:35:20 2009 +0100
files:       ChangeLog dolfin/swig/dolfin_la_post.i
dolfin/swig/dolfin_la_pre.i test/unit/la/python/test.py description:
Added access to crs data (rows, cols and values)
 - Available for uBLAS and MTL4 backend
 - Added unit test coveraging the feature


changeset:   5726:15be324be0dbe14c03712911ccd0a53e007d5b55
user:        "Garth N. Wells <gnw20@xxxxxxxxx>"
date:        Tue Feb 17 20:54:42 2009 +0000
files:       ChangeLog SConstruct dolfin/scons.cfg
site-packages/dolfin/__init__.py description:
Update version number.

----------------------------------------------------------------------
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


_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/mailman/listinfo/dolfin-dev




Follow ups

References