Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
19c56a58
Commit
19c56a58
authored
8 years ago
by
Jean-François Remacle
Browse files
Options
Downloads
Patches
Plain Diff
add "General.MeshDiscrete" option
parent
00db1683
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
Common/DefaultOptions.h
+2
-0
2 additions, 0 deletions
Common/DefaultOptions.h
Common/Options.cpp
+8
-0
8 additions, 0 deletions
Common/Options.cpp
Common/Options.h
+1
-0
1 addition, 0 deletions
Common/Options.h
benchmarks/2d/hybrid_discrete.geo
+5
-3
5 additions, 3 deletions
benchmarks/2d/hybrid_discrete.geo
with
16 additions
and
3 deletions
Common/DefaultOptions.h
+
2
−
0
View file @
19c56a58
...
@@ -652,6 +652,8 @@ StringXNumber GeneralOptions_Number[] = {
...
@@ -652,6 +652,8 @@ StringXNumber GeneralOptions_Number[] = {
"Horizontal position (in pixels) of the (detached) menu tree"
},
"Horizontal position (in pixels) of the (detached) menu tree"
},
{
F
|
S
,
"MenuPositionY"
,
opt_general_menu_position1
,
400
.
,
{
F
|
S
,
"MenuPositionY"
,
opt_general_menu_position1
,
400
.
,
"Vertical position (in pixels) of the (detached) menu tree"
},
"Vertical position (in pixels) of the (detached) menu tree"
},
{
F
|
O
,
"MeshDiscrete"
,
opt_general_meshdiscrete
,
0
.
,
"Mesh discrete surfaces through automatic parametrization (MUMPS required for efficiency) (0)"
},
{
F
|
O
,
"MessageFontSize"
,
opt_general_message_fontsize
,
-
1
.
,
{
F
|
O
,
"MessageFontSize"
,
opt_general_message_fontsize
,
-
1
.
,
"Size of the font in the message window (-1=automatic)"
},
"Size of the font in the message window (-1=automatic)"
},
{
F
|
S
,
"MessageHeight"
,
opt_general_message_size
,
300
.
,
{
F
|
S
,
"MessageHeight"
,
opt_general_message_size
,
300
.
,
...
...
This diff is collapsed.
Click to expand it.
Common/Options.cpp
+
8
−
0
View file @
19c56a58
...
@@ -2255,6 +2255,14 @@ double opt_general_system_menu_bar(OPT_ARGS_NUM)
...
@@ -2255,6 +2255,14 @@ double opt_general_system_menu_bar(OPT_ARGS_NUM)
return
CTX
::
instance
()
->
systemMenuBar
;
return
CTX
::
instance
()
->
systemMenuBar
;
}
}
double
opt_general_meshdiscrete
(
OPT_ARGS_NUM
)
{
if
(
action
&
GMSH_SET
){
CTX
::
instance
()
->
meshDiscrete
=
(
int
)
val
;
}
return
CTX
::
instance
()
->
meshDiscrete
;
}
double
opt_general_message_size
(
OPT_ARGS_NUM
)
double
opt_general_message_size
(
OPT_ARGS_NUM
)
{
{
if
(
action
&
GMSH_SET
){
if
(
action
&
GMSH_SET
){
...
...
This diff is collapsed.
Click to expand it.
Common/Options.h
+
1
−
0
View file @
19c56a58
...
@@ -156,6 +156,7 @@ double opt_general_polygon_offset_always(OPT_ARGS_NUM);
...
@@ -156,6 +156,7 @@ double opt_general_polygon_offset_always(OPT_ARGS_NUM);
double
opt_general_polygon_offset_factor
(
OPT_ARGS_NUM
);
double
opt_general_polygon_offset_factor
(
OPT_ARGS_NUM
);
double
opt_general_polygon_offset_units
(
OPT_ARGS_NUM
);
double
opt_general_polygon_offset_units
(
OPT_ARGS_NUM
);
double
opt_general_system_menu_bar
(
OPT_ARGS_NUM
);
double
opt_general_system_menu_bar
(
OPT_ARGS_NUM
);
double
opt_general_meshdiscrete
(
OPT_ARGS_NUM
);
double
opt_general_message_size
(
OPT_ARGS_NUM
);
double
opt_general_message_size
(
OPT_ARGS_NUM
);
double
opt_general_message_fontsize
(
OPT_ARGS_NUM
);
double
opt_general_message_fontsize
(
OPT_ARGS_NUM
);
double
opt_general_detached_menu
(
OPT_ARGS_NUM
);
double
opt_general_detached_menu
(
OPT_ARGS_NUM
);
...
...
This diff is collapsed.
Click to expand it.
benchmarks/2d/hybrid_discrete.geo
+
5
−
3
View file @
19c56a58
...
@@ -5,9 +5,11 @@ lc = 1e-2;
...
@@ -5,9 +5,11 @@ lc = 1e-2;
Point
(
1
)
=
{
0
,
0
,
0
,
lc
};
Point
(
1
)
=
{
0
,
0
,
0
,
lc
};
Point
(
4
)
=
{
0
,
.3
,
0
,
lc
}
;
Point
(
4
)
=
{
0
,
.3
,
0
,
lc
}
;
Line
(
1
)
=
{
1
,
11
}
;
//
Line(1) = {1,11} ;
Line
(
3
)
=
{
14
,
4
}
;
Line
(
3
)
=
{
14
,
4
}
;
Line
(
4
)
=
{
4
,
1
}
;
Line
(
4
)
=
{
4
,
1
}
;
Line
Loop
(
5
)
=
{
-
4
,
-
1
,
-
14
,
-
3
}
;
//Line Loop(5) = {-4,-1,-14,-3} ;
Plane
Surface
(
6
)
=
{
5
}
;
//Plane Surface(6) = {5} ;
//+
//Line(17) = {4, 14};
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment