mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Reactivate no_debug_log to indicate whether .CASE.DEBUG should be written
This switch only has an effect if output is not equal to none.
This commit is contained in:
parent
d7c2d58853
commit
e5b8cddfa8
@ -66,7 +66,7 @@ namespace Opm
|
|||||||
enum FileOutputValue{
|
enum FileOutputValue{
|
||||||
//! \brief No output to files.
|
//! \brief No output to files.
|
||||||
OUTPUT_NONE = 0,
|
OUTPUT_NONE = 0,
|
||||||
//! \brief Output only to log files not DEBUG.
|
//! \brief Output only to log files, no eclipse output.
|
||||||
OUTPUT_LOG_ONLY = 1,
|
OUTPUT_LOG_ONLY = 1,
|
||||||
//! \brief Output to all files.
|
//! \brief Output to all files.
|
||||||
OUTPUT_ALL = 3
|
OUTPUT_ALL = 3
|
||||||
@ -318,7 +318,7 @@ namespace Opm
|
|||||||
prtLog->setMessageFormatter(std::make_shared<SimpleMessageFormatter>(false));
|
prtLog->setMessageFormatter(std::make_shared<SimpleMessageFormatter>(false));
|
||||||
}
|
}
|
||||||
|
|
||||||
if( output_ > OUTPUT_LOG_ONLY )
|
if( output_ >= OUTPUT_LOG_ONLY && !param_.getDefault("no_debug_log", false) )
|
||||||
{
|
{
|
||||||
std::string debugFile = debugFileStream.str();
|
std::string debugFile = debugFileStream.str();
|
||||||
std::shared_ptr<StreamLog> debugLog = std::make_shared<EclipsePRTLog>(debugFile, Log::DefaultMessageTypes, false, output_cout_);
|
std::shared_ptr<StreamLog> debugLog = std::make_shared<EclipsePRTLog>(debugFile, Log::DefaultMessageTypes, false, output_cout_);
|
||||||
|
Loading…
Reference in New Issue
Block a user