<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Menlo;
        panose-1:2 11 6 9 3 8 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
p.p1, li.p1, div.p1
        {mso-style-name:p1;
        margin:0cm;
        font-size:13.5pt;
        font-family:Menlo;
        color:black;}
span.s1
        {mso-style-name:s1;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:862978645;
        mso-list-type:hybrid;
        mso-list-template-ids:1867709776 -1866195254 134807577 134807579 134807567 134807577 134807579 134807567 134807577 134807579;}
@list l0:level1
        {mso-level-number-format:roman-lower;
        mso-level-text:"\(%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:72.0pt;
        text-indent:-54.0pt;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style>
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="p1"><span class="s1"><span style="font-size:10.0pt">Hello,</span></span><span class="s1"><o:p></o:p></span></p>
<p class="p1"><span class="s1"><span style="font-size:10.0pt"><o:p> </o:p></span></span></p>
<p class="p1"><span class="s1"><span style="font-size:10.0pt">I have system matrix which is symmetric and thought I could make use of
</span></span><span style="font-size:9.0pt;color:#6C36A9">MatCreateSBAIJ. </span>
<span class="s1"><span style="font-size:10.0pt">I don’t understand how to set the blocksize bs. I believe it has taken into account, when having multiple components/dofs per node.<o:p></o:p></span></span></p>
<p class="p1"><span class="s1"><o:p> </o:p></span></p>
<p class="p1" style="margin-left:72.0pt;text-indent:-54.0pt;mso-list:l0 level1 lfo2">
<![if !supportLists]><span class="s1"><span style="font-size:10.0pt"><span style="mso-list:Ignore">(i)<span style="font:7.0pt "Times New Roman"">         
</span></span></span></span><![endif]><span class="s1"><span style="font-size:10.0pt">Currently, I have only one scalar field to solve so I set bs = 1 as below. Is it correct?<o:p></o:p></span></span></p>
<p class="p1"><span class="s1"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-fareast-language:EN-GB">      ierr =
</span><span style="font-size:9.0pt;font-family:Menlo;color:#6C36A9;mso-fareast-language:EN-GB">MatCreateSBAIJ</span><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-fareast-language:EN-GB">(</span><span style="font-size:9.0pt;font-family:Menlo;color:#6C36A9;mso-fareast-language:EN-GB">PETSC_COMM_WORLD</span><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-fareast-language:EN-GB">,
</span><span style="font-size:9.0pt;font-family:Menlo;color:#1C00CF;mso-fareast-language:EN-GB">1</span><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-fareast-language:EN-GB">,
</span><span style="font-size:9.0pt;font-family:Menlo;color:#643820;mso-fareast-language:EN-GB">PETSC_DECIDE</span><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-fareast-language:EN-GB">,
</span><span style="font-size:9.0pt;font-family:Menlo;color:#643820;mso-fareast-language:EN-GB">PETSC_DECIDE</span><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-fareast-language:EN-GB">, N, N, d_nz,
</span><span style="font-size:9.0pt;font-family:Menlo;color:#643820;mso-fareast-language:EN-GB">PETSC_NULL</span><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-fareast-language:EN-GB">, o_nz,
</span><span style="font-size:9.0pt;font-family:Menlo;color:#643820;mso-fareast-language:EN-GB">PETSC_NULL</span><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-fareast-language:EN-GB">, &</span><span style="font-size:9.0pt;font-family:Menlo;color:#326D74;mso-fareast-language:EN-GB">A</span><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-fareast-language:EN-GB">);
</span><span style="font-size:9.0pt;font-family:Menlo;color:#643820;mso-fareast-language:EN-GB">CHKERRQ</span><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-fareast-language:EN-GB">(ierr);<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-fareast-language:EN-GB">   ierr =
</span><span style="font-size:9.0pt;font-family:Menlo;color:#6C36A9;mso-fareast-language:EN-GB">MatCreateVecs</span><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-fareast-language:EN-GB">(</span><span style="font-size:9.0pt;font-family:Menlo;color:#326D74;mso-fareast-language:EN-GB">A</span><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-fareast-language:EN-GB">,
 &</span><span style="font-size:9.0pt;font-family:Menlo;color:#326D74;mso-fareast-language:EN-GB">right</span><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-fareast-language:EN-GB">, &</span><span style="font-size:9.0pt;font-family:Menlo;color:#326D74;mso-fareast-language:EN-GB">left</span><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-fareast-language:EN-GB">);</span><span style="font-size:9.0pt;font-family:Menlo;color:#643820;mso-fareast-language:EN-GB">CHKERRQ</span><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-fareast-language:EN-GB">(ierr);<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="margin-left:72.0pt;text-indent:-54.0pt;mso-list:l0 level1 lfo2;background:white">
<![if !supportLists]><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-fareast-language:EN-GB"><span style="mso-list:Ignore">(ii)<span style="font:7.0pt "Times New Roman"">        
</span></span></span><![endif]><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-fareast-language:EN-GB">If you multiple components/dofs per node, say 2, is the then block size = 2?<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:72.0pt;background:white"><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="margin-left:72.0pt;text-indent:-54.0pt;mso-list:l0 level1 lfo2;background:white">
<![if !supportLists]><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-fareast-language:EN-GB"><span style="mso-list:Ignore">(iii)<span style="font:7.0pt "Times New Roman"">       
</span></span></span><![endif]><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-fareast-language:EN-GB">To apply homogenous Dirichlet boundary condition, I make use of MatZeroRowsColumns. It works in serial but while applying in parallel the following
 error is thrown,  <o:p></o:p></span></p>
<p class="p1"><span class="s1"><o:p> </o:p></span></p>
<p class="p1" style="text-indent:36.0pt"><span class="s1"><span style="font-size:10.0pt">[0]PETSC ERROR: No method zerorowscolumns for Mat of type mpisbaij<o:p></o:p></span></span></p>
<p class="p1" style="text-indent:36.0pt"><span class="s1"><span style="font-size:10.0pt"><o:p> </o:p></span></span></p>
<p class="p1" style="text-indent:36.0pt"><span class="s1"><span style="font-size:10.0pt">      How do I fix it?<o:p></o:p></span></span></p>
<p class="p1"><span class="s1"><span style="font-size:10.0pt"><o:p> </o:p></span></span></p>
<p class="MsoListParagraph" style="margin-left:72.0pt;text-indent:-54.0pt;mso-list:l0 level1 lfo2">
<![if !supportLists]><span style="mso-list:Ignore">(iv)<span style="font:7.0pt "Times New Roman"">                          
</span></span><![endif]><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-fareast-language:EN-GB">Is there performance again, when using
</span><span style="font-size:9.0pt;color:#6C36A9">MatCreateSBAIJ </span><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-fareast-language:EN-GB">for large symmetric system matrix? I read there is more communication involved.</span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Best,</p>
<p class="MsoNormal">Karthik.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p><span style="font-size: 6pt;">This email and any attachments are intended solely for the use of the named recipients. If you are not the intended recipient you must not use, disclose, copy or distribute this email or any of its attachments and should notify the sender immediately and delete this email from your system. UK Research and Innovation (UKRI) has taken every reasonable precaution to minimise risk of this email or any attachments containing viruses or malware but the recipient should carry out its own virus and malware checks before opening the attachments. UKRI does not accept any liability for any losses or damages which the recipient may sustain due to presence of any viruses. </span></p></body>
</html>