Warning: Trying to access array offset on value of type null in /home/site/wwwroot/lib/plugins/move/action/rename.php on line 42

Warning: Cannot modify header information - headers already sent by (output started at /home/site/wwwroot/lib/plugins/move/action/rename.php:42) in /home/site/wwwroot/inc/actions.php on line 38
saving_out_files_as_a_function_of_run_number [topas wiki]

User Tools

Site Tools


saving_out_files_as_a_function_of_run_number

Saving .out Files as a Function of Run Number

Alan Coelho 2017/05/18 17:23

There are two ways to save an INP file as a function of Run_Number:

1) Using out_file as follows:

out_file = Concat(String(INP_File), String(Run_Number), ".out");

Concat is an equation function that concatenates strings; it can take any number of arguments.

2) Using system_after_save_OUT

 system_after_save_OUT
    {
       copy INP_File##.out INP_File##Run_Number##.out
    }
	

or, if there are spaces in the INP_File

 system_after_save_OUT
    {
       copy Double_Quote##INP_File##.out##Double_Quote## Double_Quote####INP_File##Run_Number##.out##Double_Quote
    }

Note, spaces in file names leads to complications. Double_Quote is a macro defined in TOPAS.INC.

saving_out_files_as_a_function_of_run_number.txt · Last modified: 2022/11/03 15:08 by 127.0.0.1