<div dir="ltr">Hi and thanks. Are there any example for the usage of these calls?<br><br><div class="gmail_quote">On Fri, Jul 25, 2008 at 5:21 PM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Kevin,<br>
<br>
Make sure KSPRegisterAll() is called and that KSPRegister() is called specifically for KSPGMRES<br><font color="#888888">
<br>
Barry</font><div><div></div><div class="Wj3C7c"><br>
<br>
On Jul 25, 2008, at 4:12 PM, Kevin Ellwood wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi All,<br>
<br>
I am trying to resurrect an old FEM code of mine that was based on a very early version of PETSC (ie. 2.0.x). I am go through all the changes and I am pretty sure I have some issue to get through. However, this set of errors below from an early test run are puzzling me. The relevant lines of code are shown for setting two type of solvers. Both generate an error message indicating the Petsc can't find the KSP type once the KSPSolve is called. It seems odd that I can get such an error since KSPBCGS and KSPGMRES are define in petsc header files and can't be typos or miss-spellings.<br>
<br>
I know I messed up somewhere. Does anyone have advice as to where I should start looking?<br>
<br>
Thanks<br>
Kevin<br>
<br>
<br>
KSPSetType(ksp_solver,KSPBCGS);<br>
ierr = KSPSolve(ksp_solver, rhs, b); CHKERRQ(ierr);<br>
<br>
[0]PETSC ERROR: --------------------- Error Message ------------------------------------<br>
[0]PETSC ERROR: Unknown type. Check for miss-spelling or missing external package needed for type!<br>
[0]PETSC ERROR: Unable to find requested KSP type bcgs!<br>
<br>
<br>
KSPSetType(ksp_solver,KSPGMRES);<br>
ierr = KSPSolve(ksp_solver, rhs, b); CHKERRQ(ierr);<br>
<br>
[0]PETSC ERROR: --------------------- Error Message ------------------------------------<br>
[0]PETSC ERROR: Unknown type. Check for miss-spelling or missing external package needed for type!<br>
[0]PETSC ERROR: Unable to find requested KSP type gmres!<br>
[0]PETSC ERROR: ------------------------------------------------------------------------<br>
[0]PETSC ERROR: Petsc Release Version 2.3.3, Patch 3, Fri Jun 15 16:51:25 CDT 2007 HG revision: f051789beadcd36f77fb6111d20225e26ed7cc0d<br>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br></div>