Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Core Modules
dune-common
Commits
e7b592a2
Commit
e7b592a2
authored
7 years ago
by
Ansgar Burchardt
Browse files
Options
Downloads
Patches
Plain Diff
convert to use `Dune::TestSuite`
parent
0f97d2b0
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!261
CollectiveCommunication: use `const` references or pointers where possible
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/common/test/mpicollectivecommunication.cc
+6
-3
6 additions, 3 deletions
dune/common/test/mpicollectivecommunication.cc
with
6 additions
and
3 deletions
dune/common/test/mpicollectivecommunication.cc
+
6
−
3
View file @
e7b592a2
...
...
@@ -6,10 +6,13 @@
#include
<dune/common/parallel/mpihelper.hh>
#include
<dune/common/parallel/mpicollectivecommunication.hh>
#include
<dune/common/test/testsuite.hh>
#include
<iostream>
int
main
(
int
argc
,
char
**
argv
)
{
Dune
::
TestSuite
t
;
typedef
Dune
::
MPIHelper
Helper
;
Helper
&
mpi
=
Helper
::
instance
(
argc
,
argv
);
...
...
@@ -40,12 +43,12 @@ int main(int argc, char** argv)
#endif
for
(
int
i
=
0
;
i
<
length
;
++
i
)
{
assert
(
std
::
abs
(
values
[
i
]
-
sum
)
<
1e-8
);
assert
(
std
::
abs
(
val
[
i
]
-
sum
)
<
1e-8
);
t
.
check
(
std
::
abs
(
values
[
i
]
-
sum
)
<
1e-8
);
t
.
check
(
std
::
abs
(
val
[
i
]
-
sum
)
<
1e-8
);
}
}
std
::
cout
<<
"We are at the end!"
<<
std
::
endl
;
return
0
;
return
t
.
exit
()
;
}
This diff is collapsed.
Click to expand it.
Carsten Gräser
@carsten.graeser
mentioned in commit
1cfc3a98
·
7 years ago
mentioned in commit
1cfc3a98
mentioned in commit 1cfc3a981970ad177354e963f43a8f0398b934f4
Toggle commit list
Carsten Gräser
@carsten.graeser
mentioned in merge request
!352 (merged)
·
7 years ago
mentioned in merge request
!352 (merged)
mentioned in merge request !352
Toggle commit list
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