Merge pull request #1166 from andlaus/update-banner

flow_ebos: update banner
This commit is contained in:
Atgeirr Flø Rasmussen 2017-04-28 14:09:56 +02:00 committed by GitHub
commit 46fff9a926

View File

@ -193,16 +193,12 @@ namespace Opm
if (output_cout_) {
const int lineLen = 70;
const std::string version = moduleVersionName();
const std::string banner = "This is flow_ebos (version "+version+")";
const std::string ewomsVersion = "(eWoms version: " + Ewoms::versionString() + ")";
const std::string banner = "This is flow (version "+version+")";
const int bannerPreLen = (lineLen - 2 - banner.size())/2;
const int bannerPostLen = bannerPreLen + (lineLen - 2 - banner.size())%2;
const int eVPreLen = (lineLen - 2 - ewomsVersion.size())/2;
const int eVPostLen = eVPreLen + (lineLen - 2 - ewomsVersion.size())%2;
std::cout << "**********************************************************************\n";
std::cout << "* *\n";
std::cout << "*" << std::string(bannerPreLen, ' ') << banner << std::string(bannerPostLen, ' ') << "*\n";
std::cout << "*" << std::string(eVPreLen, ' ') << ewomsVersion << std::string(eVPostLen, ' ') << "*\n";
std::cout << "* *\n";
std::cout << "* Flow is a simulator for fully implicit three-phase black-oil flow, *\n";
std::cout << "* and is part of OPM. For more information see: *\n";