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
247d4b8e
Commit
247d4b8e
authored
Apr 13, 2022
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Improve error messages to display available item sets
parent
040fbf1c
No related branches found
No related tags found
1 merge request
!140
Change referenced item list policy
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/mesh/MeshCellZone.cpp
+2
-5
2 additions, 5 deletions
src/mesh/MeshCellZone.cpp
src/mesh/MeshFlatFaceBoundary.cpp
+13
-1
13 additions, 1 deletion
src/mesh/MeshFlatFaceBoundary.cpp
with
15 additions
and
6 deletions
src/mesh/MeshCellZone.cpp
+
2
−
5
View file @
247d4b8e
...
@@ -9,9 +9,6 @@ MeshCellZone<Dimension>::MeshCellZone(const Mesh<Connectivity<Dimension>>&, cons
...
@@ -9,9 +9,6 @@ MeshCellZone<Dimension>::MeshCellZone(const Mesh<Connectivity<Dimension>>&, cons
:
m_cell_list
(
ref_cell_list
.
list
()),
m_zone_name
(
ref_cell_list
.
refId
().
tagName
())
:
m_cell_list
(
ref_cell_list
.
list
()),
m_zone_name
(
ref_cell_list
.
refId
().
tagName
())
{}
{}
template
MeshCellZone
<
2
>
::
MeshCellZone
(
const
Mesh
<
Connectivity
<
2
>>&
,
const
RefCellList
&
);
template
MeshCellZone
<
3
>
::
MeshCellZone
(
const
Mesh
<
Connectivity
<
3
>>&
,
const
RefCellList
&
);
template
<
size_t
Dimension
>
template
<
size_t
Dimension
>
MeshCellZone
<
Dimension
>
MeshCellZone
<
Dimension
>
getMeshCellZone
(
const
Mesh
<
Connectivity
<
Dimension
>>&
mesh
,
const
IZoneDescriptor
&
zone_descriptor
)
getMeshCellZone
(
const
Mesh
<
Connectivity
<
Dimension
>>&
mesh
,
const
IZoneDescriptor
&
zone_descriptor
)
...
@@ -26,8 +23,8 @@ getMeshCellZone(const Mesh<Connectivity<Dimension>>& mesh, const IZoneDescriptor
...
@@ -26,8 +23,8 @@ 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
<<
'\n'
;
ost
<<
"cannot find
cell set
with name "
<<
rang
::
fgB
::
red
<<
zone_descriptor
<<
rang
::
style
::
reset
<<
'\n'
;
ost
<<
"The mesh contains "
<<
mesh
.
connectivity
().
template
numberOfRefItemList
<
ItemType
::
cell
>()
<<
"
zone
s: "
;
ost
<<
"The mesh contains "
<<
mesh
.
connectivity
().
template
numberOfRefItemList
<
ItemType
::
cell
>()
<<
"
cell set
s: "
;
for
(
size_t
i_ref_cell_list
=
0
;
i_ref_cell_list
<
mesh
.
connectivity
().
template
numberOfRefItemList
<
ItemType
::
cell
>();
for
(
size_t
i_ref_cell_list
=
0
;
i_ref_cell_list
<
mesh
.
connectivity
().
template
numberOfRefItemList
<
ItemType
::
cell
>();
++
i_ref_cell_list
)
{
++
i_ref_cell_list
)
{
const
auto
&
ref_cell_list
=
mesh
.
connectivity
().
template
refItemList
<
ItemType
::
cell
>(
i_ref_cell_list
);
const
auto
&
ref_cell_list
=
mesh
.
connectivity
().
template
refItemList
<
ItemType
::
cell
>(
i_ref_cell_list
);
...
...
This diff is collapsed.
Click to expand it.
src/mesh/MeshFlatFaceBoundary.cpp
+
13
−
1
View file @
247d4b8e
...
@@ -20,10 +20,22 @@ getMeshFlatFaceBoundary(const Mesh<Connectivity<Dimension>>& mesh, const IBounda
...
@@ -20,10 +20,22 @@ getMeshFlatFaceBoundary(const Mesh<Connectivity<Dimension>>& mesh, const IBounda
}
}
std
::
ostringstream
ost
;
std
::
ostringstream
ost
;
ost
<<
"cannot find surface with name "
<<
rang
::
fgB
::
red
<<
boundary_descriptor
<<
rang
::
style
::
reset
;
ost
<<
"cannot find face list with name "
<<
rang
::
fgB
::
red
<<
boundary_descriptor
<<
rang
::
style
::
reset
<<
'\n'
;
ost
<<
"The mesh contains "
<<
mesh
.
connectivity
().
template
numberOfRefItemList
<
ItemType
::
face
>()
<<
" referenced face lists: "
;
for
(
size_t
i_ref_face_list
=
0
;
i_ref_face_list
<
mesh
.
connectivity
().
template
numberOfRefItemList
<
ItemType
::
face
>();
++
i_ref_face_list
)
{
const
auto
&
ref_face_list
=
mesh
.
connectivity
().
template
refItemList
<
ItemType
::
face
>(
i_ref_face_list
);
const
RefId
&
ref
=
ref_face_list
.
refId
();
if
(
i_ref_face_list
>
0
)
{
ost
<<
", "
;
}
ost
<<
rang
::
fgB
::
yellow
<<
ref
<<
rang
::
style
::
reset
;
}
throw
NormalError
(
ost
.
str
());
throw
NormalError
(
ost
.
str
());
}
}
template
MeshFlatFaceBoundary
<
1
>
getMeshFlatFaceBoundary
(
const
Mesh
<
Connectivity
<
1
>>&
,
const
IBoundaryDescriptor
&
);
template
MeshFlatFaceBoundary
<
2
>
getMeshFlatFaceBoundary
(
const
Mesh
<
Connectivity
<
2
>>&
,
const
IBoundaryDescriptor
&
);
template
MeshFlatFaceBoundary
<
2
>
getMeshFlatFaceBoundary
(
const
Mesh
<
Connectivity
<
2
>>&
,
const
IBoundaryDescriptor
&
);
template
MeshFlatFaceBoundary
<
3
>
getMeshFlatFaceBoundary
(
const
Mesh
<
Connectivity
<
3
>>&
,
const
IBoundaryDescriptor
&
);
template
MeshFlatFaceBoundary
<
3
>
getMeshFlatFaceBoundary
(
const
Mesh
<
Connectivity
<
3
>>&
,
const
IBoundaryDescriptor
&
);
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