<div dir="ltr"><meta charset="utf-8"><span class="Apple-style-span" style="border-collapse: collapse; "><p style="font-family: arial, sans-serif; font-size: 13px; "><font size="1" face="宋体"><span lang="EN-US" style="font-size: 9pt; ">&quot;But I encounter a new problem, the situation is:<u></u><u></u></span></font></p>
<p style="font-family: arial, sans-serif; font-size: 13px; "><font size="1" face="宋体"><span lang="EN-US" style="font-size: 9pt; ">1, the matrix is big, and can be partitioned to several blocks;<u></u><u></u></span></font></p>
<p style="font-family: arial, sans-serif; font-size: 13px; "><font size="1" face="宋体"><span lang="EN-US" style="font-size: 9pt; ">2, started several threads to handle each block of matrix;<u></u><u></u></span></font></p><p style="font-family: arial, sans-serif; font-size: 13px; ">
<font size="1" face="宋体"><span lang="EN-US" style="font-size: 9pt; ">3, integrated all block matrices together.&quot;<u></u><u></u></span></font></p><div><font class="Apple-style-span" face="宋体"><span class="Apple-style-span" style="font-size: 12px;"><br>
</span></font></div><div><font class="Apple-style-span" face="宋体"><span class="Apple-style-span" style="font-size: 12px;">You should be using PETSc+MPI to handle this distribution for you.  Threading will not get around any memory limits for a single process that your system may have.</span></font></div>
<div><font class="Apple-style-span" face="宋体"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div><font class="Apple-style-span" face="宋体"><span class="Apple-style-span" style="font-size: 12px;">A</span></font></div>
</span></div>