Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Nektar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Giacomo Castiglioni
Nektar
Commits
fe0f4fc1
Commit
fe0f4fc1
authored
8 years ago
by
Douglas Serson
Committed by
Chris Cantwell
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Modify FC extract checks to allow use without fld
(cherry picked from commit
781980b3
)
parent
bc76d0a0
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
utilities/FieldConvert/ProcessModules/ProcessBoundaryExtract.cpp
+12
-6
12 additions, 6 deletions
...es/FieldConvert/ProcessModules/ProcessBoundaryExtract.cpp
with
12 additions
and
6 deletions
utilities/FieldConvert/ProcessModules/ProcessBoundaryExtract.cpp
+
12
−
6
View file @
fe0f4fc1
...
...
@@ -80,6 +80,8 @@ void ProcessBoundaryExtract::Process(po::variables_map &vm)
}
}
m_f
->
m_fldToBnd
=
m_config
[
"fldtoboundary"
].
m_beenSet
;
m_f
->
m_addNormals
=
m_config
[
"addnormals"
].
m_beenSet
;
// check for correct input files
if
((
m_f
->
m_inputfiles
.
count
(
"xml"
)
==
0
)
&&
(
m_f
->
m_inputfiles
.
count
(
"xml.gz"
)
==
0
))
...
...
@@ -88,11 +90,18 @@ void ProcessBoundaryExtract::Process(po::variables_map &vm)
exit
(
3
);
}
if
(
(
m_f
->
m_
inputfiles
.
count
(
"fld"
)
==
0
)
&&
(
m_f
->
m_inputfiles
.
count
(
"chk"
)
==
0
)
&&
(
m_f
->
m_inputfiles
.
count
(
"rst"
)
==
0
)
)
if
(
m_f
->
m_
fldToBnd
)
{
cout
<<
"A fld or chk or rst input file must be specified for the boundary extraction module"
<<
endl
;
if
((
m_f
->
m_inputfiles
.
count
(
"fld"
)
==
0
)
&&
(
m_f
->
m_inputfiles
.
count
(
"chk"
)
==
0
)
&&
(
m_f
->
m_inputfiles
.
count
(
"rst"
)
==
0
))
{
cout
<<
"A fld or chk or rst input file must be specified for "
<<
"the boundary extraction module with fldtoboundary option."
<<
endl
;
exit
(
3
);
exit
(
3
);
}
}
// Set up Field options to output boundary fld
...
...
@@ -133,9 +142,6 @@ void ProcessBoundaryExtract::Process(po::variables_map &vm)
m_f
->
m_bndRegionsToWrite
),
"Failed to interpret bnd values string"
);
}
m_f
->
m_fldToBnd
=
m_config
[
"fldtoboundary"
].
m_beenSet
;
m_f
->
m_addNormals
=
m_config
[
"addnormals"
].
m_beenSet
;
}
}
...
...
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