TQGPN
Fortran |
TQGPN (INDEXP, NAME, IWSG, IWSE) |
|
---|---|---|
C-interface |
tq_gpn(TC_INT index,TC_STRING phase,TC_STRING_LENGTH strlen_phase,TC_INT* iwsg,TC_INT* iwse); |
|
Full name: |
Get Phase Name. |
|
Purpose: |
With this subroutine the application program can convert a phase index to the name of the phase. |
|
Comments: |
The conversion from phase name to phase index is done by TQGPI. Note that phases with miscibility gaps must appear with each possible composition set as a separate phase. These are named as BCC#1, BCC#2 etc. |
|
Arguments |
||
Name |
Type |
Value set on call or returned |
INDEXP |
Integer |
Set to the index of a phase. |
NAME |
Character*24 |
Return the name of the phase. |
IWSG |
Integer array |
Workspace |
IWSE |
Integer array |
Workspace |

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.