Skip to content
Snippets Groups Projects
Commit c8e84e54 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[PL] HM/LIE: Stricter check for displacement_jump.

parent 043332ef
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ std::unique_ptr<Process> createHydroMechanicsProcess(
for (std::string const& pv_name : range)
{
if (pv_name != "pressure" && pv_name != "displacement" &&
pv_name.find("displacement_jump") == std::string::npos)
pv_name.find("displacement_jump") != 0)
OGS_FATAL("Found a process variable name '%s'. It should be 'displacement' or 'displacement_jumpN' or 'pressure'");
auto variable = std::find_if(
variables.cbegin(), variables.cend(),
......
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