Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Commits
53b1798c
Commit
53b1798c
authored
3 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Improve error message when a zone is not found
parent
aa5ae1f2
No related branches found
No related tags found
1 merge request
!138
Fix a g++-9 warning
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mesh/MeshCellZone.cpp
+11
-1
11 additions, 1 deletion
src/mesh/MeshCellZone.cpp
with
11 additions
and
1 deletion
src/mesh/MeshCellZone.cpp
+
11
−
1
View file @
53b1798c
...
@@ -26,7 +26,17 @@ getMeshCellZone(const Mesh<Connectivity<Dimension>>& mesh, const IZoneDescriptor
...
@@ -26,7 +26,17 @@ getMeshCellZone(const Mesh<Connectivity<Dimension>>& mesh, const IZoneDescriptor
}
}
std
::
ostringstream
ost
;
std
::
ostringstream
ost
;
ost
<<
"cannot find zone with name "
<<
rang
::
fgB
::
red
<<
zone_descriptor
<<
rang
::
style
::
reset
;
ost
<<
"cannot find zone with name "
<<
rang
::
fgB
::
red
<<
zone_descriptor
<<
rang
::
style
::
reset
<<
'\n'
;
ost
<<
"The mesh contains "
<<
mesh
.
connectivity
().
template
numberOfRefItemList
<
ItemType
::
cell
>()
<<
" zones: "
;
for
(
size_t
i_ref_cell_list
=
0
;
i_ref_cell_list
<
mesh
.
connectivity
().
template
numberOfRefItemList
<
ItemType
::
cell
>();
++
i_ref_cell_list
)
{
const
auto
&
ref_cell_list
=
mesh
.
connectivity
().
template
refItemList
<
ItemType
::
cell
>(
i_ref_cell_list
);
const
RefId
&
ref
=
ref_cell_list
.
refId
();
if
(
i_ref_cell_list
>
0
)
{
ost
<<
", "
;
}
ost
<<
rang
::
fgB
::
yellow
<<
ref
<<
rang
::
style
::
reset
;
}
throw
NormalError
(
ost
.
str
());
throw
NormalError
(
ost
.
str
());
}
}
...
...
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