Skip to content
Snippets Groups Projects
Commit fad13778 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

use options from db in gui

parent def1bd0c
No related branches found
No related tags found
No related merge requests found
......@@ -959,14 +959,14 @@ StringXNumber MeshOptions_Number[] = {
{ F|O, "Hexahedra" , opt_mesh_hexahedra , 1. ,
"Display mesh hexahedra?" },
{ F|0, "HighOrderNumLayers", opt_mesh_ho_nlayers, 3.,
{ F|0, "HighOrderNumLayers", opt_mesh_ho_nlayers, 6.,
"Number of high order mesh elements to consider for optimization"},
{ F|O, "HighOrderOptimize" , opt_mesh_ho_optimize , 0.,
"Optimize high order meshes?" },
{ F|0, "HighOrderPoissonRatio", opt_mesh_ho_poisson, 0.33,
"Poisson ratio of the material used in the elastic smoother for high order meshes"
"Must be between -1.0 and 0.5, excluded"},
{ F|O, "HighOrderThresholdMin", opt_mesh_ho_threshold_min, 0.2,
{ F|O, "HighOrderThresholdMin", opt_mesh_ho_threshold_min, 0.1,
"Minimum threshold for high order element optimization"},
{ F|O, "HighOrderThresholdMax", opt_mesh_ho_threshold_max, 2.0,
"Maximum threshold for high order element optimization"},
......
......@@ -245,7 +245,7 @@ highOrderToolsWindow::highOrderToolsWindow(int deltaFontSize)
value[1]->maximum(1);
value[1]->step(.01);
value[1]->align(FL_ALIGN_RIGHT);
value[1]->value(0.1);
value[1]->value(CTX::instance()->mesh.hoThresholdMin);
value[8] = new Fl_Value_Input
(x+IW/2.0,y, IW/2.0, BH, "Target Jacobian range");
......@@ -253,7 +253,7 @@ highOrderToolsWindow::highOrderToolsWindow(int deltaFontSize)
value[8]->maximum(10);
value[8]->step(.01);
value[8]->align(FL_ALIGN_RIGHT);
value[8]->value(2);
value[8]->value(CTX::instance()->mesh.hoThresholdMax);
y += BH;
value[2] = new Fl_Value_Input
......@@ -262,7 +262,7 @@ highOrderToolsWindow::highOrderToolsWindow(int deltaFontSize)
value[2]->maximum(20);
value[2]->step(1);
value[2]->align(FL_ALIGN_RIGHT);
value[2]->value(6);
value[2]->value(CTX::instance()->mesh.hoNLayers);
y += BH;
value[7] = new Fl_Value_Input
......
......@@ -216,7 +216,7 @@ Saved in: @code{General.OptionsFileName}
@item Mesh.HighOrderNumLayers
Number of high order mesh elements to consider for optimization@*
Default value: @code{3}@*
Default value: @code{6}@*
Saved in: @code{-}
@item Mesh.HighOrderOptimize
......@@ -231,7 +231,7 @@ Saved in: @code{-}
@item Mesh.HighOrderThresholdMin
Minimum threshold for high order element optimization@*
Default value: @code{0.2}@*
Default value: @code{0.1}@*
Saved in: @code{General.OptionsFileName}
@item Mesh.HighOrderThresholdMax
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment