SHARE
TWEET

Untitled

a guest Nov 25th, 2015 231 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module msoup
  2.  
  3. use mind
  4.  
  5. public :: newS, insertS, nextS, takeS, an_indS, emptyS, sizeS, showS
  6. type, public :: soup
  7.         private
  8.         type(node), pointer :: fst
  9. end type soup
  10.  
  11. type, private :: node
  12.         type(ind) :: pathI
  13.         type(node), pointer :: next
  14. end type node
  15.  
  16. contains
  17.  
  18. function newS() result(c)
  19. type(soup) :: c
  20.  
  21. c%fst=>null()
  22. end function newS
  23.  
  24. recursive subroutine insertS(i,s)
  25. type(ind), intent(in) :: i
  26. type(soup), intent(inout) :: s
  27.  
  28. if (.not. associated(i)) then
  29.         i => s
  30. else if
  31. end recursive subroutine insertS
  32.  
  33. subroutine nextS(s,i1,i2,b)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top