TQINI3
Fortran |
TQINI3(DATABASE_PATH, TEMP_PATH, NWSG, NWSE, IWSG, IWSE) |
|
---|---|---|
C-interface |
tq_ini3(TC_STRING database_path, TC_STRING temp_path, TC_INT nwsg, TC_INT nwse, TC_INT* iwsg, TC_INT* iwse); |
|
Full name: |
Initialize TQ-Interface with user-specified database and temporary directories. If a GES file is used (i.e. no databases are opened) the directories can be empty strings. |
|
Purpose: |
The application program initializes the Thermo‑Calc package for thermodynamic calculations. This or TQINI must be called before using any other subroutines in the TQ-Interface. |
|
Arguments |
||
Name |
Type |
Value set on call or returned |
database_path |
Character*256 |
Path to the directory holding the data directory, which in turn contains the databases. See the examples collection for a default value for this parameter. |
temp_path |
Character*256 |
Path to the directory for temporary and log file output. This directory has to be writable by the user who runs the application. See the examples collection for a default value for this parameter. |
NWSG |
Integer |
Set to size of the workspace IWSG. |
NWSE |
Integer |
Set to size of the workspace IWSE. |
IWSG |
Integer array |
Memory area for storage of data inside the package. |
IWSE |
Integer array |
Memory area for storage of data inside the package. |

Note the following conventions to distinguish between the programming languages.
- Routines starting with TQXXX, for example, TQGDAT, are in the Fortran interface
- Routines starting with tq_xxxx, for example tq_gdat, are in the C-interface.
- In Fortran, all routines are subroutines and do not return any values except where explicitly declared as functions.
- All the C procedures are declared as void and do not return any values except where explicitly otherwise declared.
An example of how to read the subroutine definitions.