<p>The PetscLayout is shared. It should probably not be allowed to change block size after duplicating.</p>
<div class="gmail_quote">On Mar 30, 2012 9:02 AM, "Blaise Bourdin" <<a href="mailto:bourdin@lsu.edu">bourdin@lsu.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I am trying to make use of the more advanced features of the hdf5 viewer.<br>
<br>
I get the following error when running src/vec/vec/examples/tutorials/ex19.c:<br>
[0]PETSC ERROR: VecLoad_HDF5() line 251 in /opt/HPC/petsc-dev/src/vec/vec/utils/vecio.c Block size 1 specified for vector does not match blocksize in file 2<br>
<br>
Upon further investigating, I noticed that if  Vec x2 is obtained by duplicating x1, then setting the block size for x2 also sets it for x1. Is this really the desired behavior?<br>
<br>
I am attaching an trivial example.<br>
<br>
Blaise<br>
<br>
<br><br>
<br>
--<br>
Department of Mathematics and Center for Computation & Technology<br>
Louisiana State University, Baton Rouge, LA 70803, USA<br>
Tel. <a href="tel:%2B1%20%28225%29%20578%201612" value="+12255781612">+1 (225) 578 1612</a>, Fax  <a href="tel:%2B1%20%28225%29%20578%204276" value="+12255784276">+1 (225) 578 4276</a> <a href="http://www.math.lsu.edu/~bourdin" target="_blank">http://www.math.lsu.edu/~bourdin</a><br>

<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br></blockquote></div>