<div dir="ltr">Dear All,<div><br></div><div>I have a question regarding petsc4py. I'd like to access the data array in a local vector generated from a one-dimension da, which has dof = 1. I used q = localVec.getArray(). However, q shape now does not take into account dof which is one in my example. I always need to reshape q to match the intended dof. Is there a way to do that automatically?</div>
<div><br></div><div>Thank you very much.</div><div>Amal</div></div>