Skip to content

Commit

Permalink
Fixed slope collapse routine to conserve mass
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Feb 16, 2017
1 parent f78ab12 commit a550cb1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/crater/crater_slope_collapse.f90
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ subroutine crater_slope_collapse(user,surf,crater,domain,deltaMtot)
! determine area to effect
inc = max(min(crater%fcratpx,ceiling(SQRT2*user%gridsize)),1) + 1
crater%maxinc = max(crater%maxinc,inc)
incsq = inc*inc
incsq = inc**2

!if (inc >= user%gridsize/2) then
! write(*,*) 'D =',crater%fcrat, ' Cl/S =',(crater%fcratpx*user%pix)/domain%side
Expand All @@ -79,9 +79,7 @@ subroutine crater_slope_collapse(user,surf,crater,domain,deltaMtot)
allocate(cumulative_elchange(-inc:inc,-inc:inc))
allocate(indarray(6,-inc:inc,-inc:inc))
allocate(kappat(-inc:inc,-inc:inc))
!mult = inc/(user%gridsize/2) + 1 ! Reduce max diffusion if the loopover area exceeds the periodic boundary conditions
mult = (1 + (inc/(user%gridsize/2)))**2
!difflim = diffmax/mult

cumulative_elchange = 0._DP

Expand Down

0 comments on commit a550cb1

Please sign in to comment.