Skip to content

Commit

Permalink
Merge pull request #226 from Nin17/master
Browse files Browse the repository at this point in the history
return 0 if error PM3_auger... PM4_auger...
  • Loading branch information
tschoonj authored Dec 27, 2023
2 parents 0821c75 + 52d8189 commit 5962228
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/xrf_cross_sections_aux.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,8 @@ double PM3_auger_cascade_kissel(int Z, double E, double PK, double PL1, double P
double rv;

rv = CS_Photo_Partial(Z, M3_SHELL, E, error);
if (rv == 0.0)
return rv;

if (PK > 0.0)
rv += PK * xrf_cross_sections_constants_auger_only[Z][M3_SHELL][K_SHELL];
Expand Down Expand Up @@ -500,6 +502,8 @@ double PM4_auger_cascade_kissel(int Z, double E, double PK, double PL1, double P
double rv;

rv = CS_Photo_Partial(Z, M4_SHELL, E, error);
if (rv == 0.0)
return rv;

if (PK > 0.0)
rv += PK * xrf_cross_sections_constants_auger_only[Z][M4_SHELL][K_SHELL];
Expand Down

0 comments on commit 5962228

Please sign in to comment.