Miscellaneous Utilities of the Optimisation Shell INVERSE
(for Version 3.6)
Igor Grešovnik
Ljubljana, January 2000
Contents:
1.1 Various File Interpreter
Functions
1.1.2 setoutputdigits { numdigits }
1.1.3 setoutputcharacters { numcharacters }
1.1.4 setintfcdigits { numdigits }
1.1.5 setintfccharacters { numcharacters }
2.1 File Interpreter Functions
for Controlling Time
2.1.4 fileprinttime { filespec }
2.1.8 filewritetime { filespec }
2.1.12 fileprintdate { filespec }
2.1.16 filewritedate { filespec }
2.2 Expression Evaluator
Functions for Controlling Time 8
3. Printing Programme
Information
3.1 File Interpreter Functions
for Printing Programme Information
Prints the information about the current directory of the programme to the standard output and to the programme-s output file (the pre/defined file variable outfile).
This function currently works only on UNIX systems.
Sets the number of digits used for output of decimal numbers to numdigits. This number is used e.g. at output of numbers with the write, fwrite and dwrite functions, but also with functions for printing vectors, matrices and other variables, e.g. printvector or printvectorvar.
Interfacing functions like setparam are affected by another function, namely setintfcdigits.
Sets the minimal number of characters used for output of decimal numbers to numcharacters. This number is used e.g. at output of numbers with the write, fwrite and dwrite functions, but also with functions for printing vectors, matrices and other variables, e.g. printvector or printvectorvar. There is seldomly a need to use this function. One example is when we want to output numbers in a table format so that all numbers in a column occupy the same amount of space. In this case the number of characters for output must be set appropriately greater than the number of digits which are written, so that the width of output numbers does not exceed numcharacters and all number outputs take the same amount of space. By default the minimal number of characters is less than the number of digits, so that each number that is written takes just as much space as necessary.
Sets the number of digits used while writing parameter values to the direct analysis input file aninfile by the function setparam to numdigits.
Sets the minimal length of output strings when writing parameter values to the direct analysis input file aninfile by the function setparam to numcharacters.
Prints the current time of the day to programme output file.
Prints the current time of the day to programme standard output.
Prints the current time of the day to both programme output file and standard output.
Prints the current time of the day to the file specified by filespec.
Does the same as fprinttime, except that merely the time is printed without any acompanying comment, spaces or empty lines.
Does the same as printtime, except that merely the time is printed without any acompanying comment, spaces or empty lines.
Does the same as dprinttime, except that merely the time is printed without any acompanying comment, spaces or empty lines.
Does the same as fileprinttime, except that merely the time is printed without any acompanying comment, spaces or empty lines.
Prints the current date to programme output file.
Prints the current date to programme standard output.
Prints the current date to both programme output file and standard output.
Prints the current date to the file specified by filespec.
Does the same as fprintdate, except that merely the date is printed without any acompanying comment, spaces or empty lines.
Does the same as printdate, except that merely the date is printed without any acompanying comment, spaces or empty lines.
Does the same as dprintdate, except that merely the date is printed without any acompanying comment, spaces or empty lines.
Does the same as fileprintdate, except that merely the date is printed without any acompanying comment, spaces or empty lines.
Marks the current time and prints information about this mark to programme output file. Some measure of the current time in seconds is printed, as well as the time elapsed from the last time mark (i.e. call to any of the functions fmarktime, marktime, or dmarktime).
Optional numerical argument id is the identification number (should be integer) of the cpu mark, which is printed together with other data if it is specified.
Does the same as fmarktime, except that information is printed to programme standard output.
Does the same as fmarktime, except that information is printed to both programme output file and standard output.
Marks the CPU time spent by the programme and prints information about this mark to programme output file. The CPU time spent for the programme since the beginning of its execution is printed, as well as the CPU time spent since the last CPU time mark (i.e. call to any of the functions fmarkCPUtime, markCPUtime, or dmarkCPUtime).
Optional numerical argument id is the identification number (should be integer) of the cpu time mark, which is printed together with other data if it is specified.
Does the same as fmarkCPUtime, except that information is printed to programme standard output.
Does the same as fmarkCPUtime, except that information is printed to both programme output file and standard output.
Prints basic information about the programme (such as name, version, support address) to the standard output and the programme output file.
Prints basic information about the programme to the programme output file.
Prints basic information about the programme to the programme standard output.
Prints basic information about the programme to the programme output file and standard output.
Prints basic information about the programme to the programme output file. No empty lines are printed before and after the data.
Prints basic information about the programme to the programme standard output. No empty lines are printed before and after the data.
Prints basic information about the programme to the programme output file and standard output. No empty lines are printed before and after the data.