Assembled matrix

Asked by Dupront

Hello,

Do we have to specify in the command file if the
assembled matrix is symmetric in order to use the
best iterative linear solver ?
The symmetry of the matrix cannot be determined internally ?

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Solved by:
Dupront
Solved:
Last query:
Last reply:
Revision history for this message
Anders Logg (logg) said :
#1

On Tue, Feb 28, 2012 at 02:50:55PM -0000, Dupront wrote:
> New question #189104 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/189104
>
> Hello,
>
> Do we have to specify in the command file if the
> assembled matrix is symmetric in order to use the
> best iterative linear solver ?
> The symmetry of the matrix cannot be determined internally ?

There is no check for symmetry. You need to set the solver parameter
"symmetric":

solver.parameters["symmetric"] = True

--
Anders

Revision history for this message
Dupront (michel-dupront) said :
#2

I will do that.

Thank you very much.