Skip to content

Commit

Permalink
Fix #607: bug in sprrznrc output of D/Dmax
Browse files Browse the repository at this point in the history
Fix a bug in the sprrznrc output of D/Dmax vs radius. The indices of the
y coordinate and uncertainty were using the z index instead of looping
over the x index.
  • Loading branch information
rtownson authored and ftessier committed Aug 18, 2020
1 parent e88d089 commit 24ed2c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions HEN_HOUSE/user_codes/sprrznrc/sprrznrc.mortran
Original file line number Diff line number Diff line change
Expand Up @@ -4668,8 +4668,8 @@ IF(ISPRREG=1)["create the .plotdat file"
AXISTYPE=0; "0 for no logs"
DO IX=1, NR [
XCOORD(IX) = RCYL(IX);
YCOORD(IZ) = SCDOSE(IZ,IX,3)/Dmax;
UNCERT(IZ) = SCDOSE(IZ,IX,3)*SCDOSE2(IZ,IX,3)/(Dmax*100.);
YCOORD(IX) = SCDOSE(IZ,IX,3)/Dmax;
UNCERT(IX) = SCDOSE(IZ,IX,3)*SCDOSE2(IZ,IX,3)/(Dmax*100.);
]
"Convert slab number(IZ) to a character string"
$CONVERT_INT(IZ)_TO_CHAR(CH_IZ);
Expand Down

0 comments on commit 24ed2c5

Please sign in to comment.