Skip to content

Commit

Permalink
Merge pull request #17 from waltherm/master
Browse files Browse the repository at this point in the history
[BUGFIX] Critical bugfix NONLINEAR time stepping
  • Loading branch information
norihiro-w committed Mar 4, 2016
2 parents 4b6067b + 4916605 commit 09bedb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions FEM/FEMEnums.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -581,11 +581,11 @@ std::string convertTimTypeToString(TimType::type type)

IterationType::type convertIterationType(const std::string& str)
{
if (str.find("LINEAR")!=std::string::npos)
if (str.compare("LINEAR")==0)
return IterationType::LINEAR;
else if (str.find("NONLINEAR")!=std::string::npos)
else if (str.compare("NONLINEAR")==0)
return IterationType::NONLINEAR;
else if (str.find("COUPLED")!=std::string::npos)
else if (str.compare("COUPLED")==0)
return IterationType::COUPLED;
else
return IterationType::INVALID;
Expand Down

0 comments on commit 09bedb7

Please sign in to comment.