Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
amdis
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
Container Registry
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
iwr
amdis
Commits
ed89165b
Commit
ed89165b
authored
9 years ago
by
Reuther, Sebastian
Browse files
Options
Downloads
Patches
Plain Diff
adapted constant normal extension algorithm of reinit for parallel use
parent
b227d4cf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
AMDiS/src/reinit/HL_SignedDistTraverse.cc
+12
-3
12 additions, 3 deletions
AMDiS/src/reinit/HL_SignedDistTraverse.cc
AMDiS/src/reinit/VelocityExt.h
+12
-0
12 additions, 0 deletions
AMDiS/src/reinit/VelocityExt.h
with
24 additions
and
3 deletions
AMDiS/src/reinit/HL_SignedDistTraverse.cc
+
12
−
3
View file @
ed89165b
...
@@ -112,7 +112,10 @@ void HL_SignedDistTraverse::initializeBoundary()
...
@@ -112,7 +112,10 @@ void HL_SignedDistTraverse::initializeBoundary()
#ifdef HAVE_PARALLEL_DOMAIN_AMDIS
#ifdef HAVE_PARALLEL_DOMAIN_AMDIS
// In parallel AMDiS synchronize the bound_DOF DOFVector with the max-assigner and the sD_DOF DOFVector with the min-assigner
// In parallel AMDiS synchronize the bound_DOF DOFVector with the max-assigner and the sD_DOF DOFVector with the min-assigner
AMDiS
::
Parallel
::
MeshDistributor
::
globalMeshDistributor
->
synchVector
(
*
bound_DOF
,
max_assigner
());
if
(
velExt
)
AMDiS
::
Parallel
::
MeshDistributor
::
globalMeshDistributor
->
synchVectorSameWay
(
*
bound_DOF
,
velExt
->
getAllDOFVectorsForSynchronization
(),
max_assigner
());
else
AMDiS
::
Parallel
::
MeshDistributor
::
globalMeshDistributor
->
synchVector
(
*
bound_DOF
,
max_assigner
());
AMDiS
::
Parallel
::
MeshDistributor
::
globalMeshDistributor
->
synchVector
(
*
sD_DOF
,
min_to_zero_assigner
());
AMDiS
::
Parallel
::
MeshDistributor
::
globalMeshDistributor
->
synchVector
(
*
sD_DOF
,
min_to_zero_assigner
());
#endif
#endif
}
}
...
@@ -131,7 +134,10 @@ void HL_SignedDistTraverse::HL_updateIteration()
...
@@ -131,7 +134,10 @@ void HL_SignedDistTraverse::HL_updateIteration()
#ifdef HAVE_PARALLEL_DOMAIN_AMDIS
#ifdef HAVE_PARALLEL_DOMAIN_AMDIS
// Update sDOld_DOF on interior domain boundaries
// Update sDOld_DOF on interior domain boundaries
AMDiS
::
Parallel
::
MeshDistributor
::
globalMeshDistributor
->
synchVector
(
*
sDOld_DOF
,
min_to_zero_assigner
());
if
(
velExt
)
AMDiS
::
Parallel
::
MeshDistributor
::
globalMeshDistributor
->
synchVectorSameWay
(
*
sDOld_DOF
,
velExt
->
getAllDOFVectorsForSynchronization
(),
min_to_zero_assigner
());
else
AMDiS
::
Parallel
::
MeshDistributor
::
globalMeshDistributor
->
synchVector
(
*
sDOld_DOF
,
min_to_zero_assigner
());
#endif
#endif
// ===== Gauss-Seidel or Jacobi iteration ? =====
// ===== Gauss-Seidel or Jacobi iteration ? =====
...
@@ -160,7 +166,10 @@ void HL_SignedDistTraverse::HL_updateIteration()
...
@@ -160,7 +166,10 @@ void HL_SignedDistTraverse::HL_updateIteration()
#ifdef HAVE_PARALLEL_DOMAIN_AMDIS
#ifdef HAVE_PARALLEL_DOMAIN_AMDIS
// Update sD_DOF on interior domain boundaries
// Update sD_DOF on interior domain boundaries
AMDiS
::
Parallel
::
MeshDistributor
::
globalMeshDistributor
->
synchVector
(
*
sD_DOF
,
min_to_zero_assigner
());
if
(
velExt
)
AMDiS
::
Parallel
::
MeshDistributor
::
globalMeshDistributor
->
synchVectorSameWay
(
*
sD_DOF
,
velExt
->
getAllDOFVectorsForSynchronization
(),
min_to_zero_assigner
());
else
AMDiS
::
Parallel
::
MeshDistributor
::
globalMeshDistributor
->
synchVector
(
*
sD_DOF
,
min_to_zero_assigner
());
#endif
#endif
// ===== Is tolerance reached ? =====
// ===== Is tolerance reached ? =====
...
...
This diff is collapsed.
Click to expand it.
AMDiS/src/reinit/VelocityExt.h
+
12
−
0
View file @
ed89165b
...
@@ -230,6 +230,18 @@ public:
...
@@ -230,6 +230,18 @@ public:
/// Swaps two vertices in the permutation.
/// Swaps two vertices in the permutation.
void
swapVertices
(
int
i1
,
int
i2
);
void
swapVertices
(
int
i1
,
int
i2
);
#ifdef HAVE_PARALLEL_DOMAIN_AMDIS
std
::
vector
<
DOFVector
<
double
>
*>
getAllDOFVectorsForSynchronization
()
{
std
::
vector
<
DOFVector
<
double
>
*>
ret
;
ret
.
reserve
(
velDOF
.
size
()
+
origVelDOF
.
size
());
for
(
std
::
vector
<
DOFVector
<
double
>*>::
iterator
it
=
velDOF
.
begin
()
;
it
!=
velDOF
.
end
()
;
++
it
)
ret
.
push_back
(
*
it
);
for
(
std
::
vector
<
DOFVector
<
double
>*>::
iterator
it
=
origVelDOF
.
begin
()
;
it
!=
origVelDOF
.
end
()
;
++
it
)
ret
.
push_back
(
*
it
);
return
ret
;
}
#endif
protected
:
protected
:
/// Original velocity vector.
/// Original velocity vector.
...
...
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