mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-26 01:01:00 -06:00
Merge pull request #1518 from atgeirr/rename-debug-file
Rename .CASE.DEBUG -> CASE.DBG.
This commit is contained in:
commit
01c830656d
@ -273,7 +273,7 @@ namespace Opm
|
||||
|
||||
const std::string& output_dir = eclState().getIOConfig().getOutputDir();
|
||||
logFileStream << output_dir << "/" << baseName;
|
||||
debugFileStream << output_dir << "/" << "." << baseName;
|
||||
debugFileStream << output_dir << "/" << baseName;
|
||||
|
||||
if ( must_distribute_ && mpi_rank_ != 0 )
|
||||
{
|
||||
@ -284,7 +284,7 @@ namespace Opm
|
||||
logFileStream << "." << mpi_rank_;
|
||||
}
|
||||
logFileStream << ".PRT";
|
||||
debugFileStream << ".DEBUG";
|
||||
debugFileStream << ".DBG";
|
||||
|
||||
logFile_ = logFileStream.str();
|
||||
|
||||
|
@ -49,11 +49,11 @@ public:
|
||||
/// \param deckanme The name of the deck.
|
||||
ParallelFileMerger(const fs::path& output_dir,
|
||||
const std::string& deckname)
|
||||
: debugFileRegex_("\\."+deckname+"\\.\\d+\\.DEBUG"),
|
||||
: debugFileRegex_(deckname+"\\.\\d+\\.DBG"),
|
||||
logFileRegex_(deckname+"\\.\\d+\\.PRT")
|
||||
{
|
||||
auto debugPath = output_dir;
|
||||
debugPath /= (std::string(".") + deckname + ".DEBUG");
|
||||
debugPath /= (deckname + ".DBG");
|
||||
debugStream_.reset(new fs::ofstream(debugPath,
|
||||
std::ofstream::app));
|
||||
auto logPath = output_dir;
|
||||
@ -119,11 +119,11 @@ private:
|
||||
fs::remove(file);
|
||||
}
|
||||
|
||||
/// \brief Regex to capture .*.DEBUG
|
||||
/// \brief Regex to capture *.DBG
|
||||
boost::regex debugFileRegex_;
|
||||
/// \brief Regex to capture *.PRT
|
||||
boost::regex logFileRegex_;
|
||||
/// \brief Stream to *.DEBUG file
|
||||
/// \brief Stream to *.DBG file
|
||||
std::unique_ptr<fs::ofstream> debugStream_;
|
||||
/// \brief Stream to *.PRT file
|
||||
std::unique_ptr<fs::ofstream> logStream_;
|
||||
|
Loading…
Reference in New Issue
Block a user