From a9e8ddc1b9d47015a11b7bf6aecd9968ea3d9e56 Mon Sep 17 00:00:00 2001 From: Wenqing Wang <wenqing.wang@ufz.de> Date: Wed, 6 Dec 2017 13:34:46 +0100 Subject: [PATCH] Ran Clang-tidy --- ProcessLib/HydroMechanics/CreateHydroMechanicsProcess.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ProcessLib/HydroMechanics/CreateHydroMechanicsProcess.cpp b/ProcessLib/HydroMechanics/CreateHydroMechanicsProcess.cpp index d615b6f8879..61782e91cc3 100644 --- a/ProcessLib/HydroMechanics/CreateHydroMechanicsProcess.cpp +++ b/ProcessLib/HydroMechanics/CreateHydroMechanicsProcess.cpp @@ -187,11 +187,13 @@ std::unique_ptr<Process> createHydroMechanicsProcess( config.getConfigParameter<std::vector<double>>( "specific_body_force"); if (b.size() != DisplacementDim) + { OGS_FATAL( "The size of the specific body force vector does not match the " "displacement dimension. Vector size is %d, displacement " "dimension is %d", b.size(), DisplacementDim); + } std::copy_n(b.data(), b.size(), specific_body_force.data()); } -- GitLab