Could we please change the PETSc option to allow setting matrix entries that have not been preallocated?
I would really like to change line 224 in PETScMatrix.cpp from
MatSetOption(*A, MAT_NEW_
to
MatSetOption(*A, MAT_NEW_
to allow setting entries in a matrix that have not been preallocated by the sparsitypattern
I know it's not an optimal solution, but this would make PeriodicBCs work again. It could be set back to True when PeriodicBCs have been migrated to the dofmaps. As of now PeriodicBCs only works using the solve(a == L) formalism and many of my applications are broken with trunk.
It could perhaps be made optional through a parameter? Not sure there is such an option for Epetra or other backends though?
Best regards
Mikael
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Mikael Mortensen for more information if necessary.