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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Commits
682e69c4
Commit
682e69c4
authored
3 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Simplify `else if`statement
parent
ad469fb3
No related branches found
No related tags found
1 merge request
!98
Reorganize MeshNodeBoundary: objects can no longer be built manually
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mesh/MeshData.hpp
+53
-55
53 additions, 55 deletions
src/mesh/MeshData.hpp
with
53 additions
and
55 deletions
src/mesh/MeshData.hpp
+
53
−
55
View file @
682e69c4
...
...
@@ -199,8 +199,7 @@ class MeshData : public IMeshData
const
CellValue
<
const
Rd
>
cell_iso_barycenter
=
this
->
cellIsoBarycenter
();
if
constexpr
(
Dimension
==
1
)
{
m_cell_centroid
=
cell_iso_barycenter
;
}
else
{
if
constexpr
(
Dimension
==
2
)
{
}
else
if
constexpr
(
Dimension
==
2
)
{
const
CellValue
<
const
double
>
Vj
=
this
->
Vj
();
const
NodeValue
<
const
Rd
>&
xr
=
m_mesh
.
xr
();
const
auto
&
cell_to_node_matrix
=
m_mesh
.
connectivity
().
cellToNodeMatrix
();
...
...
@@ -279,7 +278,6 @@ class MeshData : public IMeshData
m_cell_centroid
=
cell_centroid
;
}
}
}
PUGS_INLINE
void
...
...
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