<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:10px;"><div><font size="3"><span>I am confused with matrix object types and which one to use in my case:<br><br><br>I want to solve a linear system using multiple processes. The steps I am struggling with is the import of the global matrix and global rhs vector into applicable PETSc objects.<br><br>The global matrix is currently stored in CSR format using 3 arrays. Array one contains all the row indices, array two all the column indices, array three all the values of the global matrix. In addition to that, there's a vector object containing the rhs vector.<br><br>I think for the vector object I should use VectorCreateMPI with m set to PETSC_DECIDE?<br><br><br>What's the matrix object I should use in my case which also takes care of the allocation local matrices to the processes at a later stage i.e. creates the local matrices in line with the rhs vector?</span></font></div><div><font size="3"><br></font></div><div><font size="3">Klaus</font><br></div></div></body></html>