Skip to content

Commit

Permalink
New model for collapse to achieve initial morphology
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 5, 2016
1 parent 03eb6c2 commit 5ae11ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/crater/crater_emplace.f90
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ subroutine crater_emplace(user,surf,crater,domain,ejbmass)
crater%maxinc = max(crater%maxinc,inc)
fradsq = crater%frad**2
deltaMtot = ejbmass
incsq = inc**2
! This loop may not be parallelizable because of the linked list operation inside crater_form_interior
do j=-inc,inc ! Do the loop in pixel space
do i=-inc,inc
Expand All @@ -93,7 +94,7 @@ subroutine crater_emplace(user,surf,crater,domain,ejbmass)
call util_periodic(xpi,ypi,user%gridsize)

lradsq = (crater%xl - xp)**2 + (crater%yl - yp)**2
if (lradsq <= fradsq) then
if (lradsq <= crater%rad**2) then
call crater_form_interior(user,surf(xpi,ypi),crater,lradsq,newelev,deltaMi)
deltaMtot = deltaMtot + deltaMi
end if
Expand Down

0 comments on commit 5ae11ab

Please sign in to comment.