Skip to content

Commit

Permalink
Check if the number of impactors in the subpixel diffusion step is bi…
Browse files Browse the repository at this point in the history
…gger than the I8B maximum size. If so, skip, though it may be beneficial to let the user know they may need to truncate their production population.
  • Loading branch information
daminton committed Jul 15, 2022
1 parent 3df361b commit 2c2b655
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/crater/crater_subpixel_diffusion.f90
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ subroutine crater_subpixel_diffusion(user,surf,nflux,domain,finterval,kdiffin)
end if

lambda = dN * domain%parea
if (lambda > 1.0_DP * huge(N)) cycle ! Too many impactors.

! Don't parallelize the random
do j = 1,user%gridsize
Expand Down

0 comments on commit 2c2b655

Please sign in to comment.