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 16, 2023
1 parent 33a077f commit 846dfe0
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(zA<zmin) zmin=zA; if(zB>zmax) zmax=zB;
if(zA<zmin) zmin=zA;
if(zB>zmax) zmax=zB;
}
z0rem=z0remG[g]=(zmin+zmax)/2.; // group center in group Z-coordinate system
// Remote convergence radius of group --> roremG[g] :
Expand All @@ -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;
}
Expand Down Expand Up @@ -1089,7 +1090,7 @@ void MagfieldCoils::MagsourceMagchargeCoils()
for(int i=0; i<Ncoil; i++)
{
// Coil i parameters:
L=coil[i][7]; // current, turns, length
//L=coil[i][7]; // current, turns, length
Rmin=coil[i][8]; Rmax=coil[i][9]; // inner and outer radius
sigma=coil[i][10]; // current density
output << scientific << setw(7) << i <<endl; // coil index
Expand Down

0 comments on commit 846dfe0

Please sign in to comment.