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

Drop else after return in if statements.

parent c00fee82
No related branches found
No related tags found
No related merge requests found
......@@ -116,23 +116,20 @@ DataType datasetFound(std::ifstream& in)
{
return DataType::VSET;
}
else if (isKeyword(DataType::PLINE, line))
if (isKeyword(DataType::PLINE, line))
{
return DataType::PLINE;
}
else if (isKeyword(DataType::TSURF, line))
if (isKeyword(DataType::TSURF, line))
{
return DataType::TSURF;
}
else if (isKeyword(DataType::MODEL3D, line))
if (isKeyword(DataType::MODEL3D, line))
{
return DataType::MODEL3D;
}
else
{
ERR("No known identifier found...");
return DataType::UNDEFINED;
}
ERR("No known identifier found...");
return DataType::UNDEFINED;
}
return DataType::UNDEFINED;
}
......@@ -274,7 +271,7 @@ bool parseNodes(std::ifstream& in,
return true;
}
else if (line.substr(0, 4) == "TRGL")
if (line.substr(0, 4) == "TRGL")
{
in.seekg(pos);
return true;
......
......@@ -148,11 +148,8 @@ void ThermoMechanicsProcess<DisplacementDim>::constructDofTable()
constructMonolithicProcessDofTable();
return;
}
else
{
constructDofTableOfSpecifiedProsessStaggerdScheme(
_process_data.mechanics_process_id);
}
constructDofTableOfSpecifiedProsessStaggerdScheme(
_process_data.mechanics_process_id);
// TODO move the two data members somewhere else.
// for extrapolation of secondary variables of stress or strain
......
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