<div class="gmail_quote">On Mon, Mar 19, 2012 at 16:16, Pedro Torres <span dir="ltr">&lt;<a href="mailto:torres.pedrozpk@gmail.com">torres.pedrozpk@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":1vy">Ok, so the only way to implement that is coding by hand each algorithm for each thread, rigth?. <div><br></div><div>Anyway, at least can I use petsc object like Vec/Mat on each thread?.</div>

<div></div></div></blockquote></div><br><div>No, the threading model in PETSc does not allow you to call it simultaneously from different threads. You can set locks around every call, but this whole approach is almost certainly a waste of your time. Just solve those systems one after the other. It will be much simpler code and faster in many cases.</div>