Next: 6.3.1.0.1 Description of Scilab
Up: 6.3 Intersci
Previous: 6.3 Intersci
In the following, we will only consider Fortran subroutine interfacing. The
process is nearly the same for C functions (see 6.3.1).
To use Intersci execute the command:
intersci <interface name>
where <interface name>.desc is the file describing the interface.
The intersci script file is located in the directory SCIDIR/bin.
Then the interface file <interface name>.f is created. A Scilab
script file .sce is also created. This file, with appropriate
changes, can be used to link the interface with Scilab.
The file <interface name>.desc is a sequence of descriptions of
pairs formed by the Scilab function and the corresponding Fortran subroutine
(see table 6.1).
Table 6.1:
Description of a pair of Scilab function and Fortran subroutine
< Scilab function name> < function arguments> |
< Scilab variable> < Scilab type> < possible arguments> |
|
< Fortran subroutine name> < subroutine arguments> |
< Fortran argument> < Fortran type> |
|
out < type> < formal output names> |
< formal output name> < variable> |
|
******************************* |
|
Each description is made of three parts:
-
description of Scilab function and its arguments
-
description of Fortran subroutine and its arguments
-
description of the output of Scilab function.
Next: 6.3.1.0.1 Description of Scilab
Up: 6.3 Intersci
Previous: 6.3 Intersci
Scilab Group