Skip to content
Snippets Groups Projects
Commit 963a8cb8 authored by Andrew Heather's avatar Andrew Heather
Browse files

cleaner code

parent a54bbffb
No related branches found
No related tags found
No related merge requests found
dictionary additional = mesh.solutionDict().subDict("additional"); dictionary additional = mesh.solutionDict().subDict("additional");
bool dpdt = true; bool dpdt = additional.lookupOrDefault("dpdt", true);
if (additional.found("dpdt")) bool eWork = additional.lookupOrDefault("eWork", true);
{ bool hWork = additional.lookupOrDefault("hWork", true);
additional.lookup("dpdt") >> dpdt;
}
bool eWork = true;
if (additional.found("eWork"))
{
additional.lookup("eWork") >> eWork;
}
bool hWork = true;
if (additional.found("hWork"))
{
additional.lookup("hWork") >> hWork;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment