Ops.... how careless. Thanks again.<br><br>
<div><span class="gmail_quote">On 5/22/07, <b class="gmail_sendername">Barry Smith</b> &lt;<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>pcsettype<br><br><br>On Tue, 22 May 2007, Ben Tay wrote:<br><br>&gt; Sorry I got this error during linking:
<br>&gt;<br>&gt; petsc_sub.o(.text+0x20c): In function `petsc_sub_mp_petsc_solver_pois_&#39;:<br>&gt; /nfs/home/enduser/g0306332/ns2d_c/petsc_sub.F:125: undefined reference to<br>&gt; `pcsetype_&#39;<br>&gt;<br>&gt; Did I miss out something?
<br>&gt;<br>&gt; Thanks<br>&gt;<br>&gt;<br>&gt; On 5/22/07, Satish Balay &lt;<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; use:<br>&gt; &gt;<br>&gt; &gt; call PCSetType(pc,&#39;hypre&#39;,ierr)
<br>&gt; &gt; call PCHYPRESetType(pc,&#39;boomeramg&#39;,ierr)<br>&gt; &gt;<br>&gt; &gt; Satish<br>&gt; &gt;<br>&gt; &gt; On Tue, 22 May 2007, Ben Tay wrote:<br>&gt; &gt;<br>&gt; &gt; &gt; Hi,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; presently I am using ./a.out -pc_type hypre -pc_hypre_type boomeramg to
<br>&gt; &gt; use<br>&gt; &gt; &gt; hypre.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; However, I have 2 matrix to solve and now I only want one of them to use<br>&gt; &gt; &gt; hypre, while the other use jacobi + bcgs.<br>&gt; &gt; &gt;
<br>&gt; &gt; &gt; for the solver using hypre,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; initially it&#39;s just:<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; call PCSetType(pc,PCLU,ierr) - direct solver<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I now changed to
<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; call PCSetType(pc,hypre,ierr)<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; call PCHYPRESetType(pc,boomeramg,ierr)<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; However, I got the error msg:<br>&gt; &gt; &gt;
<br>&gt; &gt; &gt; fortcom: Error: petsc_sub.F, line 125: This name does not have a type,<br>&gt; &gt; and<br>&gt; &gt; &gt; must have an explicit type.&nbsp;&nbsp; [HYPRE]<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;call PCSetType(pc,hypre,ierr)<br>
&gt; &gt; &gt;<br>&gt; &gt; &gt; Sorry I don&#39;t really understand the eg. hyppilut.c since my knowledge of<br>&gt; &gt; the<br>&gt; &gt; &gt; c language is very basic.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; So how should I set the options to use hypre?
<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Thank you.<br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt;<br><br></blockquote></div><br>