Skip to content

Commit

Permalink
Moved the porosity function to crater_emplace.
Browse files Browse the repository at this point in the history
  • Loading branch information
mhirabay committed Dec 29, 2016
1 parent 8c1fc33 commit b9f8b0a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/crater/crater_emplace.f90
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
subroutine crater_emplace(user,surf,crater,domain,ejbmass)
use module_globals
use module_util
use module_porosity
use module_crater, EXCEPT_THIS_ONE => crater_emplace
implicit none

Expand Down Expand Up @@ -98,6 +99,17 @@ subroutine crater_emplace(user,surf,crater,domain,ejbmass)
call crater_form_interior(user,surf(xpi,ypi),crater,lradsq,newelev,deltaMi)
deltaMtot = deltaMtot + deltaMi
end if

! do porosity computation if (user%doporosity)
! It is still important to consider the physical meaning of frad and rad.
! frad is the final crater, while rad is the transient crater.
! which one should be reasonable here.
if (lradsq <= crater%frad**2) then
if (user%doporosity) then
call porosity_form_interior(user, surf(xpi,ypi), crater, lradsq)
end if
end if

end do
end do

Expand Down

0 comments on commit b9f8b0a

Please sign in to comment.