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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
b84d5357
Commit
b84d5357
authored
23 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
NbXXX mesh options
parent
f56f3104
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Common/DefaultOptions.h
+14
-0
14 additions, 0 deletions
Common/DefaultOptions.h
Common/Options.cpp
+37
-1
37 additions, 1 deletion
Common/Options.cpp
Common/Options.h
+7
-0
7 additions, 0 deletions
Common/Options.h
with
58 additions
and
1 deletion
Common/DefaultOptions.h
+
14
−
0
View file @
b84d5357
...
...
@@ -423,6 +423,20 @@ StringXNumber MeshOptions_Number[] = {
"Allow the generation of degenerated hexahedra or prisms during extrusion"
},
{
F
,
"SaveAll"
,
opt_mesh_save_all
,
0
.
,
"Ignore Physical definitions and save all elements"
},
{
F
,
"NbNodes"
,
opt_mesh_nb_nodes
,
0
.
,
"Number of nodes in the current mesh"
},
{
F
,
"NbTriangles"
,
opt_mesh_nb_triangles
,
0
.
,
"Number of triangles in the current mesh"
},
{
F
,
"NbQuadrangles"
,
opt_mesh_nb_quadrangles
,
0
.
,
"Number of quadrangles in the current mesh"
},
{
F
,
"NbTetrahedra"
,
opt_mesh_nb_tetrahedra
,
0
.
,
"Number of tetrahedra in the current mesh"
},
{
F
,
"NbHexahedra"
,
opt_mesh_nb_hexahedra
,
0
.
,
"Number of hexahedra in the current mesh"
},
{
F
,
"NbPrims"
,
opt_mesh_nb_prisms
,
0
.
,
"Number of prisms in the current mesh"
},
{
F
,
"NbPyramids"
,
opt_mesh_nb_pyramids
,
0
.
,
"Number of pyramids in the current mesh"
},
{
0
,
NULL
,
NULL
,
0
.
,
NULL
}
}
;
...
...
This diff is collapsed.
Click to expand it.
Common/Options.cpp
+
37
−
1
View file @
b84d5357
// $Id: Options.cpp,v 1.5
5
2001-11-0
5
08:
37:43
geuzaine Exp $
// $Id: Options.cpp,v 1.5
6
2001-11-0
7
08:
04:30
geuzaine Exp $
#include
"Gmsh.h"
#include
"GmshUI.h"
...
...
@@ -1596,6 +1596,42 @@ double opt_mesh_color_carousel(OPT_ARGS_NUM){
#endif
return
CTX
.
mesh
.
color_carousel
;
}
double
opt_mesh_nb_nodes
(
OPT_ARGS_NUM
){
double
s
[
50
];
GetStatistics
(
s
);
return
s
[
6
]
?
s
[
6
]
:
(
s
[
5
]
?
s
[
5
]
:
s
[
4
]);
}
double
opt_mesh_nb_triangles
(
OPT_ARGS_NUM
){
double
s
[
50
];
GetStatistics
(
s
);
return
s
[
7
]
-
s
[
8
];
}
double
opt_mesh_nb_quadrangles
(
OPT_ARGS_NUM
){
double
s
[
50
];
GetStatistics
(
s
);
return
s
[
8
];
}
double
opt_mesh_nb_tetrahedra
(
OPT_ARGS_NUM
){
double
s
[
50
];
GetStatistics
(
s
);
return
s
[
9
];
}
double
opt_mesh_nb_hexahedra
(
OPT_ARGS_NUM
){
double
s
[
50
];
GetStatistics
(
s
);
return
s
[
10
];
}
double
opt_mesh_nb_prisms
(
OPT_ARGS_NUM
){
double
s
[
50
];
GetStatistics
(
s
);
return
s
[
11
];
}
double
opt_mesh_nb_pyramids
(
OPT_ARGS_NUM
){
double
s
[
50
];
GetStatistics
(
s
);
return
s
[
12
];
}
double
opt_solver_getdp_popupmessages
(
OPT_ARGS_NUM
){
...
...
This diff is collapsed.
Click to expand it.
Common/Options.h
+
7
−
0
View file @
b84d5357
...
...
@@ -198,6 +198,13 @@ double opt_mesh_allow_degenerated_extrude(OPT_ARGS_NUM);
double
opt_mesh_save_all
(
OPT_ARGS_NUM
);
double
opt_mesh_color_scheme
(
OPT_ARGS_NUM
);
double
opt_mesh_color_carousel
(
OPT_ARGS_NUM
);
double
opt_mesh_nb_nodes
(
OPT_ARGS_NUM
);
double
opt_mesh_nb_triangles
(
OPT_ARGS_NUM
);
double
opt_mesh_nb_quadrangles
(
OPT_ARGS_NUM
);
double
opt_mesh_nb_tetrahedra
(
OPT_ARGS_NUM
);
double
opt_mesh_nb_hexahedra
(
OPT_ARGS_NUM
);
double
opt_mesh_nb_prisms
(
OPT_ARGS_NUM
);
double
opt_mesh_nb_pyramids
(
OPT_ARGS_NUM
);
double
opt_solver_getdp_popupmessages
(
OPT_ARGS_NUM
);
double
opt_solver_getdp_mergeviews
(
OPT_ARGS_NUM
);
double
opt_post_scales
(
OPT_ARGS_NUM
);
...
...
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