When using logger with std::size_t, should use "%ld" not "%d"

Issue #314 resolved
Chris Richardson created an issue

In various places there are lines like:

std::size_t M, N;

info("Solving linear system of size %d x %d (PETSc Krylov solver).", M, N);

which results in incorrect output (negative numbers) when M or N are > 2^31.

Replace %d with %ld.

Comments (5)

  1. Log in to comment