Skip to content
Snippets Groups Projects
Commit d0cd3578 authored by Christoph Lehmann's avatar Christoph Lehmann Committed by Dmitri Naumov
Browse files

[PL] minor string comparison change for LIE

parent 42caa8b0
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ createSmallDeformationProcess( ...@@ -54,7 +54,7 @@ createSmallDeformationProcess(
for (std::string const& pv_name : range) for (std::string const& pv_name : range)
{ {
if (pv_name != "displacement" if (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'"); OGS_FATAL("Found a process variable name '%s'. It should be 'displacement' or 'displacement_jumpN'");
auto variable = std::find_if( auto variable = std::find_if(
variables.cbegin(), variables.cend(), 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