Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ld dev #564

Merged
merged 33 commits into from Feb 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
2732b0b
Replaced longitudinal map with symplectic solution from a third order…
Nov 8, 2017
67c1055
Cosmetic changes (to avoid declaring unused variables)
Nov 10, 2017
3b85b7f
Fixed path length difference due to entrance/exit angles in radiation…
Dec 6, 2017
e0d223f
Added factor two, because trphot implicitly divides the input length …
alatina Dec 6, 2017
e598f53
Merge branch 'master' into ld-dev
ldeniau Jan 17, 2018
a0a0db8
add angle to multipole and comments attribute to all elements
ldeniau Feb 1, 2018
97c5822
use angle when not zero in multipole
ldeniau Feb 1, 2018
be3551f
added angle to mutlipole in survey and twiss
ldeniau Feb 1, 2018
9a0973a
added k0 to sbend/rbend in track (thin only) and twiss
ldeniau Feb 1, 2018
a453f26
Merge branch 'al-dev' into master
alatina Feb 2, 2018
7e2f0c9
Merge pull request #554 from alatina/master
ldeniau Feb 2, 2018
1b27760
final implementation of k0l ~= angle for multipole, sbend and rbend. …
ldeniau Feb 2, 2018
bc02ab7
Merge branch 'master' into ld-dev
ldeniau Feb 2, 2018
717db46
Merge branch 'hbu-dev' into ld-dev
ldeniau Feb 2, 2018
8aaa74d
Reverting two previous commits, by hand
Feb 2, 2018
f7f5c33
switch to c++11
ldeniau Feb 2, 2018
37c49d4
fix new warnings from gcc7
ldeniau Feb 2, 2018
c094ade
cleanup
ldeniau Feb 2, 2018
c4b473e
add attribute to remove warning
ldeniau Feb 2, 2018
12fee64
add a comment about the RBARC option calculation
ldeniau Feb 2, 2018
5849305
make survey aware of RBARC, was always true before
ldeniau Feb 2, 2018
30cc05f
add a comment about RBARC
ldeniau Feb 2, 2018
828486b
remove warnings for gcc 7.2
ldeniau Feb 2, 2018
7cf9ae2
Merge branch 'ld-dev' into al-dev
ldeniau Feb 6, 2018
71bd22e
Merge pull request #556 from MethodicalAcceleratorDesign/al-dev
ldeniau Feb 6, 2018
58b52a9
Merge branch 'ld-dev' of github.com:MethodicalAcceleratorDesign/MAD-X…
ldeniau Feb 8, 2018
d44fd21
remove doubled semi-colon to avoid compiler warning
ldeniau Feb 8, 2018
12b357d
Merge branch 'master' into ld-dev
ldeniau Feb 8, 2018
b271df9
Merge branch 'master' into ld-dev
ldeniau Feb 9, 2018
99abafc
Merge branch 'master' into ld-dev
ldeniau Feb 9, 2018
6a28954
set C++11
ldeniau Feb 12, 2018
d665a6e
Merge branch 'master' into ld-dev
ldeniau Feb 13, 2018
83589cf
update the reference file after validation of PRs merged these last w…
ldeniau Feb 13, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/emit.f90
Expand Up @@ -514,6 +514,10 @@ subroutine emdamp(code, deltap, em1, em2, orb1, orb2, re)
NORMAL(0:maxmul) = zero ; call get_node_vector('knl ',nn,normal)
SKEW(0:maxmul) = zero ; call get_node_vector('ksl ',ns,skew)

!---- Angle (bvk applied later)
an = node_value('angle ')
if (an .ne. 0) f_errors(0) = f_errors(0) + normal(0) - an

!---- Other components and errors.
nord = 0
do i = 0, max(nn, ns, n_ferr/2-1)
Expand Down
4 changes: 2 additions & 2 deletions src/mad_6track.c
Expand Up @@ -2311,7 +2311,7 @@ pre_multipole(struct c6t_element* el) /* pre-process multipoles */
if (++last_nzero > el->nf_err)
{
if (el->p_fd_err != NULL) strcpy(tmp_name, el->p_fd_err->key);
else sprintf(tmp_name,"%s_arfa", el->name);
else snprintf(tmp_name, sizeof tmp_name, "%.42s_arfa", el->name);
el->nf_err = last_nzero;
el->p_fd_err = make_obj(tmp_name, 0, el->nf_err, 0, 0);
}
Expand Down Expand Up @@ -2359,7 +2359,7 @@ pro_elem(struct node* cnode)
current_element->occ_cnt = cnode->occ_cnt;
if (cnode->occ_cnt > 1) /* add occurence count to name */
{
sprintf(t_key, "%s+%d", current_element->name,cnode->occ_cnt);
snprintf(t_key, sizeof t_key, "%.45s+%d", current_element->name,cnode->occ_cnt);
strcpy(current_element->name, t_key);
}
current_element->position = cnode->position;
Expand Down
19 changes: 10 additions & 9 deletions src/mad_cmdpar.c
Expand Up @@ -10,27 +10,28 @@ clone_command_parameter(const struct command_parameter* p)
clone->call_def = p->call_def;
switch (p->type)
{
case 4:
case 4: // constraint
clone->c_min = p->c_min;
clone->c_max = p->c_max;
clone->min_expr = clone_expression(p->min_expr);
clone->max_expr = clone_expression(p->max_expr);
case 0:
case 1:
case 2:
__attribute__ ((fallthrough));
case 0: // logical (not supported...)
case 1: // integer (not supported...)
case 2: // double
clone->double_value = p->double_value;
clone->expr = clone_expression(p->expr);
break;
case 3:
case 3: // string
clone->string = permbuff(p->string);
clone->expr = NULL;
break;
case 11:
case 12:
case 11: // array of integers (not supported...)
case 12: // array if doubles
clone->double_array = clone_double_array(p->double_array);
clone->expr_list = clone_expr_list(p->expr_list);
break;
case 13:
case 13: // array of strings
clone->m_string = clone_char_p_array(p->m_string);
}
return clone;
Expand Down Expand Up @@ -392,7 +393,7 @@ command_par_value_user2(const char* parameter, const struct command* cmd, double
else
{
*val = 0;
}
}
return inf;
}

Expand Down
1 change: 1 addition & 0 deletions src/mad_const.c
Expand Up @@ -38,6 +38,7 @@ make_constraint(int find_npos, struct command_parameter* par)
new->ex_c_min = par->min_expr;
}
if (par->c_type == 1) break;
__attribute__ ((fallthrough));
case 2: /* maximum */
if (par->max_expr == NULL) new->c_max = par->c_max;
else
Expand Down