diff --git a/ProcessLib/HydroMechanics/CreateHydroMechanicsProcess.cpp b/ProcessLib/HydroMechanics/CreateHydroMechanicsProcess.cpp index d615b6f887958c1dfd83d7e815ba390bc86b6c65..61782e91cc3a90717f19fa5da681e41dee02bc0a 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()); }