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
a3e381cf
Commit
a3e381cf
authored
9 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
Solver.AutoMesh = -1 when the geometry creates the mesh
parent
89848dc3
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Common/DefaultOptions.h
+2
-1
2 additions, 1 deletion
Common/DefaultOptions.h
Common/onelabUtils.cpp
+8
-3
8 additions, 3 deletions
Common/onelabUtils.cpp
with
10 additions
and
4 deletions
Common/DefaultOptions.h
+
2
−
1
View file @
a3e381cf
...
...
@@ -1292,7 +1292,8 @@ StringXNumber SolverOptions_Number[] = {
"Automatically save the ONELAB database after each computation"
},
{
F
|
O
,
"AutoMesh"
,
opt_solver_auto_mesh
,
1
.
,
"Automatically mesh if necesssary (0: never remesh; 1: on startup, use existing "
"mesh on disk if available; 2: always remesh)"
},
"mesh on disk if available; 2: always remesh; -1: the geometry script creates "
"the mesh)"
},
{
F
|
O
,
"AutoMergeFile"
,
opt_solver_auto_merge_file
,
1
.
,
"Automatically merge result files"
},
{
F
|
O
,
"AutoShowViews"
,
opt_solver_auto_show_views
,
2
.
,
...
...
This diff is collapsed.
Click to expand it.
Common/onelabUtils.cpp
+
8
−
3
View file @
a3e381cf
...
...
@@ -326,14 +326,14 @@ namespace onelabUtils {
{
bool
redraw
=
false
;
onelab
::
server
::
citer
it
=
onelab
::
server
::
instance
()
->
findClient
(
"Gmsh"
);
if
(
it
==
onelab
::
server
::
instance
()
->
lastClient
())
return
redraw
;
// do nothing in case of a python metamodel
std
::
vector
<
onelab
::
number
>
pn
;
onelab
::
server
::
instance
()
->
get
(
pn
,
"IsPyMetamodel"
);
if
(
pn
.
size
()
&&
pn
[
0
].
getValue
())
return
redraw
;
onelab
::
server
::
citer
it
=
onelab
::
server
::
instance
()
->
findClient
(
"Gmsh"
);
if
(
it
==
onelab
::
server
::
instance
()
->
lastClient
())
return
redraw
;
onelab
::
client
*
c
=
*
it
;
std
::
string
mshFileName
=
onelabUtils
::
getMshFileName
(
c
);
...
...
@@ -343,6 +343,11 @@ namespace onelabUtils {
// = 2: mesh and save mesh (e.g. if char length changed)
// > 2: reload geometry, mesh and save mesh (other things have changed)
if
(
meshAuto
<
0
){
// the geometry creates the mesh
meshAuto
=
0
;
if
(
changed
)
changed
=
3
;
}
Msg
::
SetOnelabAction
(
action
);
if
(
action
==
"initialize"
){
...
...
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