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
3700caf9
Commit
3700caf9
authored
Jan 15, 2019
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Add face numbering
The approach is very simple. It is incorrect in parallel.
parent
aabce223
No related branches found
No related tags found
1 merge request
!11
Feature/mpi
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/mesh/Connectivity.cpp
+11
-2
11 additions, 2 deletions
src/mesh/Connectivity.cpp
src/mesh/Connectivity.hpp
+1
-0
1 addition, 0 deletions
src/mesh/Connectivity.hpp
with
12 additions
and
2 deletions
src/mesh/Connectivity.cpp
+
11
−
2
View file @
3700caf9
...
@@ -142,14 +142,13 @@ void Connectivity<3>::_computeCellFaceAndFaceNodeConnectivities()
...
@@ -142,14 +142,13 @@ void Connectivity<3>::_computeCellFaceAndFaceNodeConnectivities()
}
}
{
{
int
l
=
0
;
FaceId
l
=
0
;
for
(
const
auto
&
face_cells_vector
:
face_cells_map
)
{
for
(
const
auto
&
face_cells_vector
:
face_cells_map
)
{
const
Face
&
face
=
face_cells_vector
.
first
;
const
Face
&
face
=
face_cells_vector
.
first
;
m_face_number_map
[
face
]
=
l
;
m_face_number_map
[
face
]
=
l
;
++
l
;
++
l
;
}
}
}
}
#warning check that the number of cell per faces is <=2
#warning check that the number of cell per faces is <=2
}
}
...
@@ -279,6 +278,16 @@ Connectivity(const ConnectivityDescriptor& descriptor)
...
@@ -279,6 +278,16 @@ Connectivity(const ConnectivityDescriptor& descriptor)
if
constexpr
(
Dimension
>
1
)
{
if
constexpr
(
Dimension
>
1
)
{
this
->
_computeCellFaceAndFaceNodeConnectivities
();
this
->
_computeCellFaceAndFaceNodeConnectivities
();
{
#warning incorrect in parallel
FaceValue
<
int
>
face_number
(
*
this
);
parallel_for
(
face_number
.
size
(),
PASTIS_LAMBDA
(
const
FaceId
&
l
)
{
face_number
[
l
]
=
l
;
});
m_face_number
=
face_number
;
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
src/mesh/Connectivity.hpp
+
1
−
0
View file @
3700caf9
...
@@ -695,6 +695,7 @@ class Connectivity final
...
@@ -695,6 +695,7 @@ class Connectivity final
return
m_inv_cell_nb_nodes
;
return
m_inv_cell_nb_nodes
;
}
}
#warning remove this member
unsigned
int
getFaceNumber
(
const
std
::
vector
<
unsigned
int
>&
face_nodes
)
const
unsigned
int
getFaceNumber
(
const
std
::
vector
<
unsigned
int
>&
face_nodes
)
const
{
{
const
Face
face
(
face_nodes
);
const
Face
face
(
face_nodes
);
...
...
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