Exterior facet assembly does not detect the sparsity pattern

Bug #892734 reported by corrado maurini
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
DOLFIN
Fix Released
Medium
Garth Wells

Bug Description

Hi,

I suspect that the exterior facet assembly does not detect the sparsity pattern.
The code to reproduce this is reported below.
I cannot find any reference to the case "exterior facets" in SparsityPatternBuilder.cpp, see:
http://bazaar.launchpad.net/~dolfin-core/dolfin/trunk/view/head:/dolfin/fem/SparsityPatternBuilder.cpp

May you please validate or invalidate this bug?
Thanks for your help.

Corrado
--------------------------
from dolfin import *
set_log_level(DEBUG)
mesh = UnitSquare(4,4)
V = VectorFunctionSpace(mesh, "CG", 1)
u = TrialFunction(V)
v = TestFunction(V)

# This create a matrix with zeros
assemble(inner(u,v)*dx)

# This create a matrix without zeros
assemble(inner(u,v)*ds)
-------------------------------

Revision history for this message
Johan Hake (johan-hake) wrote :

A hackish work around is to assemble a a matrix using the first form and then reuse the matrix while assemble the second one.

Changed in dolfin:
status: New → Confirmed
importance: Undecided → Medium
Changed in dolfin:
assignee: nobody → Garth Wells (garth-wells)
milestone: none → 1.1.0
Changed in dolfin:
status: Confirmed → Fix Committed
Changed in dolfin:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.