1
0
Fork 0

Fix shadowing of static variable in ITM adiff() function

This commit is contained in:
Ferran Obón Santacana 2019-08-07 16:02:45 +02:00
parent af538746ac
commit a0f47c151c

View file

@ -20,6 +20,12 @@
* [Alg 0.0] please refer to algorithm 0.0 from itm_alg.pdf *
* *
* Holger Schurig, DH3HS *
* *
*****************************************************************************
* *
* 2019.07.08 - Fix shadowing of static variable in adiff() function *
* Ferran Obón Santacana *
* *
\*****************************************************************************/
@ -278,7 +284,7 @@ double adiff(double s, prop_type &prop)
// :11: Prepare initial diffraction constants, page 5
double q = prop.h_g[0] * prop.h_g[1];
double qk = prop.h_e[0] * prop.h_e[1] - q;
qk = prop.h_e[0] * prop.h_e[1] - q;
if (prop.mdp < 0.0)
q += 10.0; // "C" from [Alg 4.9]