mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
use libfmt
also change from debug to error
This commit is contained in:
parent
6bd790fd16
commit
5824af3f1b
@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
#include <opm/simulators/wells/ParallelWellInfo.hpp>
|
#include <opm/simulators/wells/ParallelWellInfo.hpp>
|
||||||
|
|
||||||
|
#include <fmt/format.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace Opm {
|
namespace Opm {
|
||||||
@ -65,10 +66,8 @@ mv (const X& x, Y& y) const
|
|||||||
if (parallel_well_info_.communication().rank() == 0)
|
if (parallel_well_info_.communication().rank() == 0)
|
||||||
{
|
{
|
||||||
//only one process per well logs, might not be 0 of MPI_COMM_WORLD, though
|
//only one process per well logs, might not be 0 of MPI_COMM_WORLD, though
|
||||||
std::string msg = std::string("Fatal Error: Not all ranks are computing for the same well")
|
OpmLog::error(fmt::format("Not all ranks are computing for the same well,"
|
||||||
+ " well should be " + parallel_well_info_.name() + " but is "
|
" should be {} but is {},", parallel_well_info_.name(), name));
|
||||||
+ name;
|
|
||||||
OpmLog::debug(msg);
|
|
||||||
}
|
}
|
||||||
consistentWells = false;
|
consistentWells = false;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user