Skip to content

Commit

Permalink
Initialize 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 cb28e57 commit 1ee5804
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions src/init/init_porosity_stack.f90
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
!**********************************************************************************************************************************
!
! Unit Name : init_porosity_stack
! Unit Type : subroutine
! Project : CTEM
! Language : Fortran 2003
!
! Description : Initializes the porosity stack to null
!
!
! Input
! Arguments : porolayer
!
! Output
! Arguments : porolayer
!
!
! Notes :
!
!**********************************************************************************************************************************
subroutine init_porosity_stack(user,surf)
use module_globals
use module_util
use module_init, EXCEPT_THIS_ONE => init_porosity_stack
implicit none

! Arguments
type(usertype),intent(in) :: user
type(surftype),dimension(:,:),intent(inout) :: surf
type(regodatatype) :: bedrock
integer(I4B) :: xp, yp

! Internal variables
logical :: initstat

do yp = 1, user%gridsize
do xp = 1, user%gridsize

call util_init_list(surf(xp,yp)%porolayer, initstat)

end do
end do

return
end subroutine init_porosity_stack

0 comments on commit 1ee5804

Please sign in to comment.