Skip to content

Commit

Permalink
Added to destroy the porosity linked list.
Browse files Browse the repository at this point in the history
  • Loading branch information
mhirabay committed Dec 29, 2016
1 parent d0c76e1 commit a68728f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/CTEM.f90
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,15 @@ program CTEM
end do
end if

! If doporosity is true, then destroy the linked list for porosity
if (user%doporosity) then
do yp = 1, user%gridsize
do xp = 1, user%gridsize
call util_destroy_list(surf(xp,yp)%porolayer)
end do
end do
end if

! Deallocate all the allocatables
deallocate(seedarr)
deallocate(surf,prod,vdist,pdist,crtscl,truedist,truelist,obsdist,obslist,nflux,production_list)
Expand Down

0 comments on commit a68728f

Please sign in to comment.