Whitespace and other formatting changes

This commit is contained in:
Markus Blatt 2016-10-05 10:53:28 +02:00
parent d86f552a76
commit ab05cb66d9
2 changed files with 11 additions and 5 deletions

View File

@ -40,7 +40,7 @@
#include <opm/autodiff/GridHelpers.hpp>
#include <opm/autodiff/createGlobalCellArray.hpp>
#include <opm/autodiff/GridInit.hpp>
#include <opm/simulators/ParallelFileMerger.hpp >
#include <opm/simulators/ParallelFileMerger.hpp>
#include <opm/core/wells.h>
#include <opm/core/wells/WellsManager.hpp>
@ -426,6 +426,7 @@ namespace Opm
prtLog->setMessageFormatter(std::make_shared<SimpleMessageFormatter>(false));
streamLog->setMessageLimiter(std::make_shared<MessageLimiter>(10));
streamLog->setMessageFormatter(std::make_shared<SimpleMessageFormatter>(true));
// Read parameters.
if ( output_cout_ )
{
@ -433,6 +434,10 @@ namespace Opm
}
}
void mergeParallelLogFiles()
{
// force closing of all log files.
@ -681,7 +686,9 @@ namespace Opm
void extractMessages()
{
if ( !output_cout_ )
{
return;
}
auto extractMessage = [](const Message& msg) {
auto log_type = detail::convertMessageType(msg.mtype);

View File

@ -71,7 +71,6 @@ public:
{
std::string rank = boost::regex_replace(filename, regex, "\\1");
if( boost::regex_match(filename, logFileRegex_) )
{
appendFile(*logStream_, file, rank);
@ -101,9 +100,9 @@ private:
{
if( fs::file_size(file) )
{
std::cerr<<"WARNING: There has been logging out by non-root process "
<<rank<<std::endl<<"Please report this in the issue tracker!"
<<std::endl;
std::cerr << "WARNING: There has been logging out by non-root process "
<< rank << std::endl<<"Please report this in the issue tracker!"
<< std::endl;
fs::ifstream in(file);
of<<std::endl<< std::endl;
of<<"=======================================================";