Subroutine to close the SuperLU process, with memory release
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(SULU_ENV), | intent(inout) | :: | sulu | 
   subroutine close_superlu(sulu)
   implicit none
   type(SULU_ENV), intent(inout) :: sulu
      call Destroy_CompCol_Matrix(sulu%SMA)
      call Destroy_Dense_Matrix(  sulu%smb)
      call Destroy_Dense_Matrix(  sulu%smx)
      deallocate( sulu%perm_c )
      deallocate( sulu%perm_r )
      deallocate( sulu%etree  )
      deallocate( sulu%RR )
      deallocate( sulu%CC )
      deallocate( sulu%ferr )
      deallocate( sulu%berr )
      deallocate( sulu%rpg   )
      deallocate( sulu%rcond )
   return
   endsubroutine close_superlu