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 6347889 commit 602d8fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ejecta/ejecta_interpolate.f90
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ subroutine ejecta_interpolate(crater,domain,lrad,ejb,ejtble,ebh,vsq,theta,erad,m
! Executable code

! Locate ourselves in the table
outeredge = crater%frad + domain%ejbres * EJBTABSIZE
inneredge = crater%frad
k = max(min(1 + int((lrad - inneredge) / (outeredge - inneredge) * (EJBTABSIZE - 1.0_DP)),ejtble),1)
inneredge = crater%rad
outeredge = crater%rad * exp(domain%ejbres * EJBTABSIZE)
k = max(min(1 + int((log(lrad) - log(inneredge)) / (log(outeredge) - log(inneredge)) * (EJBTABSIZE - 1.0_DP)),ejtble),1)
loglrad = log(lrad)
logtablerad = ejb(k)%lrad

Expand Down

0 comments on commit 602d8fe

Please sign in to comment.