This is an old revision of the document!


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.


Personal Tools