<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
><br>
>   call PCCreate(PETSC_COMM_WORLD,mg,<wbr>ierr) !Create preconditioner context<br>
>   call PCSetType(mg,PCGAMG,ierr)<br>
>    call PCGAMGSetType(mg,PCGAMGAGG,<wbr>ierr)  !ERROR: 11 SEGV: Segmentation Violation | IS MY PETSC CORRUPTED? gamg.h empty<br>
<br>
</span>    This should work ok. Send a complete file we can compile and run that crashes like this.<br>
<span class=""><br></span></blockquote><div><br></div><div>I would reconfigure your PETSc from scratch by deleting the whole architecture directory $PETSC_DIR/$PETSC_ARCH, the configure, make.</div></div></div></div>