Distributing your models on a USB Stick |
||
Debugging an MyM simulation model The m2c compiler offers several options for run-time error messages. If your model crashes you can use several options to discover where model calculations result in errors. On the other hand it might be a good idea to check for run-time errors even if your models seems to run smoothly. By running m2c on the commandline with the option -h all options are listed: -o name : write C source to file name -c : put comments in C source -Dname : define name (as 1) for preprocessor -Dname=def : define name as def for preprocessor -fltcheck : check run-time on (some) floating point operations -fullwarn : equivalent to -ARRAY and -fltcheck -eps value : set the epsilon for -fltcheck test to eps default value: 1e-10 -trace : print trace information at run-time -rte name : filename for run-time error output (default rterror.txt) -h : print this info
Last updated: 2010-02-16 |
||
Choosing colors for your views |
||