ident_zeros fails with PETSc.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DOLFIN |
Fix Released
|
Undecided
|
Jan Blechta |
Bug Description
Using the development version of dolfin, when calling ident_zeros on any matrix that actually has null rows, PETSc throws an "Argument out of range" error. For example
from dolfin import *
mesh = UnitSquare(10,10)
Q = FunctionSpace(
u = TrialFunction(Q)
phi = TestFunction(Q)
A = u*phi*ds
a = assemble(A)
a.ident_zeros()
yields:
[0]PETSC ERROR: Configure options COPTFLAGS=-O2 --with-debugging=0 --with-
[0]PETSC ERROR: -------
[0]PETSC ERROR: MatSetValues_
[0]PETSC ERROR: MatSetValues() line 1115 in /home/brinkerho
[0]PETSC ERROR: -------
[0]PETSC ERROR: Argument out of range!
[0]PETSC ERROR: New nonzero at (94,94) caused a malloc!
[0]PETSC ERROR: -------
for every non-zero row. The above code worked with the previous development version.
Related branches
- Garth Wells: Approve
-
Diff: 12 lines (+1/-1)1 file modifiedtest/unit/la/python/Matrix.py (+1/-1)
Changed in dolfin: | |
status: | New → In Progress |
I'a