Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Aland, Sebastian
amdis
Commits
e5844832
Commit
e5844832
authored
Nov 23, 2009
by
Thomas Witkowski
Browse files
New OpenMP parallelization mode.
parent
fa6432f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/ProblemVec.cc
View file @
e5844832
...
...
@@ -620,6 +620,7 @@ namespace AMDiS {
{
FUNCNAME
(
"ProblemVec::buildAfterCoarsen()"
);
// printOpenmpTraverseInfo(this, true);
// buildAfterCoarsen_sebastianMode(adaptInfo, flag);
clock_t
first
=
clock
();
...
...
@@ -1183,7 +1184,7 @@ namespace AMDiS {
const
BasisFunction
*
basisFcts
=
feSpace
->
getBasisFcts
();
#ifdef _OPENMP
TraverseParallelStack
stack
;
TraverseParallelStack
stack
(
0
,
1
)
;
#else
TraverseStack
stack
;
#endif
...
...
AMDiS/src/TraverseParallel.h
View file @
e5844832
...
...
@@ -47,8 +47,13 @@ namespace AMDiS {
if
(
parallelMode
==
0
)
{
return
stacks
[
omp_get_thread_num
()]
->
traverseNext
(
elInfoOld
);
}
else
{
}
ElInfo
*
elInfo
=
stacks
[
omp_get_thread_num
()]
->
traverseNext
(
elInfoOld
);
while
(
elInfo
&&
elInfo
->
getElement
()
->
getIndex
()
%
nThreads
!=
omp_get_thread_num
())
{
elInfo
=
stacks
[
omp_get_thread_num
()]
->
traverseNext
(
elInfo
);
}
return
elInfo
;
}
}
private:
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment