mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Added a parallel aware logger for switching wells.
It will collect all the switches. Afterwards they are collect on the root process and logged there. This commit includes a small test program.
This commit is contained in:
@@ -150,12 +150,19 @@ namespace Opm
|
||||
asImpl().setupOutputWriter();
|
||||
asImpl().setupLinearSolver();
|
||||
asImpl().createSimulator();
|
||||
|
||||
|
||||
// Run.
|
||||
return asImpl().runSimulator();
|
||||
}
|
||||
catch (const std::exception &e) {
|
||||
std::cerr << "Program threw an exception: " << e.what() << "\n";
|
||||
std::ostringstream message;
|
||||
message << "Program threw an exception: " << e.what();
|
||||
|
||||
if( output_cout_ )
|
||||
{
|
||||
OpmLog::error(message.str());
|
||||
}
|
||||
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
@@ -389,7 +396,6 @@ namespace Opm
|
||||
logFileStream << baseName << ".PRT";
|
||||
debugFileStream << "." << baseName << ".DEBUG";
|
||||
}
|
||||
if ( must_distribute_ && mpi_rank_ != 0 )
|
||||
{
|
||||
// Added rank to log file for non-zero ranks.
|
||||
// This prevents message loss.
|
||||
|
Reference in New Issue
Block a user