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
bca3490f
Commit
bca3490f
authored
8 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
don't warn if option does not exist
parent
363e1dd4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Common/Gmsh.cpp
+15
-8
15 additions, 8 deletions
Common/Gmsh.cpp
with
15 additions
and
8 deletions
Common/Gmsh.cpp
+
15
−
8
View file @
bca3490f
...
...
@@ -84,8 +84,9 @@ int GmshInitialize(int argc, char **argv)
PluginManager
::
instance
()
->
registerDefaultPlugins
();
#endif
// Initialize robust predicates (no static filter for now, we do not know the size of the domain)
robustPredicates
::
exactinit
(
0
,
1.0
,
1.0
,
1.0
);
// Initialize robust predicates (no static filter for now, we do not know the
// size of the domain)
robustPredicates
::
exactinit
(
0
,
1.0
,
1.0
,
1.0
);
if
(
dummy
)
delete
dummy
;
return
1
;
...
...
@@ -113,37 +114,43 @@ int GmshSetBoundingBox(double xmin, double xmax,
int
GmshSetOption
(
const
std
::
string
&
category
,
const
std
::
string
&
name
,
std
::
string
value
,
int
index
)
{
return
StringOption
(
GMSH_SET
|
GMSH_GUI
,
category
.
c_str
(),
index
,
name
.
c_str
(),
value
);
return
StringOption
(
GMSH_SET
|
GMSH_GUI
,
category
.
c_str
(),
index
,
name
.
c_str
(),
value
,
false
);
}
int
GmshSetOption
(
const
std
::
string
&
category
,
const
std
::
string
&
name
,
double
value
,
int
index
)
{
return
NumberOption
(
GMSH_SET
|
GMSH_GUI
,
category
.
c_str
(),
index
,
name
.
c_str
(),
value
);
return
NumberOption
(
GMSH_SET
|
GMSH_GUI
,
category
.
c_str
(),
index
,
name
.
c_str
(),
value
,
false
);
}
int
GmshSetOption
(
const
std
::
string
&
category
,
const
std
::
string
&
name
,
unsigned
int
value
,
int
index
)
{
return
ColorOption
(
GMSH_SET
|
GMSH_GUI
,
category
.
c_str
(),
index
,
name
.
c_str
(),
value
);
return
ColorOption
(
GMSH_SET
|
GMSH_GUI
,
category
.
c_str
(),
index
,
name
.
c_str
(),
value
,
false
);
}
void
GmshSetStringOption
(
const
std
::
string
&
category
,
const
std
::
string
&
name
,
std
::
string
value
,
int
index
)
{
StringOption
(
GMSH_SET
|
GMSH_GUI
,
category
.
c_str
(),
index
,
name
.
c_str
(),
value
);
StringOption
(
GMSH_SET
|
GMSH_GUI
,
category
.
c_str
(),
index
,
name
.
c_str
(),
value
,
false
);
}
void
GmshSetNumberOption
(
const
std
::
string
&
category
,
const
std
::
string
&
name
,
double
value
,
int
index
)
{
NumberOption
(
GMSH_SET
|
GMSH_GUI
,
category
.
c_str
(),
index
,
name
.
c_str
(),
value
);
NumberOption
(
GMSH_SET
|
GMSH_GUI
,
category
.
c_str
(),
index
,
name
.
c_str
(),
value
,
false
);
}
void
GmshSetColorOption
(
const
std
::
string
&
category
,
const
std
::
string
&
name
,
unsigned
int
value
,
int
index
)
{
ColorOption
(
GMSH_SET
|
GMSH_GUI
,
category
.
c_str
(),
index
,
name
.
c_str
(),
value
);
ColorOption
(
GMSH_SET
|
GMSH_GUI
,
category
.
c_str
(),
index
,
name
.
c_str
(),
value
,
false
);
}
int
GmshGetOption
(
const
std
::
string
&
category
,
const
std
::
string
&
name
,
...
...
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