<div>Hi,</div>
<div> </div>
<div>presently I am using ./a.out -pc_type hypre -pc_hypre_type boomeramg to use hypre.</div>
<div> </div>
<div>However, I have 2 matrix to solve and now I only want one of them to use hypre, while the other use jacobi + bcgs.</div>
<div> </div>
<div>for the solver using hypre,</div>
<div> </div>
<div>initially it's just:</div>
<div> </div>
<div>call PCSetType(pc,PCLU,ierr) - direct solver</div>
<div> </div>
<div>I now changed to </div>
<div> </div>
<div>call PCSetType(pc,hypre,ierr)</div>
<div>
<p>call PCHYPRESetType(pc,boomeramg,ierr)</p>
<p>However, I got the error msg:</p>
<p>fortcom: Error: petsc_sub.F, line 125: This name does not have a type, and must have an explicit type. [HYPRE]<br> call PCSetType(pc,hypre,ierr)<br></p>
<p>Sorry I don't really understand the eg. hyppilut.c since my knowledge of the c language is very basic.</p>
<p>So how should I set the options to use hypre?</p>
<p>Thank you.</p>
<p><br> </p></div>