PetscErrorCode PetscFwkSetURL(PetscFwk fwk, const char url[])Logically collective on PetscFwk.
fwk | - - a PetscFwk object | |
url | - - URL string |
Notes: URL can point to a backendn -- a .so file or a .py file. The .so file must contain symbols for function 'void call(const char[])' or symbols 'void <msg>(void)' for any message <msg> that PetscFwk is expected to understand. When PetscFwkCall() is invoked with <msg>, a symbol for 'void <msg>(void)' is sought and called, if found. If not, a symbol for 'void call(const char[])' is sought and called with <msg> as the argument. If neither symbol is found, an error occurs. The .py file must define a class that implements 'call(str)' or '<msg>()' methods, as above. If no URL has been set, fwk attempts to reponsd to the message using function '<msg>' (failing that, 'call') retrieved from fwk using PetscObjectQueryFunction(). If neither '<msg>' nor 'call' have been previusly composed with fwk (see PetscObjectComposeFunction()), an error occurs.
.
Level:intermediate
Location:src/sys/fwk/interface/fwk.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages