Skip to content

Commit

Permalink
Reverted back to making final craterform initially
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Jan 25, 2017
1 parent 6373bf6 commit d72df69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ejecta/ejecta_emplace.f90
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ subroutine ejecta_emplace(user,surf,crater,domain,ejb,ejtble,deltaMtot)
inc = max(min(nint(1.5_DP * crater%ejdis / user%pix) + 1,PBCLIM*user%gridsize),1)
crater%maxinc = max(crater%maxinc,inc)
radsq = crater%rad**2
fradsq = crater%frad**2
incsq = inc**2
ejdissq = crater%ejdis**2

Expand Down Expand Up @@ -303,7 +304,7 @@ subroutine ejecta_emplace(user,surf,crater,domain,ejb,ejtble,deltaMtot)
lradsq = lrad**2


if ((lradsq <= ejdissq) .and. (lradsq >= radsq) .and. (lrad > 0.0_DP)) then
if ((lradsq <= ejdissq) .and. (lradsq >= fradsq) .and. (lrad > 0.0_DP)) then
theta = atan2(j * 1._DP,i * 1._DP) + 2.0_DP * PI
mag = ( ( (abs(cos(nrays * theta / 4.0_DP)))**n2 + &
(abs(sin(nrays * theta / 4.0_DP)))**n2 )**(-1.0_DP/n1) )
Expand Down

0 comments on commit d72df69

Please sign in to comment.