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
71479961
Commit
71479961
authored
11 years ago
by
mattijs
Browse files
Options
Downloads
Patches
Plain Diff
ENH: surfaceFeatureExtract: skip non-dictionary entries.
parent
25a73533
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/utilities/surface/surfaceFeatureExtract/surfaceFeatureExtract.C
+12
-2
12 additions, 2 deletions
...ies/surface/surfaceFeatureExtract/surfaceFeatureExtract.C
with
12 additions
and
2 deletions
applications/utilities/surface/surfaceFeatureExtract/surfaceFeatureExtract.C
+
12
−
2
View file @
71479961
...
...
@@ -952,8 +952,20 @@ int main(int argc, char *argv[])
forAllConstIter
(
dictionary
,
dict
,
iter
)
{
if
(
!
iter
().
isDict
())
{
continue
;
}
const
dictionary
&
surfaceDict
=
iter
().
dict
();
if
(
surfaceDict
.
found
(
"extractionMethod"
))
{
continue
;
}
const
word
extractionMethod
=
surfaceDict
.
lookup
(
"extractionMethod"
);
const
fileName
surfFileName
=
iter
().
keyword
();
const
fileName
sFeatFileName
=
surfFileName
.
lessExt
().
name
();
...
...
@@ -971,8 +983,6 @@ int main(int argc, char *argv[])
const
Switch
closeness
=
surfaceDict
.
lookupOrDefault
<
Switch
>
(
"closeness"
,
"off"
);
const
word
extractionMethod
=
surfaceDict
.
lookup
(
"extractionMethod"
);
Info
<<
nl
<<
"Feature line extraction is only valid on closed manifold "
<<
"surfaces."
<<
endl
;
...
...
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