Merge pull request #4920 from kjetilly/fix_fmt_10

Casting to support {fmt} v10.
This commit is contained in:
Bård Skaflestad 2023-10-10 11:44:20 +02:00 committed by GitHub
commit 1cc806cf42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,8 +140,10 @@ void FlexibleSolverInfo<Matrix,Vector,Comm>::create(const Matrix& matrix,
if (basic_comm.size() > 1) {
os << fmt::format("on MPI rank: {} ", basic_comm.rank());
}
// The static_cast of Matrix::block_type::rows is needed for fmt version 10.
// TODO: Check if the cast is still needed in future versions.
os << fmt::format("blocksize: {} size: {:7d} block nonzeroes: {:9d}",
Matrix::block_type::rows, matrix.N(), matrix.nonzeroes());
static_cast<int>(Matrix::block_type::rows), matrix.N(), matrix.nonzeroes());
DeferredLogger local_logger;
local_logger.debug(os.str());
auto global_logger = gatherDeferredLogger(local_logger, basic_comm);