SideExchange_MappedVector3D Subroutine

public subroutine SideExchange_MappedVector3D(this, mesh)

Arguments

TypeIntentOptionalAttributesName
class(MappedVector3D), intent(inout) :: this
type(Mesh3D), intent(inout) :: mesh

Calls

proc~~sideexchange_mappedvector3d~~CallsGraph proc~sideexchange_mappedvector3d SideExchange_MappedVector3D interface~sideexchange_3d_gpu SideExchange_3D_gpu proc~sideexchange_mappedvector3d->interface~sideexchange_3d_gpu interface~applyflip_3d_gpu ApplyFlip_3D_gpu proc~sideexchange_mappedvector3d->interface~applyflip_3d_gpu

Contents


Source Code

  subroutine SideExchange_MappedVector3D(this,mesh)
    implicit none
    class(MappedVector3D),intent(inout) :: this
    type(Mesh3D),intent(inout) :: mesh
    ! Local
    integer :: offset

    offset = mesh%decomp%offsetElem(mesh%decomp%rankId+1)

    if(mesh%decomp%mpiEnabled) then
      call this%MPIExchangeAsync(mesh)
    endif
    call SideExchange_3D_gpu(this%extboundary_gpu, &
                             this%boundary_gpu,mesh%sideinfo_gpu,mesh%decomp%elemToRank_gpu, &
                             mesh%decomp%rankid,offset,this%interp%N,3*this%nvar,this%nelem)

    if(mesh%decomp%mpiEnabled) then
      call mesh%decomp%FinalizeMPIExchangeAsync()
      ! Apply side flips for data exchanged with MPI
      call ApplyFlip_3D_gpu(this%extboundary_gpu,mesh%sideInfo_gpu, &
                            mesh%decomp%elemToRank_gpu,mesh%decomp%rankId, &
                            offset,this%interp%N,3*this%nVar,this%nElem)
    endif

  endsubroutine SideExchange_MappedVector3D