The state object allocation is done by calling the subroutine allocate_state, or the corresponding functions in C and Python. Allocating the state object requires a model object, as the quantities to be allocated and their size depend on the specific nature of the calculation. At this point, the state object is simply an empty container: the information about the RHSs has yet to be loaded, and the solutions have to be computed.