Fortran interfaces in a toolbox
Jean-Pierre Dussault
Jean-Pierre.Dussault at USherbrooke.ca
Thu Oct 7 22:20:33 CEST 2010
Hi!
the toolbox_skeleton as well as the instructions at
http://wiki.scilab.org/howto/Create_a_toolbox
wrap the example fortran fsum into a C-wrapper. However, there exists
a "fort" command in scilab which allows to interface directly a fortran
function. Why then use the complicated fortran --> C --> scilab path
instead of fortran --> fort(...)?
Further complications arise when dealing with non-scalar variables which
will have to be properly converted in C before being properly
transmitted to scilab while the instruction "fort" takes care of this
easily while hiding cumbersome conversion details.
Will the "fort" command remain in scilab? If so, we will stick to using it!
Thx,
JPD
P.S. In the toolbox_skeleton (scilab binary distribution), csum.h and
csub.h are missing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20101007/53a0513a/attachment.htm>
More information about the dev
mailing list