GridInterp_Vector2D_t Subroutine

public subroutine GridInterp_Vector2D_t(this, f)

Arguments

TypeIntentOptionalAttributesName
class(Vector2D_t), intent(in) :: this
real(kind=prec), intent(out) :: f(1:this%M+1,1:this%M+1,1:this%nelem,1:this%nvar,1:2)

Contents

Source Code


Source Code

  subroutine GridInterp_Vector2D_t(this,f)
    implicit none
    class(Vector2D_t),intent(in) :: this
    real(prec),intent(out) :: f(1:this%M+1,1:this%M+1,1:this%nelem,1:this%nvar,1:2)
    ! Local
    integer :: i,j,ii,jj,iel,ivar,idir
    real(prec) :: fi,fij

    do concurrent(i=1:this%M+1,j=1:this%M+1,iel=1:this%nElem, &
                  ivar=1:this%nVar,idir=1:2)

      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,idir)*this%interp%iMatrix(ii,i)
        enddo
        fij = fij+fi*this%interp%iMatrix(jj,j)
      enddo
      f(i,j,iel,ivar,idir) = fij

    enddo

  endsubroutine GridInterp_Vector2D_t