22.09.2013 Views

Chapter 1 parallel sparse solver - freeFEM.org

Chapter 1 parallel sparse solver - freeFEM.org

Chapter 1 parallel sparse solver - freeFEM.org

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4 CHAPTER 1. PARALLEL SPARSE SOLVER<br />

}<br />

defaulttoMUMPS();<br />

{<br />

}<br />

matrix A =<br />

[[ 1, 2, 2, 1, 1],<br />

[ 2, 12, 0, 10 , 10],<br />

[ 2, 0, 1, 0, 2],<br />

[ 1, 10, 0, 22, 0.],<br />

[ 1, 10, 2, 0., 22]];<br />

// solving with MUMPS<br />

// default <strong>solver</strong> : real-> MUMPS, complex -> MUMPS<br />

real[int] xx = [ 1,32,45,7,2], x(5), b(5), di(5);<br />

b=A*xx;<br />

cout

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!