Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
925202da
Commit
925202da
authored
15 years ago
by
mattijs
Browse files
Options
Downloads
Patches
Plain Diff
ENH: have -noSync option to prevent topoSet/setSet automatically syncing coupled faces.
parent
7507b5f6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
applications/utilities/mesh/manipulation/setSet/setSet.C
+10
-2
10 additions, 2 deletions
applications/utilities/mesh/manipulation/setSet/setSet.C
applications/utilities/mesh/manipulation/topoSet/topoSet.C
+9
-2
9 additions, 2 deletions
applications/utilities/mesh/manipulation/topoSet/topoSet.C
with
19 additions
and
4 deletions
applications/utilities/mesh/manipulation/setSet/setSet.C
+
10
−
2
View file @
925202da
...
...
@@ -439,6 +439,7 @@ bool doCommand
const
word
&
actionName
,
const
bool
writeVTKFile
,
const
bool
writeCurrentTime
,
const
bool
noSync
,
Istream
&
is
)
{
...
...
@@ -581,7 +582,7 @@ bool doCommand
// Set will have been modified.
// Synchronize for coupled patches.
currentSet
.
sync
(
mesh
);
if
(
!
noSync
)
currentSet
.
sync
(
mesh
);
// Write
if
(
writeVTKFile
)
...
...
@@ -834,6 +835,11 @@ int main(int argc, char *argv[])
"file"
,
"process in batch mode, using input from specified file"
);
argList
::
addBoolOption
(
"noSync"
,
"do not synchronise selection across coupled patches"
);
# include "setRootCase.H"
# include "createTime.H"
...
...
@@ -842,6 +848,7 @@ int main(int argc, char *argv[])
const
bool
writeVTK
=
!
args
.
optionFound
(
"noVTK"
);
const
bool
loop
=
args
.
optionFound
(
"loop"
);
const
bool
batch
=
args
.
optionFound
(
"batch"
);
const
bool
noSync
=
args
.
optionFound
(
"noSync"
);
if
(
loop
&&
!
batch
)
{
...
...
@@ -1008,7 +1015,8 @@ int main(int argc, char *argv[])
setName
,
actionName
,
writeVTK
,
loop
,
// if in looping mode dump sets to time directory
loop
,
// if in looping mode dump sets to time directory
noSync
,
is
);
...
...
This diff is collapsed.
Click to expand it.
applications/utilities/mesh/manipulation/topoSet/topoSet.C
+
9
−
2
View file @
925202da
...
...
@@ -49,11 +49,18 @@ int main(int argc, char *argv[])
"specify an alternative dictionary for the topoSet dictionary"
);
# include "addRegionOption.H"
argList
::
addBoolOption
(
"noSync"
,
"do not synchronise selection across coupled patches"
);
# include "setRootCase.H"
# include "createTime.H"
# include "createNamedPolyMesh.H"
const
bool
noSync
=
args
.
optionFound
(
"noSync"
);
const
word
dictName
(
"topoSetDict"
);
fileName
dictPath
=
dictName
;
...
...
@@ -152,7 +159,7 @@ int main(int argc, char *argv[])
source
().
applyToSet
(
action
,
currentSet
());
// Synchronize for coupled patches.
currentSet
().
sync
(
mesh
);
if
(
!
noSync
)
currentSet
().
sync
(
mesh
);
currentSet
().
write
();
}
break
;
...
...
@@ -186,7 +193,7 @@ int main(int argc, char *argv[])
// Combine new value of currentSet with old one.
currentSet
().
subset
(
oldSet
());
// Synchronize for coupled patches.
currentSet
().
sync
(
mesh
);
if
(
!
noSync
)
currentSet
().
sync
(
mesh
);
currentSet
().
write
();
}
break
;
...
...
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