public subroutine ply_convertFromOversample(modalCoeffs, poly_proj, nDim, state, nScalars)

Truncating an oversampled polynomial representation back to the original
representation.

Note, that the oversampled array, which is given as an input here is
is always a Q-Polynomial representation, while the target truncated state
might also be a P-Polynomial.

The number of dimensions to determine the correct oversampling routine.

real(kind=rk),

intent(out)

::

state(:,:)

Truncated state for one element obtained from the modalCoeffs

integer,

intent(in),

optional

::

nScalars

The number of scalar variables to convert. If nScalars is not passed
to this subroutine, all variables of argument state will be considered
by this routine.

Nodes of different colours represent the following:

Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.

Nodes of different colours represent the following:

Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.