Free_DomainDecomposition Subroutine

public subroutine Free_DomainDecomposition(this)

Arguments

TypeIntentOptionalAttributesName
class(DomainDecomposition), intent(inout) :: this

Calls

proc~~free_domaindecomposition~~CallsGraph proc~free_domaindecomposition Free_DomainDecomposition hipfree hipfree proc~free_domaindecomposition->hipfree mpi_finalize mpi_finalize proc~free_domaindecomposition->mpi_finalize gpucheck gpucheck proc~free_domaindecomposition->gpucheck

Contents


Source Code

  subroutine Free_DomainDecomposition(this)
    implicit none
    class(DomainDecomposition),intent(inout) :: this
    ! Local
    integer :: ierror

    if(associated(this%offSetElem)) then
      deallocate(this%offSetElem)
    endif
    if(associated(this%elemToRank)) then
      deallocate(this%elemToRank)
      call gpuCheck(hipFree(this%elemToRank_gpu))
    endif

    if(allocated(this%requests)) deallocate(this%requests)
    if(allocated(this%stats)) deallocate(this%stats)

    print*,__FILE__," : Rank ",this%rankId+1,"/",this%nRanks," checking out."
    call MPI_FINALIZE(ierror)

  endsubroutine Free_DomainDecomposition