Applying PointSource fails with 1 element in 1D
Bug #1043704 reported by
Jack Hale
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DOLFIN |
Fix Released
|
Medium
|
Unassigned |
Bug Description
A bit of an edge case, but applying a PointLoad to the end node of the 1D mesh fails. I am running Dolfin 1.0 so I guess this may have been fixed since.
from dolfin import *
mesh = UnitInterval(1)
V = FunctionSpace(mesh, "CG", 1)
u = TrialFunction(V)
v = TestFunction(V)
end_point = Point(1.0)
f = PointSource(V, end_point)
a = inner(u,v)*dx
L = Constant(0.0)*v*dx
A_matrix = assemble(a)
b_vector = assemble(L)
f.apply(b_vector)
with the following error:
Traceback (most recent call last):
File "bug_pointsourc
f.apply(
StandardError: CGAL ERROR: assertion violation!
Expr: m_primitives.size() > 1
File: /usr/include/
Line: 302
Related branches
Changed in dolfin: | |
status: | New → Confirmed |
To post a comment you must log in.
I actually just noticed this bug is very similar (possibly the same) as the one in Prof. Arnold's post:
https:/ /bugs.launchpad .net/dolfin/ +bug/1040312
I will compile the latest version from bzr and see if it is fixed.