mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -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();
|
const std::string& output_dir = eclState().getIOConfig().getOutputDir();
|
||||||
logFileStream << output_dir << "/" << baseName;
|
logFileStream << output_dir << "/" << baseName;
|
||||||
debugFileStream << output_dir << "/" << "." << baseName;
|
debugFileStream << output_dir << "/" << baseName;
|
||||||
|
|
||||||
if ( must_distribute_ && mpi_rank_ != 0 )
|
if ( must_distribute_ && mpi_rank_ != 0 )
|
||||||
{
|
{
|
||||||
@ -284,7 +284,7 @@ namespace Opm
|
|||||||
logFileStream << "." << mpi_rank_;
|
logFileStream << "." << mpi_rank_;
|
||||||
}
|
}
|
||||||
logFileStream << ".PRT";
|
logFileStream << ".PRT";
|
||||||
debugFileStream << ".DEBUG";
|
debugFileStream << ".DBG";
|
||||||
|
|
||||||
logFile_ = logFileStream.str();
|
logFile_ = logFileStream.str();
|
||||||
|
|
||||||
|
@ -49,11 +49,11 @@ public:
|
|||||||
/// \param deckanme The name of the deck.
|
/// \param deckanme The name of the deck.
|
||||||
ParallelFileMerger(const fs::path& output_dir,
|
ParallelFileMerger(const fs::path& output_dir,
|
||||||
const std::string& deckname)
|
const std::string& deckname)
|
||||||
: debugFileRegex_("\\."+deckname+"\\.\\d+\\.DEBUG"),
|
: debugFileRegex_(deckname+"\\.\\d+\\.DBG"),
|
||||||
logFileRegex_(deckname+"\\.\\d+\\.PRT")
|
logFileRegex_(deckname+"\\.\\d+\\.PRT")
|
||||||
{
|
{
|
||||||
auto debugPath = output_dir;
|
auto debugPath = output_dir;
|
||||||
debugPath /= (std::string(".") + deckname + ".DEBUG");
|
debugPath /= (deckname + ".DBG");
|
||||||
debugStream_.reset(new fs::ofstream(debugPath,
|
debugStream_.reset(new fs::ofstream(debugPath,
|
||||||
std::ofstream::app));
|
std::ofstream::app));
|
||||||
auto logPath = output_dir;
|
auto logPath = output_dir;
|
||||||
@ -119,11 +119,11 @@ private:
|
|||||||
fs::remove(file);
|
fs::remove(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// \brief Regex to capture .*.DEBUG
|
/// \brief Regex to capture *.DBG
|
||||||
boost::regex debugFileRegex_;
|
boost::regex debugFileRegex_;
|
||||||
/// \brief Regex to capture *.PRT
|
/// \brief Regex to capture *.PRT
|
||||||
boost::regex logFileRegex_;
|
boost::regex logFileRegex_;
|
||||||
/// \brief Stream to *.DEBUG file
|
/// \brief Stream to *.DBG file
|
||||||
std::unique_ptr<fs::ofstream> debugStream_;
|
std::unique_ptr<fs::ofstream> debugStream_;
|
||||||
/// \brief Stream to *.PRT file
|
/// \brief Stream to *.PRT file
|
||||||
std::unique_ptr<fs::ofstream> logStream_;
|
std::unique_ptr<fs::ofstream> logStream_;
|
||||||
|
Loading…
Reference in New Issue
Block a user