Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zero energy deposited by track ends in vacuum. #1144

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions HEN_HOUSE/src/egsnrc.mortran
Original file line number Diff line number Diff line change
Expand Up @@ -1770,8 +1770,7 @@ IF( medium > 0 ) [
IF(lelec < 0) [edep = e(np) - prm;] ELSE[$POSITRON-ECUT-DISCARD;]
]
ELSE [ idr = $PEGSCUTAUS; edep = e(np) - prm; ]
] ELSE [idr = $EGSCUTAUS; edep = e(np) - prm; ]

] ELSE [idr = $EGSCUTAUS; edep = 0.0; ] "zero edep in vacuum"

$ELECTRON-TRACK-END; "The default replacement for this macros is "
" $AUSCALL(idr); "
Expand Down
6 changes: 4 additions & 2 deletions HEN_HOUSE/user_codes/dosxyznrc/dosxyznrc.mortran
Original file line number Diff line number Diff line change
Expand Up @@ -3008,8 +3008,10 @@ DO irl = 1,irmax-1 [
]
"divide by rhor so that we do not have to store rhor in the .pardose"
"file during parallel runs."
endep(irl)=endep(irl)/rhor(irl+1);
endep2(irl)=endep2(irl)/(rhor(irl+1)*rhor(irl+1));
if(rhor(irl+1)>0.0)[
endep(irl)=endep(irl)/rhor(irl+1);
endep2(irl)=endep2(irl)/(rhor(irl+1)*rhor(irl+1));
]
]

#ifdef HAVE_C_COMPILER;
Expand Down