<div dir="ltr">It looks like fieldsplitf.c has an extra PetscToPointer. type is already a pointer:<br><br>PETSC_EXTERN void PETSC_STDCALL pcfieldsplitgettype_(PC pc,PCCompositeType *type, int *__ierr ){<br>*__ierr = PCFieldSplitGetType(<br> (PC)PetscToPointer((pc) ),<br> (PCCompositeType* )PetscToPointer((type) ));<br>}<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 17, 2015 at 4:12 PM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Likely need to run in the debugger to see what generates the error. Perhaps a missing ierr?<br>
<span class="HOEnZb"><font color="#888888"><br>
Barry<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
> On Apr 17, 2015, at 9:10 AM, Mark Adams <<a href="mailto:mfadams@lbl.gov">mfadams@lbl.gov</a>> wrote:<br>
><br>
> I declare<br>
><br>
> PCCompositeType::pcctype<br>
><br>
> But PCFieldSplitGetType does not seem to like it?<br>
><br>
> Mark<br>
><br>
> [1]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------<br>
> [1]PETSC ERROR: Invalid pointer<br>
> [1]PETSC ERROR: Invalid Pointer to Int: Parameter # 2<br>
> [1]PETSC ERROR: See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" target="_blank">http://www.mcs.anl.gov/petsc/documentation/faq.html</a> for trouble shooting.<br>
> [1]PETSC ERROR: Petsc Development GIT revision: v3.5.3-2702-g1f714da GIT Date: 2015-04-16 11:32:06 -0500<br>
> [1]PETSC ERROR: ../../XGC1_3/xgc-em on a arch-macosx-gnu-g named MacBook-Pro.local by markadams Fri Apr 17 10:06:09 2015<br>
> [1]PETSC ERROR: Configure options --download-hypre=1 --download-p4est --download-superlu=1 --download-mumps --download-scalapack --download-superlu_dist=1 --download-parmetis=1 --download-metis=1 --download-triangle=1 --with-hdf5-dir=/Users/markadams/Codes/hdf5 --with-x=0 --with-debugging=1 PETSC_ARCH=arch-macosx-gnu-g<br>
> [1]PETSC ERROR: #1 PCFieldSplitGetType() line 2046 in /Users/markadams/Codes/petsc/src/ksp/pc/impls/fieldsplit/fieldsplit.c<br>
><br>
<br>
</div></div></blockquote></div><br></div>