From 846dfe0763d852918f503f9702e6f1ccbda0586b Mon Sep 17 00:00:00 2001 From: 2xB <31772910+2xB@users.noreply.github.com> Date: Thu, 16 Nov 2023 22:56:27 +0100 Subject: [PATCH] Fix previous commits --- .../ExternalFields/MagfieldCoils/src/MagfieldCoils.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/KEMField/Source/ExternalFields/MagfieldCoils/src/MagfieldCoils.cxx b/KEMField/Source/ExternalFields/MagfieldCoils/src/MagfieldCoils.cxx index c1956f160..a662ce47a 100755 --- a/KEMField/Source/ExternalFields/MagfieldCoils/src/MagfieldCoils.cxx +++ b/KEMField/Source/ExternalFields/MagfieldCoils/src/MagfieldCoils.cxx @@ -1043,7 +1043,8 @@ void MagfieldCoils::RemoteSourcepointGroup(int g) { int i=Cin[g][c]; double L=coil[i][7]; double zA=Z[g][c]-L/2.; double zB=Z[g][c]+L/2.; // coil edges - if(zAzmax) zmax=zB; + if(zAzmax) zmax=zB; } z0rem=z0remG[g]=(zmin+zmax)/2.; // group center in group Z-coordinate system // Remote convergence radius of group --> roremG[g] : @@ -1052,7 +1053,7 @@ void MagfieldCoils::RemoteSourcepointGroup(int g) { int i=Cin[g][c]; double roremc=Funrorem(i, z0rem-Z[g][c]); // remote source point relative to coil center - if(roremc>rorem) rorem=roremc; + if(roremc>rorem) rorem=roremc; } roremG[g]=rorem; } @@ -1089,7 +1090,7 @@ void MagfieldCoils::MagsourceMagchargeCoils() for(int i=0; i