Initialize the global configuration and allocate legacy model arrays.
Sets component count, EOS selector, temperature-dependence selector, and mixing-rule selector, then reallocates the shared parameter arrays. This routine resets the global legacy state and is not thread-safe.
call setup(nc, model_code, temperature_dependence_code, mixing_code)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | n |
Number of components |
||
| integer, | intent(in) | :: | nmodel |
Number of model |
||
| integer, | intent(in) | :: | ntdep |
Kij dependant of temperature |
||
| integer, | intent(in) | :: | ncomb |
Combining rule |