Skip to content

Commit

Permalink
Overhauled crater formation routine. All raised rims are now part of …
Browse files Browse the repository at this point in the history
…the ejecta blanket
  • Loading branch information
daminton committed Feb 9, 2017
1 parent 33864cb commit 18b78ae
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions src/crater/crater_form_exterior.f90
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
! Notes :
!
!**********************************************************************************************************************************
subroutine crater_form_exterior(user,surfi,crater,domain,lradsq,newelev,deltaMi)
subroutine crater_form_exterior(user,surfi,crater,domain,lradsq,newelev,rimheight,deltaMi)
use module_globals
use module_util
use module_ejecta
Expand All @@ -30,7 +30,7 @@ subroutine crater_form_exterior(user,surfi,crater,domain,lradsq,newelev,deltaMi)
type(surftype),intent(inout) :: surfi
type(cratertype),intent(in) :: crater
type(domaintype),intent(in) :: domain
real(DP),intent(in) :: lradsq,newelev
real(DP),intent(in) :: lradsq,newelev,rimheight
real(DP),intent(out) :: deltaMi
integer(I4B) :: l

Expand All @@ -43,17 +43,11 @@ subroutine crater_form_exterior(user,surfi,crater,domain,lradsq,newelev,deltaMi)
lrad = sqrt(lradsq)

! change digital elevation map
cform = crater%rheight * ((crater%rad / lrad)**RIMDROP)

! elevation changes
!if (lrad <= crater%frim) then
! hcorr = cform * ((crater%frim - lrad) / (crater%frim - crater%rad))**20
! elchange = hcorr + cform
!else
elchange = cform
!end if
surfi%dem = surfi%dem + elchange
deltaMi = elchange
cform = rimheight * ((crater%frad / lrad)**RIMDROP)

elchange = cform
deltaMi = 0.0_DP !elchange
surfi%dem = surfi%dem !+ elchange

!change ejecta coverage
!surfi%ejcov = max(surfi%ejcov + elchange,0.0_DP)
Expand Down

0 comments on commit 18b78ae

Please sign in to comment.