next up previous
Next: Channel numbers Up: Overview/Use of routines Previous: Compiling and Linking External

Before you start

In stand alone operation the interface main program should initialise FEMGV by calling :

      CALL FGVINI(IWORK,IWLENG,IERR)
where IWORK is a large work array to be used as temporary storage by the user routines, IWLENG is an integer input parameter indicating the size of the array IWORK. IERR is an integer output parameter, where a non-zero value indicates whether there were any problems initialising FEMGV. In general, IWLENG should take the same value as the parameter LLCORF in the FEMGV main program.

Then the user routines should be initialised with the following call :

      CALL UIINIT(MODNAM,IFNEW,IFHIS,IWORK,IERR)

and terminated by :

      CALL UITERM(MODNAM,MODTIT,IFSAVE,IWORK,IERR)
      CALL FFERME(-1)
The parameters for these routines are described in the later sections.

The last parameter from routine UIINIT is an error code where 0 indicates no error has occurred. Other error codes may imply the following problems :

C --- OUT     : IERR   : 0 : OK                      (integer*4)
C                      : 1 : MODEL NOT FOUND IN INDEX
C                      : 2 : FEMGEN MODEL NOT FOUND
C                      : 3 : MODEL ALREADY EXISTS
C                      : 4 : ILLEGAL REQUEST
C                      : 5 : MODEL EXISTS BUT NOT IN INDEX
C                      : 6 : FEMGEN DATA BASE NOT FOUND
C                      : 7 : PROBLEM IN STARTING DATA BASE
C                      : 9 : `OLD' REQUIRES MODEL NAME
C

In between the initialisation of FEMGV and the user routines, and termination, the interface will be trying to transfer definitions of geometric parts and attributes. The following section describes the general scheme of these routines and what parameters they should be called with.



Femsys Limited
8/18/1999