diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index a8083d635..ca778a79e 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -131,6 +131,7 @@ jobs: - name: Install MAD-X build dependencies run: | + sudo apt-get update sudo apt-get install -qy \ libblas-dev \ liblapack-dev \ diff --git a/.github/workflows/make.yml b/.github/workflows/make.yml index a525bb064..2455ba27b 100644 --- a/.github/workflows/make.yml +++ b/.github/workflows/make.yml @@ -41,6 +41,7 @@ jobs: - name: Install dependencies run: | set -ex + sudo apt-get update sudo apt-get install -qy \ libblas-dev \ liblapack-dev \ diff --git a/.github/workflows/manylinux.yml b/.github/workflows/manylinux.yml index 241bdbdee..0cd3aac37 100644 --- a/.github/workflows/manylinux.yml +++ b/.github/workflows/manylinux.yml @@ -87,7 +87,9 @@ jobs: ln -sf bin/numdiff$ARCH . - name: Install runtime dependencies - run: sudo apt-get install -qy gnuplot + run: | + sudo apt-get update \ + sudo apt-get install -qy gnuplot - name: Run tests # Skip 32bit build - it's broken and mind-boggelingly slow (>>2h)! diff --git a/doc/latexuguide/thintrack.tex b/doc/latexuguide/thintrack.tex index 6b90dac52..7f0f47f2f 100644 --- a/doc/latexuguide/thintrack.tex +++ b/doc/latexuguide/thintrack.tex @@ -265,6 +265,8 @@ \section{TRACK} \ttitem{UPDATE} flag to trigger parameter update per turn. \\ (Default:~false) \\ + \textbf{Note} that \ttitem{tr\$macro} needs to be defined even if only the access + to the turn number \texttt{tr\$turni} is used. Specifying \texttt{UPDATE=true} gives access to the following additions: \begin{madlist} \ttitem{tr\$turni} this special variable contains the turn number; diff --git a/src/mad_elem.c b/src/mad_elem.c index c07dd4d07..62533f9bb 100644 --- a/src/mad_elem.c +++ b/src/mad_elem.c @@ -187,7 +187,7 @@ enter_elm_reference(struct in_cmd* cmd, struct element* el, int flag, int isupda current_node->from_name = permbuff(from); nupdates = 2; } - if (isupdating==0) check_for_update_in_seq(el, cmd->clone, nupdates); + if (isupdating==0) check_for_update_in_seq(el, cmd->clone, nupdates); } static int diff --git a/src/mad_plot.c b/src/mad_plot.c index b1c6e70c2..8f2fa12b7 100644 --- a/src/mad_plot.c +++ b/src/mad_plot.c @@ -133,6 +133,7 @@ exec_plot(struct in_cmd* cmd) struct table* p_table = NULL; const char *table_name = NULL, *file_name = NULL; char *last_twiss_table, *trackfile; + struct command* tmp_command; char track_file_name[NAME_L], ps_file_name[NAME_L]; char plot_title[TITLE_SIZE], version[TITLE_SIZE]; FILE *gpu; @@ -142,7 +143,13 @@ exec_plot(struct in_cmd* cmd) /* use correct beam for sequence to be plotted - HG 031127 */ struct command* keep_beam = current_beam; - if (attach_beam(current_sequ) == 0) + tmp_command = clone_command(this_cmd->clone); + if (attach_beam(current_sequ) == 0){ + char mychar [100] = "resbeam; neverusedsequencename632:sequence, l=10; q1:quadrupole, at=1; endsequence;"; + pro_input(mychar); + this_cmd->clone = clone_command(tmp_command); + } + if (attach_beam(current_sequ) == 0) fatal_error("PLOT - sequence without beam:", current_sequ->name); /* end part1 of HG 031127 */