<div dir="ltr">Hi Matthew,<div><br></div><div>I've rebuilt petsc // petsc4py with following versions:</div><div><br></div><div>3.7.0 // 3.7.0 => same runtime error</div><div>00c67f3 // 3.7.1 => fails to build petsc4py (error below)<br></div><div>00c67f3 // 6e8e093 => same as above<br></div><div>f1b0812 (latest commit) // 6e8e093 (latest commit) => same as above</div><div><br></div><div><div>In file included from src/PETSc.c:3:0:</div><div>src/petsc4py.PETSc.c: In function ‘__pyx_pf_8petsc4py_5PETSc_6DMPlex_4createBoxMesh’:</div><div>src/petsc4py.PETSc.c:214629:112: error: incompatible type for argument 4 of ‘DMPlexCreateBoxMesh’</div><div> __pyx_t_4 = __pyx_f_8petsc4py_5PETSc_CHKERR(DMPlexCreateBoxMesh(__pyx_v_ccomm, __pyx_v_cdim, __pyx_v_interp, (&__pyx_v_newdm))); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(42, 49, __pyx_L1_error)</div></div><div><br></div><div>using <br></div><div>- numpy 1.11.0 </div><div>- openblas 0.2.18</div><div>- openmpi 1.10.2</div><div><br></div><div>Thanks</div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-02 16:39 GMT+02:00 Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Thu, Jun 2, 2016 at 9:12 AM, neok m4700 <span dir="ltr"><<a href="mailto:neok.m4700@gmail.com" target="_blank">neok.m4700@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I built petsc 3.7.1 and petsc4py 3.7.0 (with openmpi 1.10.2) and ran the examples in the demo directory.</div></div></blockquote><div><br></div></span><div>I believe this was fixed in 'master': <a href="https://bitbucket.org/petsc/petsc/commits/00c67f3b09c0bcda06af5ed306d845d9138e5003" target="_blank">https://bitbucket.org/petsc/petsc/commits/00c67f3b09c0bcda06af5ed306d845d9138e5003</a></div><div><br></div><div>Is it possible to try this?</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div><div class="h5"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>$ python test_mat_ksp.py </div><div>=> runs as expected (serial)</div><div><br></div><div><div>$ mpiexec -np 2 python test_mat_ksp.py </div><div>=> fails with the following output:</div></div><div><br></div><div><div>Traceback (most recent call last):</div><div> File "<...>/demo/kspsolve/test_mat_ksp.py", line 15, in <module></div><div> execfile('petsc-ksp.py')</div><div> File "<...>/demo/kspsolve/test_mat_ksp.py", line 6, in execfile</div><div> try: exec(fh.read()+"\n", globals, locals)</div><div> File "<string>", line 15, in <module></div><div> File "PETSc/KSP.pyx", line 384, in petsc4py.PETSc.KSP.solve (src/petsc4py.PETSc.c:153555)</div><div>petsc4py.PETSc.Error: error code 92</div><div>[0] KSPSolve() line 599 in <...>/src/ksp/ksp/interface/itfunc.c</div><div>[0] KSPSetUp() line 390 in <...>/src/ksp/ksp/interface/itfunc.c</div><div>[0] PCSetUp() line 968 in <...>/src/ksp/pc/interface/precon.c</div><div>[0] PCSetUp_ICC() line 21 in <...>/src/ksp/pc/impls/factor/icc/icc.c</div><div>[0] MatGetFactor() line 4240 in<...>/src/mat/interface/matrix.c</div><div>[0] You cannot overwrite this option since that will conflict with other previously set options</div><div>[0] Could not locate solver package (null). Perhaps you must ./configure with --download-(null)</div></div><div><br></div><div><...><br></div><div><div>-------------------------------------------------------</div><div>Primary job terminated normally, but 1 process returned</div><div>a non-zero exit code.. Per user-direction, the job has been aborted.</div><div>-------------------------------------------------------</div><div>--------------------------------------------------------------------------</div><div>mpirun detected that one or more processes exited with non-zero status, thus causing</div><div>the job to be terminated. The first process to do so was:</div><div><br></div><div> Process name: [[23110,1],0]</div><div> Exit code: 1</div><div>--------------------------------------------------------------------------</div></div><div><br></div><div><br></div><div>What have I done wrong ?</div><div><br></div><div><br></div><div><br></div></div>
</blockquote></div></div></div><span class=""><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature">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>
</font></span></div></div>
</blockquote></div><br></div></div>