<div dir="ltr">Ah.&nbsp; I think I have confused you guys.&nbsp; I am using the most recent version pf Petsc (ie. 2.3.3 p13).&nbsp; I am trying to get my old code (which I made using 2.0.22) up and running.&nbsp; I have updated most everything and I am trying to run for the first time.&nbsp; Given what you said, I am guessing that I have messed up in a way the causes KSPRegisterAll and KSPRegister not to be called.&nbsp; <br>
<br>Thanks<br>Kev<br><br><br><div class="gmail_quote">On Sat, Jul 26, 2008 at 10:14 AM, Matthew Knepley <span dir="ltr">&lt;<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>&gt;</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;">
<div class="Ih2E3d">On Fri, Jul 25, 2008 at 8:56 PM, Kevin Ellwood &lt;<a href="mailto:kellwood@gmail.com">kellwood@gmail.com</a>&gt; wrote:<br>
&gt; Hi and thanks. &nbsp;Are there any example for the usage of these calls?<br>
<br>
</div>There is not really a &quot;usage&quot;. They are supposed to be called automatically<br>
and you never know. However, when using ancient versions of petsc, sometimes<br>
things go wrong. I really encourage upgrading to the latest version.<br>
<br>
 &nbsp;Thanks,<br>
<br>
 &nbsp; &nbsp; Matt<br>
<div><div></div><div class="Wj3C7c"><br>
&gt; On Fri, Jul 25, 2008 at 5:21 PM, Barry Smith &lt;<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; &nbsp;Kevin,<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; Make sure KSPRegisterAll() is called and that KSPRegister() is called<br>
&gt;&gt; specifically for KSPGMRES<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; Barry<br>
&gt;&gt;<br>
&gt;&gt; On Jul 25, 2008, at 4:12 PM, Kevin Ellwood wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; Hi All,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I am trying to resurrect an old FEM code of mine that was based on a very<br>
&gt;&gt;&gt; early version of PETSC (ie. 2.0.x). &nbsp;I am go through all the changes and I<br>
&gt;&gt;&gt; am pretty sure I have some issue to get through. &nbsp;However, this set of<br>
&gt;&gt;&gt; errors below from an early test run are puzzling me. &nbsp;The relevant lines of<br>
&gt;&gt;&gt; code are shown for setting two type of solvers. &nbsp;Both generate an error<br>
&gt;&gt;&gt; message indicating the Petsc can&#39;t find the KSP type once the KSPSolve is<br>
&gt;&gt;&gt; called. &nbsp; It seems odd that I can get such an error since &nbsp;KSPBCGS and<br>
&gt;&gt;&gt; KSPGMRES are define in petsc header files and can&#39;t be typos or<br>
&gt;&gt;&gt; miss-spellings.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I know I messed up somewhere. &nbsp;Does anyone have advice as to where I<br>
&gt;&gt;&gt; should start looking?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks<br>
&gt;&gt;&gt; Kevin<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; KSPSetType(ksp_solver,KSPBCGS);<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; ierr = KSPSolve(ksp_solver, rhs, b); CHKERRQ(ierr);<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; [0]PETSC ERROR: --------------------- Error Message<br>
&gt;&gt;&gt; ------------------------------------<br>
&gt;&gt;&gt; [0]PETSC ERROR: Unknown type. Check for miss-spelling or missing external<br>
&gt;&gt;&gt; package needed for type!<br>
&gt;&gt;&gt; [0]PETSC ERROR: Unable to find requested KSP type bcgs!<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; KSPSetType(ksp_solver,KSPGMRES);<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; ierr = KSPSolve(ksp_solver, rhs, b); CHKERRQ(ierr);<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; [0]PETSC ERROR: --------------------- Error Message<br>
&gt;&gt;&gt; ------------------------------------<br>
&gt;&gt;&gt; [0]PETSC ERROR: Unknown type. Check for miss-spelling or missing external<br>
&gt;&gt;&gt; package needed for type!<br>
&gt;&gt;&gt; [0]PETSC ERROR: Unable to find requested KSP type gmres!<br>
&gt;&gt;&gt; [0]PETSC ERROR:<br>
&gt;&gt;&gt; ------------------------------------------------------------------------<br>
&gt;&gt;&gt; [0]PETSC ERROR: Petsc Release Version 2.3.3, Patch 3, Fri Jun 15 16:51:25<br>
&gt;&gt;&gt; CDT 2007 HG revision: f051789beadcd36f77fb6111d20225e26ed7cc0d<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
What most experimenters take for granted before they begin their<br>
experiments is infinitely more interesting than any results to which<br>
their experiments lead.<br>
-- Norbert Wiener<br>
<br>
</font></blockquote></div><br></div>