Skip to content

Commit

Permalink
Fixed issue where big ejecta blankets were not being truncated proper…
Browse files Browse the repository at this point in the history
…ly based on the target body radius.
  • Loading branch information
daminton committed Nov 22, 2022
1 parent 87db67b commit 0ffc41a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions src/ejecta/CTEM_debug.code-workspace

This file was deleted.

2 changes: 1 addition & 1 deletion src/ejecta/ejecta_emplace.f90
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ subroutine ejecta_emplace(user,surf,crater,domain,ejb,ejtble,deltaMtot,age,age_r
inc = ceiling(inc * 1.5_DP)
krad = user%ejecta_truncation * crater%frad
dradsq = int(krad / user%pix) + 3
inc = max(inc,dradsq)
inc = min(nint(PI * user%trad / user%pix),max(inc,dradsq)) ! Ensure that the ejecta doesn't get any bigger than the surface can accomodate
dradsq = dradsq**2

if (user%dosoftening) kdiffmax = crater_degradation_function(user,crater%frad)
Expand Down

0 comments on commit 0ffc41a

Please sign in to comment.