mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Add and use moduleVersion() utility.
This commit is contained in:
@@ -81,6 +81,7 @@
|
||||
#include <opm/autodiff/BlackoilPropsAdFromDeck.hpp>
|
||||
#include <opm/autodiff/SolventPropsAdFromDeck.hpp>
|
||||
#include <opm/autodiff/RedistributeDataHandles.hpp>
|
||||
#include <opm/autodiff/moduleVersion.hpp>
|
||||
|
||||
#include <opm/core/utility/share_obj.hpp>
|
||||
|
||||
@@ -138,14 +139,16 @@ try
|
||||
// Write parameters used for later reference. (only if rank is zero)
|
||||
const bool output_cout = ( mpi_rank == 0 );
|
||||
|
||||
if(output_cout)
|
||||
if (output_cout)
|
||||
{
|
||||
std::string version = moduleVersionName();
|
||||
std::cout << "**********************************************************************\n";
|
||||
std::cout << "* *\n";
|
||||
std::cout << "* This is Flow-Solvent (version XXXX.XX) *\n";
|
||||
std::cout << "* This is Flow-Solvent (version " << version << ")"
|
||||
<< std::string(18 - version.size(), ' ') << "*\n";
|
||||
std::cout << "* *\n";
|
||||
std::cout << "* Flow-Solvent is a simulator for fully implicit three-phase, *\n";
|
||||
std::cout << "* forth component (black-oil + solvent) flow, and is part of OPM. *\n";
|
||||
std::cout << "* four-component (black-oil + solvent) flow, and is part of OPM. *\n";
|
||||
std::cout << "* For more information see http://opm-project.org *\n";
|
||||
std::cout << "* *\n";
|
||||
std::cout << "**********************************************************************\n\n";
|
||||
|
||||
Reference in New Issue
Block a user