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

[PL] HTBHE; Fix usage of string::find.

The result should be compared to npos.
As suggested by the cppcheck, stlIfStrFind.
parent c4495ee8
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,7 @@ std::unique_ptr<Process> createHeatTransportBHEProcess( ...@@ -57,7 +57,7 @@ std::unique_ptr<Process> createHeatTransportBHEProcess(
for (std::string const& pv_name : range) for (std::string const& pv_name : range)
{ {
if (pv_name != "temperature_soil" && if (pv_name != "temperature_soil" &&
pv_name.find("temperature_BHE") != 0) pv_name.find("temperature_BHE") == std::string::npos)
{ {
OGS_FATAL( OGS_FATAL(
"Found a process variable name '%s'. It should be " "Found a process variable name '%s'. It should be "
......
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