Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
concatenate_strings_in_input_file [2010/10/01 16:30]
johnsoevans
concatenate_strings_in_input_file [2011/06/16 17:51] (current)
johnsoevans
Line 25: Line 25:
 The ## concatenation sequence is a c pre-processor construct and only concatenates macro arguments hence the double step. The ## concatenation sequence is a c pre-processor construct and only concatenates macro arguments hence the double step.
  
 +
 +Similarly you can e.g. change the name of an output .xy file with macros like:
 +
 +<code topas>​macro lor { 1000 }
 +
 +macro File_Out_(n)
 +{
 + voigt##​n##​.xy
 +}
 +
 +Out_X_Ycalc(File_Out_(lor))</​code>​

Personal Tools