Skip to content

Commit

Permalink
Fix previous commits
Browse files Browse the repository at this point in the history
  • Loading branch information
2xB authored Nov 17, 2023
1 parent d380cd2 commit 3aa080d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2342,7 +2342,12 @@ double MagfieldCoils::RJ_Carlson(double x,double y,double z,double p)
C3=3./22.,C4=3./26.,C5=0.75*C3,C6=1.5*C4,C7=0.5*C2,C8=2.*C3;
double a,alamb,alpha,ans,ave,b,beta,delp,delx,dely,delz,ea,eb,ec,ed,ee,
fac,pt,rcx,rho,sum,sqrtx,sqrty,sqrtz,tau,xt,yt,zt;
rcx = std::numeric_limits<double>::quiet_NaN(); // Avoid compiler warning of potentially undeclared variable

// Avoid compiler warning of potentially undeclared variables
rcx = std::numeric_limits<double>::quiet_NaN();
a = std::numeric_limits<double>::quiet_NaN();
b = std::numeric_limits<double>::quiet_NaN();

if(FMIN3(x,y,z)<0. || FMIN(FMIN(x+y,x+z),FMIN(y+z,fabs(p)))<TINY ||
FMAX(FMAX(x,y),FMAX(z,fabs(p)))>BIG)
{
Expand Down

0 comments on commit 3aa080d

Please sign in to comment.