29.01.2015 Views

SuperLU: Sparse Direct Solver

SuperLU: Sparse Direct Solver

SuperLU: Sparse Direct Solver

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Fortran 90 Interface<br />

<strong>SuperLU</strong>_DIST_2.0/FORTRAN/<br />

All <strong>SuperLU</strong> objects (e.g., LU structure) are opaque for F90<br />

They are allocated, deallocated and operated in the C side and not directly<br />

accessible from Fortran side.<br />

C objects are accessed via handles that exist in Fortran’s user<br />

space<br />

In Fortran, all handles are of type INTEGER<br />

Example:<br />

⎡s<br />

u u ⎤<br />

⎢<br />

l u<br />

⎥<br />

⎢<br />

⎥<br />

A = ⎢ l p ⎥ , s = 19.0, u = 21.0, p = 16.0, e = 5.0, r = 18.0, l = 12.0<br />

⎢<br />

⎥<br />

⎢<br />

e u<br />

⎥<br />

⎢⎣<br />

l l r⎥⎦<br />

X. Li<br />

32

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

Saved successfully!

Ooh no, something went wrong!