<div dir="ltr">Hello PETSc users !<br><br>I'm trying to use PETSc routine to read and write complex vectors to binary files in parallel.<br><br><div>I'm using dolfinx and petsc4py inside a docker container. My end goal is to write a dolfinx Function object to file, then read it again.</div><div><br></div><div>My current code goes something like :</div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:"Droid Sans Mono","monospace",monospace;font-weight:normal;font-size:14px;line-height:19px;white-space:pre"><div></div><div><span style="color:rgb(156,220,254)">viewer</span><span style="color:rgb(212,212,212)"> = </span><span style="color:rgb(78,201,176)">pet</span><span style="color:rgb(212,212,212)">.Viewer().createHDF5(</span><span style="color:rgb(206,145,120)">"file.h5"</span><span style="color:rgb(212,212,212)">, </span><span style="color:rgb(206,145,120)">'w'</span><span style="color:rgb(212,212,212)">, </span><span style="color:rgb(156,220,254)">comm</span><span style="color:rgb(212,212,212)">)</span></div><div>function<span style="color:rgb(212,212,212)">.</span><span style="color:rgb(156,220,254)">vector</span><span style="color:rgb(212,212,212)">.view(</span><span style="color:rgb(156,220,254)">viewer</span><span style="color:rgb(212,212,212)">)</span></div></div><div><br></div><div>And fails with traceback :<br></div><div>petsc4py.PETSc.Error: error code 86<br>[9] PetscViewerSetType() at /usr/local/petsc/src/sys/classes/viewer/interface/viewreg.c:435<br>[9] Unknown type. Check for miss-spelling or missing package: <a href="https://petsc.org/release/install/install/#external-packages">https://petsc.org/release/install/install/#external-packages</a><br>[9] Unknown PetscViewer type given: hdf5</div><div><br></div><div>The relevant functions show on pydoc, what am I doing wrong ?<br></div><div><br></div><div>Cheers,<br></div><div><br></div>Quentin</div>