next up previous contents index
Next: Language internals Up: Other features Previous: Precise   Contents   Index

Exec(), user(), how to link an external function to Gfem

exec('prog_name') will launch the application prog_name . It is useful to execute an external PDE solver for instance especially under Unix. It is not implemented for Macintosh because there is no simple way to return to MacGfem after progname has ended. The same can be achieved manually by a suitable combination of saveall, wait and load and simultaneous execution under multifinder.

user(what,f) calls the C++ function in a j-loop:

for (int j=0; j<nquad, j++)
creal gfemuser( creal what, creal* f, int j)

Remark: An example of such gfemuser function is in fem.C ; if you wish to put your own you must compile and link it. Under Unix, it is easy. Under the Macintosh system, either you use freefem, which is Gfem's kernel, or you must ask us a library version of MacGfem.


next up previous contents index
Next: Language internals Up: Other features Previous: Precise   Contents   Index
2001-11-04