From 9c9d21c87a8049a2f83b64180e967b2f40ad4ac5 Mon Sep 17 00:00:00 2001 From: daminton Date: Mon, 5 Dec 2016 22:19:37 +0000 Subject: [PATCH] Added 0 value buffer to edges of ejecta diffusion zone --- src/ejecta/ejecta_soften.f90 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ejecta/ejecta_soften.f90 b/src/ejecta/ejecta_soften.f90 index f4b01e71..8ea3d65f 100644 --- a/src/ejecta/ejecta_soften.f90 +++ b/src/ejecta/ejecta_soften.f90 @@ -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