From 1f7d9dadf84f8fd7862a726da547b7fd1fea0806 Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <github@naumov.de> Date: Sun, 1 Mar 2020 15:36:54 +0100 Subject: [PATCH] [MPL] Utils; Fix error message output. --- MaterialLib/MPL/Utils/FormEigenTensor.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MaterialLib/MPL/Utils/FormEigenTensor.cpp b/MaterialLib/MPL/Utils/FormEigenTensor.cpp index d46a8b824f8..1628825b128 100644 --- a/MaterialLib/MPL/Utils/FormEigenTensor.cpp +++ b/MaterialLib/MPL/Utils/FormEigenTensor.cpp @@ -52,7 +52,8 @@ struct FormEigenTensor if constexpr (GlobalDim == 2) { return values; } - OGS_FATAL("Cannot convert a 2d tensor to %dx%d matrix", GlobalDim); + OGS_FATAL("Cannot convert a 2d tensor to %dx%d matrix", GlobalDim, + GlobalDim); } Eigen::Matrix<double, GlobalDim, GlobalDim> operator()( Eigen::Matrix<double, 3, 3> const& values) const @@ -60,7 +61,8 @@ struct FormEigenTensor if constexpr (GlobalDim == 3) { return values; } - OGS_FATAL("Cannot convert a 3d tensor to %dx%d matrix", GlobalDim); + OGS_FATAL("Cannot convert a 3d tensor to %dx%d matrix", GlobalDim, + GlobalDim); } Eigen::Matrix<double, GlobalDim, GlobalDim> operator()( -- GitLab