Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed a bug where the top layer wouldn't be read in
  • Loading branch information
Austin Blevins committed May 30, 2023
1 parent 957071f commit 5e1d1b5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/io/io_read_regotrack.f90
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ subroutine io_read_regotrack(user,surf,domain)



do k=max(stacks_num(i,j)-1,1),1,-1
do k=max(stacks_num(i,j),1),1,-1
newsurfi%thickness = thickness(k)
newsurfi%comp = comp(k)
newsurfi%meltfrac = meltfrac(k)
Expand All @@ -171,8 +171,14 @@ subroutine io_read_regotrack(user,surf,domain)
newsurfi%meltdist(q) = meltdist(q,k)
newsurfi%distvol(q) = distvol(q,k)
end do
! if (j .eq. 1) then
! if (i .eq. 1) then
! !write(*,*) meltdist(:,k)
! write(*,*) newsurfi%meltdist
! end if
! end if
call util_push_array(surf(i,j)%regolayer,newsurfi)
end do
end do

deallocate(meltvolume,thickness,comp,age,distvol,ejm,ejmf,meltfrac,meltdist,agei)

Expand Down

0 comments on commit 5e1d1b5

Please sign in to comment.