Free_Lagrange_t Subroutine

public subroutine Free_Lagrange_t(this)

Frees all memory (host and device) associated with an instance of the Lagrange_t class

Arguments

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

Lagrange_t class instance


Contents

Source Code


Source Code

  subroutine Free_Lagrange_t(this)
    !! Frees all memory (host and device) associated with an instance of the Lagrange_t class
    implicit none
    class(Lagrange_t),intent(inout) :: this
    !! Lagrange_t class instance

    deallocate(this%controlPoints)
    deallocate(this%targetPoints)
    deallocate(this%bWeights)
    deallocate(this%qWeights)
    deallocate(this%iMatrix)
    deallocate(this%dMatrix)
    deallocate(this%dgMatrix)
    deallocate(this%bMatrix)

  endsubroutine Free_Lagrange_t