Adaptive solve witout a goal functional lacks proper error message

Bug #872104 reported by Johan Hake
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DOLFIN
Fix Released
Medium
Anders Logg

Bug Description

When goal functional is not provided to adaptive solve I get an non-informative error message.

##########################
from dolfin import *

mesh = UnitSquare(2,2)
face_markers = FacetFunction("uint", mesh, 1)
cell_markers = CellFunction("uint", mesh, 1)
V = FunctionSpace(mesh, "CG", 1)
v = TestFunction(V)
u = TrialFunction(V)

dxx = dx[cell_markers]
dss = ds[face_markers]

a = u*v*dxx(1) + u*v*dss(1)
L = v*dss(1)

u = Function(V)

solve(a==L, u, tol=0.001)
##########################

An error from UFL is raised:
UFLException: Not an UFL type: <type 'NoneType'>

Johan Hake (johan-hake)
description: updated
Anders Logg (logg)
Changed in dolfin:
assignee: nobody → Anders Logg (logg)
Changed in dolfin:
milestone: none → 1.0-rc1
Changed in dolfin:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Anders Logg (logg) wrote :

Fixed in 1.0.x-logg

Changed in dolfin:
status: Confirmed → In Progress
Anders Logg (logg)
Changed in dolfin:
status: In Progress → Fix Committed
Anders Logg (logg)
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.