Skip to content
Snippets Groups Projects
Verified Commit 3c3e0771 authored by Christoph Lehmann's avatar Christoph Lehmann Committed by Lars Bilke
Browse files

Cast enums for logging

parent 024b8085
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@
#include <boost/math/special_functions/pow.hpp>
#include "BaseLib/cpp23.h"
#include "LinearElasticIsotropic.h"
#include "MaterialLib/MPL/Utils/GetSymmetricTensor.h"
#include "MathLib/LinAlg/Eigen/EigenMapTools.h"
......@@ -691,8 +692,8 @@ SolidEhlers<DisplacementDim>::integrateStress(
{
OGS_FATAL(
"Unimplemented tangent type behaviour for the tangent type "
"'{:d}'.",
_tangent_type);
"'{}'.",
BaseLib::to_underlying(_tangent_type));
}
}
......
......@@ -13,6 +13,7 @@
#include <vtkCellType.h>
#include "BaseLib/Error.h"
#include "BaseLib/cpp23.h"
int OGSToVtkCellType(MeshLib::CellType ogs)
{
......@@ -59,7 +60,7 @@ int OGSToVtkCellType(MeshLib::CellType ogs)
default:
OGS_FATAL(
"Unknown cell type in conversion from OGS to VTK. Given cell "
"type value is {:d}.",
ogs);
"type value is {}.",
BaseLib::to_underlying(ogs));
}
}
......@@ -18,6 +18,7 @@
#include "BaseLib/ConfigTree.h"
#include "BaseLib/FileTools.h"
#include "BaseLib/Logging.h"
#include "BaseLib/cpp23.h"
#include "MeshLib/Mesh.h"
#include "Output.h"
......@@ -68,9 +69,9 @@ std::unique_ptr<OutputFile> createOutputFile(
compress_output, number_of_files);
default:
OGS_FATAL(
"No supported file type provided. Read '{:s}' from "
"No supported file type provided. Read '{}' from "
"<output><type> in prj file. Supported: VTK, XDMF.",
output_type);
BaseLib::to_underlying(output_type));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment