Skip to content

Commit

Permalink
Code tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bengtsson committed Sep 27, 2017
1 parent 0658665 commit 3ce7019
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
5 changes: 3 additions & 2 deletions projects/src/bare_da.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ int no_tps = NO;
// DIAMOND 3,
// DIAMOND-II 4-BA 4,
// DIAMOND-II 6-BA 5.
const int lat_case = 5;
// DIAMOND-II 8-BA 6.
const int lat_case = 6;

const double delta_max[] = {3.0e-2, 3.0e-2, 1.5e-2, 3e-2, 3e-2};
const double delta_max[] = {3.0e-2, 3.0e-2, 1.5e-2, 3e-2, 3e-2, 3e-2};

int main(int argc, char *argv[])
{
Expand Down
7 changes: 4 additions & 3 deletions projects/src/dnu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ int no_tps = NO;
// DIAMOND 3,
// DIAMOND-II 4-BA 4,
// DIAMOND-II 6-BA 5.
const int lat_case = 5;
// DIAMOND-II 8-BA 6.
const int lat_case = 6;

const double
A_max[][2] =
{{1.5e-3, 1.5e-3}, {7.0e-3, 5.0e-3}, {15.0e-3, 8e-3}, {5.0e-3, 3.0e-3},
{7.0e-3, 4.0e-3}},
delta_max[] = {3.0e-2, 3.0e-2, 1.5e-2, 3e-2, 3e-2};
{7.0e-3, 4.0e-3}, {3.0e-3, 2.0e-3}},
delta_max[] = {3.0e-2, 3.0e-2, 1.5e-2, 3e-2, 3e-2, 3e-2};


int main(int argc, char *argv[])
Expand Down
14 changes: 7 additions & 7 deletions projects/src/optics.cc
Original file line number Diff line number Diff line change
Expand Up @@ -281,20 +281,20 @@ void chk_dip(void)
double L, phi, L_sum, phi_sum;

const int
// Fnum[] =
// {ElemIndex("bn00"), ElemIndex("bn01"), ElemIndex("bn02"),
// ElemIndex("bn03"), ElemIndex("bn04"), ElemIndex("bn05"),
// ElemIndex("bn06")},
Fnum[] =
{ElemIndex("bn00"), ElemIndex("bn01"), ElemIndex("bn02"),
ElemIndex("bn03"), ElemIndex("bn04"), ElemIndex("bn05"),
ElemIndex("bn06")},
// Fnum[] =
// {ElemIndex("i_bn00"), ElemIndex("i_bn01"), ElemIndex("i_bn02"),
// ElemIndex("i_bn03"), ElemIndex("i_bn04"), ElemIndex("i_bn05"),
// ElemIndex("i_bn06")},
// Fnum[] =
// {ElemIndex("bn00"), ElemIndex("bn03"),
// ElemIndex("bn06")},
Fnum[] =
{ElemIndex("i_bn00"), ElemIndex("i_bn03"),
ElemIndex("i_bn06")},
// Fnum[] =
// {ElemIndex("i_bn00"), ElemIndex("i_bn03"),
// ElemIndex("i_bn06")},
n_dip = sizeof(Fnum)/sizeof(*Fnum);

Ring_GetTwiss(true, 0e0);
Expand Down

0 comments on commit 3ce7019

Please sign in to comment.