next up previous contents index
Next: Data, results and command Up: Initialization file Previous: Running modes   Contents   Index


External parameters

This section of the initialization file is optional. Several such sections can be used. The parameters are integers that can be fixed by the user if needed. For example it may be useful to give a maximal dimension that some arrays can have. This part of the initialization file begins with the keyword !var and ends with a line containing a point. Between the first and the last line are several pairs of lines. The first line of a pair contains a parameter name and the second an integer value, associated to the name. For instance if the pair

nptx
1000

is given, the value 1000 is associated to the name nptx. Inside a C-program using the command interpreter, the value 1000 can be recovered from the name nptx by something like

int k;
k = S_convert_int("nptx", flow_interp);

After that, the integer variable k has value 1000 (see 6.3, 7.1 or 12.2 for a more detailed description of the function S_convert_int). Here flow_interp is the flow_data structure corresponding to the running thread (cf. 10).


next up previous contents index
Next: Data, results and command Up: Initialization file Previous: Running modes   Contents   Index
2009-11-12