TQIPS_GET_MEMORY_USAGE
Fortran |
TQIPS_GET_MEMORY_USAGE(IBRANCH, FRACTION, ISLOTS, IUSEDSLOTS, ICALLS, IEQCALCS, IERR, IWSG, IWSE) |
|
---|---|---|
C-interface |
tq_ips_get_memory_usage(TC_INT branch_nr, TC_FLOAT* fraction,TC_INT* total_number_of_data_slots, TC_INT* number_of_used_data_slots, TC_INT* total_number_of_calls, TC_INT* total_number_of_equil_calcs, TC_INT* ierr,TC_INT* iwsg,TC_INT* iwse) |
|
Full name: |
Get statistics on the usage of the interpolation scheme. |
|
Purpose: |
To get some statistics on the performance of the interpolation scheme. |
|
Arguments |
||
Name |
Type |
Value set on call or returned |
IBRANCH |
Integer |
If IBRANCH>0 it is the branch number for which the data should be returned. If IBRANCH=0 then data is returned summed over all branches. |
FRACTION |
double precision |
This is simply equal to IUSEDSLOTS/ISLOTS |
ISLOTS |
Integer |
The total number of data slots allocated |
IUSEDSLOTS |
Integer |
The number of used data slots |
ICALLS |
Integer |
The number of calls to tqips_get_value |
IEQCALCS |
Integer |
The number of equilibrium calculations performed by Thermo‑Calc on behalf of the interpolation scheme |
IERR |
Integer |
error code |
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.