allocate_work_arrays Subroutine

public subroutine allocate_work_arrays(state)

Allocate all solver work arrays owned by a solver instance.

This centralises array ownership so drivers and tests do not duplicate the same allocation block. Scratch arrays are preallocated here as part of the standard solver lifecycle.

Arguments

Type IntentOptional Attributes Name
type(solver_state_t), intent(inout) :: state