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