<div dir="ltr"><div dir="ltr">On Mon, May 30, 2022 at 10:12 PM 冯宏磊 <<a href="mailto:12132391@mail.sustech.edu.cn">12132391@mail.sustech.edu.cn</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><font><span style="white-space:pre-wrap">Hey there</span></font></div><div><font>I'm a new user of PETSc. In use, I want to read and write an HDF5 file in parallel, but I only found an example of serial reading and writing. How can I read and write HDF5 in parallel? Can you give me a code sample?</font></div><div><font><pre><font style="display:inline;font-size:14px;font-family:"lucida Grande",Verdana,"Microsoft YaHei";color:rgb(0,0,0);background-color:rgba(0,0,0,0);font-weight:400;font-style:normal">I'm using C for monogramming by the way.</font></pre></font></div></blockquote><div>PETSc HDF5 output, such as VecView(), will automatically use parallelism if available. Are you trying to do something else?</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div style="color:rgb(144,144,144);font-family:"Arial Narrow";font-size:12px"></div></div><div style="font-size:14px;font-family:Verdana;color:rgb(0,0,0)"><div><div style="width:305px;height:35px;line-height:35px;margin:20px 0px 0px"><img src="https://exmail.qq.com/cgi-bin/viewfile?type=logo&domain=mail.sustech.edu.cn"></div><div style="margin:10px 0px 0px"><h4 style="margin:0px;font-size:14px;font-weight:bold;line-height:28px;zoom:1">冯宏磊</h4><p style="margin:0px;line-height:22px;color:rgb(160,160,160)"></p><p style="margin:0px;line-height:22px;color:rgb(160,160,160)">南方科技大学/研究生/研究生2021级</p><p style="margin:0px;line-height:22px;color:rgb(160,160,160)"></p><p style="margin:0px;line-height:22px;color:rgb(160,160,160)">广东省深圳市南山区学苑大道1088号</p></div></div></div><u></u></div><div> </div><div><u></u><u></u></div></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>