mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #1166 from andlaus/update-banner
flow_ebos: update banner
This commit is contained in:
commit
46fff9a926
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user