in parallel, close the file if nec., open it and check for success
| 79 | |
| 80 | // in parallel, close the file if nec., open it and check for success |
| 81 | void openFile() |
| 82 | { |
| 83 | if ( s_pout_open ) |
| 84 | { |
| 85 | s_pout.close(); |
| 86 | } |
| 87 | s_pout.open( s_pout_filename.c_str() ); |
| 88 | // if open() fails, we have problems, but it's better |
| 89 | // to try again later than to make believe it succeeded |
| 90 | s_pout_open = (bool)s_pout ; |
| 91 | } |
| 92 | |
| 93 | #else |
| 94 | // in serial, filename is always cout |
no outgoing calls
no test coverage detected