Skip to content
Snippets Groups Projects
Commit 9ed6e256 authored by Chichi Lalescu's avatar Chichi Lalescu
Browse files

minor simplification of code

parent 6f2659c7
Branches
No related tags found
No related merge requests found
...@@ -80,8 +80,8 @@ class code(base): ...@@ -80,8 +80,8 @@ class code(base):
data_file.close(); data_file.close();
//endcpp //endcpp
""" """
self.main_start += 'if (myrank == 0) std::cout << "{0}" << std::endl;'.format(self.version_message).replace('\n', '\\n') + '\n' for ostream in ['cout', 'cerr']:
self.main_start += 'if (myrank == 0) std::cerr << "{0}" << std::endl;'.format(self.version_message).replace('\n', '\\n') + '\n' self.main_start += 'if (myrank == 0) std::{1} << "{0}" << std::endl;'.format(self.version_message, ostream).replace('\n', '\\n') + '\n'
self.main_end = """ self.main_end = """
//begincpp //begincpp
// clean up // clean up
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment