<div>Sorry to trouble you ppl again.</div>
<div> </div>
<div>The 1st step worked but subsequently I got the error msg:</div>
<div> </div>
<div> --------------------- Error Message ------------------------------------<br>[0]PETSC ERROR: Operation done in wrong order!<br>[0]PETSC ERROR: Cannot set the HYPRE preconditioner type once it has been set!</div>
<div> </div>
<div>I have used :</div>
<div> </div>
<div>call PCHYPRESetType(pc,'boomeramg',ierr)<br> <br>call PCSetType(pc,'hypre',ierr)</div>
<div> </div>
<div> </div>
<div>I changed the 2 order but it still can't work.</div>
<div> </div>
<div>Thanks again<br><br> </div>
<div> </div>
<div><br><br> </div>
<div><span class="gmail_quote">On 5/22/07, <b class="gmail_sendername">Ben Tay</b> <<a href="mailto:zonexo@gmail.com">zonexo@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Ops.... how careless. Thanks again.
<div><span class="e" id="q_112b406daabe6b9e_1"><br><br>
<div><span class="gmail_quote">On 5/22/07, <b class="gmail_sendername">Barry Smith</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:bsmith@mcs.anl.gov" target="_blank">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 onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:balay@mcs.anl.gov" target="_blank">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></span></div></blockquote></div><br>