Dear all,<div><br></div><div>Assume that I want to convert an indices in application order into petsc order.</div><div>But I don't know the indices in application is in range.</div><div><br></div><div>Say </div><div>I call</div>
<div>ao = PETSc.AO().createMapping([4,2,3])</div><div><br></div><div>then</div><div>ao.app2petsc([2,5,3])</div><div>will raise an error.</div><div><br></div><div>is there any way to make return value to [1,-1,2] instead of raising an error?</div>
<div><br></div><div><br></div><div>Or there is any way I can handle this error to make it work?</div><div><br></div><div>Best,</div><div>Xin</div>