When a routine is set from within a Fortran program by a routine such as KSPSetConvergenceTest(), that routine is assumed to be a Fortran routine. Likewise, when a routine is set from within a C program, that routine is assumed to be written in C.