Skip to content

Commit

Permalink
Fix #260: rest mass not initialized in C interface
Browse files Browse the repository at this point in the history
Fix the rest mass initialization for EGSnrc applications that depend on
the C interface. The bug fix in the parent commit moved the declaration
of the rest mass inside the COMIN/USEFUL/ macro. However this in turn
breaks C and C++ EGSnrc applications because the C interface relies on
its own declaration of the COMIN/USEFUL/ macro, which also has to be
updated with the rest mass data statement.
  • Loading branch information
ftessier committed Mar 2, 2017
1 parent 805881c commit a4b710b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions HEN_HOUSE/interface/egs_c_interface1.macros
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ REPLACE {;COMIN/USEFUL/;} WITH {
real*8 pzero, prm, prmt2;
$REAL rm, rhor, rhor_new;
$INTEGER medium, medium_new, medold;
data rm,prm,prmt2,pzero/0.5109989461,0.5109989461,1.0219978922,0.D0/;
};

" And now the cross section options common "
Expand Down
1 change: 1 addition & 0 deletions HEN_HOUSE/interface/egs_c_interface2.macros
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ REPLACE {;COMIN/USEFUL/;} WITH {
real*8 pzero, prm, prmt2;
$REAL rm, rhor, rhor_new;
$INTEGER medium, medium_new, medold;
data rm,prm,prmt2,pzero/0.5109989461,0.5109989461,1.0219978922,0.D0/;
};

" And now the cross section options common "
Expand Down

0 comments on commit a4b710b

Please sign in to comment.