PetscSNESComputeFunctionInternal
Date: 2013-07-02

    function
       petsc-3.4.2 2013-07-02 err = PetscSNESComputeFunctionInternal(pidsnes,pidx,pidf,funcname,ctx)
    %
    %   Used by SNESComputeFunction_Matlab() to apply user Matlab function
    %
    %   Are pidx and pidf are the raw C pointers to the to Vecs
    %
    err = 0;
    x = PetscVec(pidx,'pobj');
    f = PetscVec(pidf,'pobj');
    snes = PetscSNES(pidsnes,'pobj');
    err = feval(funcname,snes,x,f,ctx);