Skip to content

Commit

Permalink
Merge remote-tracking branch 'development/lipscomb/bug_fixes'
Browse files Browse the repository at this point in the history
  • Loading branch information
billsacks committed May 10, 2018
2 parents a98c704 + 7b52b2e commit 0ba5870
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions libglide/glide_types.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2293,6 +2293,10 @@ subroutine glide_allocarr(model)
call coordsystem_allocate(model%general%ice_grid, model%inversion%powerlaw_c_prescribed)
call coordsystem_allocate(model%general%ice_grid, model%inversion%usrf_inversion)
call coordsystem_allocate(model%general%ice_grid, model%inversion%dthck_dt_inversion)
else
! Allocate powerlaw_c_inversion with size 1, since it is passed into subroutine calcbeta
! by the velocity solver.
allocate(model%inversion%powerlaw_c_inversion(1,1))
endif

! climate arrays
Expand Down
6 changes: 5 additions & 1 deletion libglissade/glissade_velo_higher.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1979,7 +1979,11 @@ subroutine glissade_velo_higher_solve(model, &
do j = 1+nhalo, ny-nhalo+1
do i = 1+nhalo, nx-nhalo+1
! gn = exponent in Glen's flow law (= 3 by default)
flwafact(:,i,j) = 0.5d0 * flwa(:,i,j)**(-1.d0/real(gn,dp))
do k = 1, nz-1
if (flwa(k,i,j) > 0.0d0) then
flwafact(k,i,j) = 0.5d0 * flwa(k,i,j)**(-1.d0/real(gn,dp))
endif
enddo
enddo
enddo

Expand Down

0 comments on commit 0ba5870

Please sign in to comment.