Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcker committed Oct 14, 2017
1 parent 0de897c commit 2d0cb68
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions ElmerGUI/Application/src/main.cpp
Expand Up @@ -108,6 +108,7 @@ int main(int argc, char *argv[])
cout << " -o <string> Select output dir" << endl;
cout << " -nogui Disable GUI" << endl;
cout << " -e Exit after saving" << endl;
cout << " -tq <value> Mesh quality (Tetgen only)" << endl;
cout << endl;
return 0;
}
Expand Down
6 changes: 5 additions & 1 deletion ElmerGUI/Application/src/meshcontrol.cpp
Expand Up @@ -150,7 +150,11 @@ void MeshControl::defaultControls()
bool tq_isnum=0;
QString tetlib_options = "nnJApVq";
if (tq_ind > 0) args.at(tq_ind + 1).toFloat(&tq_isnum);
if (tq_ind > 0 && !tq_isnum) cout << "Ignoring -tq option: " << args.at(tq_ind + 1).toStdString() << endl;
#if WITH_QT5
if (tq_ind > 0 && !tq_isnum) cout << "Ignoring -tq option: " << args.at(tq_ind + 1).toLatin1().data() << endl;
#else
if (tq_ind > 0 && !tq_isnum) cout << "Ignoring -tq option: " << args.at(tq_ind + 1).toAscii().data() << endl;
#endif
if (tq_isnum) tetlib_options.append(args.at(tq_ind + 1));
else tetlib_options.append("1.414");

Expand Down

0 comments on commit 2d0cb68

Please sign in to comment.