setup Subroutine

public subroutine setup(n, nmodel, ntdep, ncomb)

setup

Initialize the global configuration and allocate legacy model arrays.

Description

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.

Examples

call setup(nc, model_code, temperature_dependence_code, mixing_code)

Arguments

Type IntentOptional 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