Merge pull request #2040 from alfbr/prt-banner

Make PRT header self-explanatory
This commit is contained in:
Atgeirr Flø Rasmussen 2019-10-11 20:48:43 +02:00 committed by GitHub
commit b0de207940
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -295,15 +295,15 @@ namespace Opm
ss << " # ####### ###### # # \n\n"; ss << " # ####### ###### # # \n\n";
ss << "Flow is a simulator for fully implicit three-phase black-oil flow,"; ss << "Flow is a simulator for fully implicit three-phase black-oil flow,";
ss << " and is part of OPM.\nFor more information visit: https://opm-project.org \n\n"; ss << " and is part of OPM.\nFor more information visit: https://opm-project.org \n\n";
ss << "Flow Version = " + version + "\n"; ss << "Flow Version = " + version + "\n";
if (uname(&arch) == 0) { if (uname(&arch) == 0) {
ss << "System = " << arch.nodename << " (Number of logical cores: " << num_cpu; ss << "Machine name = " << arch.nodename << " (Number of logical cores: " << num_cpu;
ss << ", RAM: " << std::fixed << std::setprecision (2) << mem_size << " MB) \n"; ss << ", Memory size: " << std::fixed << std::setprecision (2) << mem_size << " MB) \n";
ss << "Architecture = " << arch.sysname << " " << arch.machine << " (Release: " << arch.release; ss << "Operating system = " << arch.sysname << " " << arch.machine << " (Kernel: " << arch.release;
ss << ", Version: " << arch.version << " )\n"; ss << ", " << arch.version << " )\n";
} }
if (user) { if (user) {
ss << "User = " << user << std::endl; ss << "User = " << user << std::endl;
} }
ss << "Simulation started on " << tmstr << " hrs\n"; ss << "Simulation started on " << tmstr << " hrs\n";