A practice which is probably preferable is to have a different print flag (boolean) for each of the major intermediates used by a program, and to have an overall print option (decimal) whose value determines the printing verbosity for the quantities without a specific printing option. The overall print option should be specified by a keyword PRINT_LVL, and its action should be as in Table 2.
0 | Almost no printing; to be used by driver programs |
with -quiet option | |
1 | Usual printing (default) |
2 | Verbose printing |
3 | Some debugging information |
4 | Substantial debugging information |
5 | Print almost all intermediates unless arrays too large |
6 | Print everything |