Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backofen, Rainer
amdis
Commits
aecce446
Commit
aecce446
authored
Mar 19, 2011
by
Praetorius, Simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corrected some openMP-errors
parent
cd4895db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
AMDiS/src/ProblemVec.cc
AMDiS/src/ProblemVec.cc
+1
-1
AMDiS/src/SystemVector.h
AMDiS/src/SystemVector.h
+2
-2
No files found.
AMDiS/src/ProblemVec.cc
View file @
aecce446
...
...
@@ -811,7 +811,7 @@ namespace AMDiS {
#else
#ifdef _OPENMP
INFO
(
info
,
8
)(
"buildAfterCoarsen needed %.5f seconds
\n
"
,
omp_get_wtime
()
-
wtime
);
omp_get_wtime
()
-
first
);
#else
INFO
(
info
,
8
)(
"buildAfterCoarsen needed %.5f seconds
\n
"
,
TIME_USED
(
first
,
clock
()));
...
...
AMDiS/src/SystemVector.h
View file @
aecce446
...
...
@@ -438,7 +438,7 @@ namespace AMDiS {
TEST_EXIT_DBG
(
size
==
matrix
.
getNumCols
())(
"incompatible sizes
\n
"
);
#ifdef _OPENMP
#pragma omp parallel for schedule(static, 1) num_threads(min(size, omp_get_max_threads()))
#pragma omp parallel for schedule(static, 1) num_threads(
std::
min(size, omp_get_max_threads()))
#endif
for
(
i
=
0
;
i
<
size
;
i
++
)
{
if
(
!
add
)
...
...
@@ -464,7 +464,7 @@ namespace AMDiS {
int
i
;
#ifdef _OPENMP
#pragma omp parallel for schedule(static, 1) num_threads(min(size, omp_get_max_threads()))
#pragma omp parallel for schedule(static, 1) num_threads(
std::
min(size, omp_get_max_threads()))
#endif
for
(
i
=
0
;
i
<
size
;
i
++
)
axpy
(
a
,
*
(
x
.
getDOFVector
(
i
)),
*
(
y
.
getDOFVector
(
i
)));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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