Barry Smith <[email protected]> writes:

>    Can we really write function pointers to a binary file? 

Not in general.  I don't know how you planned for it to work.

>    And what C is this?

Any dialect after C89.  Simple fix is declare and then assign rather
than assign in the initializer.  Which compiler is producing these
messages?

>   } else if (isbinary) {
>     struct {
>       PetscErrorCode (*func)(SNES,Vec,Vec,void*);
>       PetscErrorCode (*jac)(SNES,Vec,Mat*,Mat*,MatStructure*,void*);
>     } funcstruct = {kdm->ops->computefunction,kdm->ops->computejacobian};
>     ierr = 
> PetscViewerBinaryWrite(viewer,&funcstruct,2,PETSC_FUNCTION,PETSC_FALSE);CHKERRQ(ierr);
>   }

Attachment: pgpQjI0sk3PwA.pgp
Description: PGP signature

Reply via email to