<span id="mailbox-conversation">Awesome, thanks.  I ran into that bug and thought I was doing something wrong.<div><br></div>
<div>-Andrew</div></span><div class="mailbox_signature">
<br>—<br>Andrew</div>
<br><br><div class="gmail_quote"><p>On Wed, Dec 3, 2014 at 5:40 PM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>></span> wrote:<br></p><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>> On Dec 3, 2014, at 5:13 PM, Andrew Spott <ansp6066@colorado.edu> wrote:
<br>> 
<br>> What is the easiest way to change the block size of a matrix?
<br>> 
<br>> I have a matrix that was saved with a block size of 1, and I would like to increase it upon load to a larger block size.  Is there a simple way of doing this?
<br><br>   Yes, declare it as a BAIJ before calling MatLoad() for example
<br><br>    Mat A;
<br><br>    MatCreate(comm,&A);
<br>    MatSetType(A,MATBAIJ);
<br>    MatLoad(A,viewer);
<br><br>    and pass the command line option -matload_block_size 2  
<br><br>    In the development version of PETSc you can skip the command line option and instead use 
<br><br>    MatSetBlockSize(A,2);   before the call to MatLoad().    There was a bug in the release version of PETSc that prevented this from previously working.
<br><br>   Barry
<br><br>> 
<br>> Thanks
<br>> 
<br>> -Andrew Spott
<br>> 
<br><br></blockquote></div><br>