Ops.... how careless. Thanks again.<br><br>
<div><span class="gmail_quote">On 5/22/07, <b class="gmail_sendername">Barry Smith</b> <<a href="mailto:bsmith@mcs.anl.gov">bsmith@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"><br>pcsettype<br><br><br>On Tue, 22 May 2007, Ben Tay wrote:<br><br>> Sorry I got this error during linking:
<br>><br>> 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<br>> `pcsetype_'<br>><br>> Did I miss out something?
<br>><br>> Thanks<br>><br>><br>> On 5/22/07, Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br>> ><br>> > 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
<br>> > 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,<br>> > 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<br>> > 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>> ><br>><br><br></blockquote></div><br>