subroutine GridInterp_Scalar2D_t(this,f)
implicit none
class(Scalar2D_t),intent(in) :: this
real(prec),intent(inout) :: f(1:this%M+1,1:this%M+1,1:this%nelem,1:this%nvar)
! Local
integer :: i,j,ii,jj,iel,ivar
real(prec) :: fi,fij
do concurrent(i=1:this%M+1,j=1:this%M+1,iel=1:this%nElem,ivar=1:this%nVar)
fij = 0.0_prec
do jj = 1,this%N+1
fi = 0.0_prec
do ii = 1,this%N+1
fi = fi+this%interior(ii,jj,iel,ivar)*this%interp%iMatrix(ii,i)
enddo
fij = fij+fi*this%interp%iMatrix(jj,j)
enddo
f(i,j,iel,ivar) = fij
enddo
endsubroutine GridInterp_Scalar2D_t