ply_convertFromOversample_2d Subroutine

private subroutine ply_convertFromOversample_2d(modalCoeffs, poly_proj, state, nScalars)

Truncating an oversampled 2D 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.

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(in) :: modalCoeffs(:,:)

Oversampled modal array for one element

type(ply_poly_project_type), intent(in) :: poly_proj

Data of the projection method

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.