Skip to content

Commit

Permalink
Added 0 value buffer to edges of ejecta diffusion zone
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 5, 2016
1 parent 2a9afeb commit 9c9d21c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ejecta/ejecta_soften.f90
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ subroutine ejecta_soften(user,surf,N,indarray,cumulative_elchange)

! Diffusion constant for 1 time unit was found to be proportional to ejecta thickness times the pixel size
kdiff = EJECTA_SOFTEN_FACTOR * user%pix * ebharr
! This prevents an infinite hole bug by making a 0 value buffer along the
! edges of the diffusion constant matrix
kdiff(1,:) = 0.0_DP
kdiff(:,1) = 0.0_DP
kdiff(N,:) = 0.0_DP
Expand Down

0 comments on commit 9c9d21c

Please sign in to comment.