Skip to content

Commit

Permalink
Merge pull request #606 from hibtc/sectorfile
Browse files Browse the repository at this point in the history
Can set `sectorfile=""` to disable file IO
  • Loading branch information
ldeniau committed Mar 19, 2018
2 parents 9d65625 + 029062c commit 8fe9468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mad_twiss.c
Expand Up @@ -939,7 +939,7 @@ pro_twiss(void)
seterrorflag(1,"pro_twiss","TWISS failed");
warning("Twiss failed: ", "MAD-X continues");
} else {
if (get_option("twiss_sector"))
if (get_option("twiss_sector") && 0 != strcmp("", sector_name))
out_table( sector_table_name, twiss_sector_table, sector_name );
if (get_option("twiss_print"))
print_table(summ_table);
Expand Down

0 comments on commit 8fe9468

Please sign in to comment.