mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-04 13:36:57 -06:00
Support new message type: Prtinfo
This commit is contained in:
parent
f9ecbaeefe
commit
b2c126f7c2
@ -388,7 +388,7 @@ namespace Opm
|
||||
ParserPtr parser(new Parser());
|
||||
{
|
||||
std::shared_ptr<EclipsePRTLog> prtLog = std::make_shared<EclipsePRTLog>(logFile_ , Log::NoDebugMessageTypes);
|
||||
std::shared_ptr<StreamLog> streamLog = std::make_shared<StreamLog>(std::cout, Log::NoDebugMessageTypes);
|
||||
std::shared_ptr<StreamLog> streamLog = std::make_shared<StreamLog>(std::cout, Log::StdoutMessageTypes);
|
||||
OpmLog::addBackend( "ECLIPSEPRTLOG" , prtLog );
|
||||
OpmLog::addBackend( "STREAMLOG", streamLog);
|
||||
std::shared_ptr<StreamLog> debugLog = std::make_shared<EclipsePRTLog>(debugFile, Log::DefaultMessageTypes);
|
||||
@ -842,6 +842,8 @@ namespace Opm
|
||||
return Log::MessageType::Problem;
|
||||
case Message::type::Bug:
|
||||
return Log::MessageType::Bug;
|
||||
case Message::type::Prtinfo:
|
||||
return Log::MessageType::Prtinfo;
|
||||
}
|
||||
throw std::logic_error("Invalid messages type!\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user