<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p></p>
<div>Hi,<br>
I am trying to initialize a LCL TAO solver with petsc4py:<br>
<br>
<blockquote>from petsc4py import PETSc<br>
solver = PETSc.TAO().create()<br>
solver.setType(PETSc.TAO.Type.LCL)<br>
</blockquote>
<br>
The last line throws the following error:<br>
<br>
<blockquote>Traceback (most recent call last):<br>
File "<string>", line 3, in <module><br>
File "petsc4py/PETSc/TAO.pyx", line 183, in petsc4py.PETSc.TAO.setType<br>
petsc4py.PETSc.Error: error code 86<br>
[0] TaoSetType() at /petsc/src/tao/interface/taosolver.c:2164<br>
[0] Unknown type. Check for miss-spelling or missing package: <a href="https://urldefense.us/v3/__https://petsc.org/release/install/install/*external-packages__;Iw!!G_uCfscf7eWS!bi3UN8Pwci-Vryovl2zHhUj6yCPxh-3xwyOp74MnoU6mnVpJN8twrV3OQEGKWOU6UtghBOlXVbBW_TAta4L0NMGih55H4vncwyyG$">https://petsc.org/release/install/install/#external-packages</a><br>
[0] Unable to find requested Tao type lcl<br>
</blockquote>
<br>
However, hasattr(solver.Type(), 'LCL') returns True. The same happens with any other
<span>PETSc.TAO.Type</span>. What am I missing here?<br>
<br>
Cheers,<br>
Elena</div>
<br>
<p></p>
</div>
</body>
</html>