next up previous contents index
Next: 6.3.1.0.1 Description of Scilab Up: 6.3 Intersci Previous: 6.3 Intersci

6.3.1 Using 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>
    $\vdots$                $\vdots$                $\vdots$                $\vdots$                 $\vdots$
< Fortran subroutine name> < subroutine arguments>
< Fortran argument> < Fortran type>
    $\vdots$                $\vdots$                $\vdots$                $\vdots$
out < type> < formal output names>
< formal output name> < variable>
    $\vdots$                $\vdots$                $\vdots$                $\vdots$
*******************************
 

Each description is made of three parts:



 
next up previous contents index
Next: 6.3.1.0.1 Description of Scilab Up: 6.3 Intersci Previous: 6.3 Intersci
Scilab Group