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
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Timo Koch
dune-common
Commits
e376e36a
Commit
e376e36a
authored
16 years ago
by
Andreas Dedner
Browse files
Options
Downloads
Patches
Plain Diff
a test version for version macros
[[Imported from SVN: r5276]]
parent
092a5ab8
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
common/mpihelper.hh
+5
-1
5 additions, 1 deletion
common/mpihelper.hh
common/version.hh
+33
-0
33 additions, 0 deletions
common/version.hh
with
38 additions
and
1 deletion
common/mpihelper.hh
+
5
−
1
View file @
e376e36a
...
...
@@ -199,6 +199,10 @@ namespace Dune
*/
int
size
()
const
{
return
size_
;
}
void
barrier
()
const
{
MPI_Barrier
(
getCommunicator
());
}
private
:
int
rank_
;
int
size_
;
...
...
@@ -215,7 +219,7 @@ namespace Dune
assert
(
rank_
>=
0
);
assert
(
size_
>=
1
);
dv
v
erb
<<
"Called MPI_Init on p="
<<
rank_
<<
"!"
<<
std
::
endl
;
dverb
<<
"Called MPI_Init on p="
<<
rank_
<<
"!"
<<
std
::
endl
;
}
//! \brief calls MPI_Finalize
~
MPIHelper
()
...
...
This diff is collapsed.
Click to expand it.
common/version.hh
0 → 100644
+
33
−
0
View file @
e376e36a
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef DUNE_VERSION_HH
#define DUNE_VERSION_HH
#define DUNE_VERSION_JOIN(module,type) DUNE_ ## module ## _VERSION_ ## type
#define DUNE_VERSION_EQUAL(module,major,minor) \
((DUNE_VERSION_JOIN(module,MAJOR) == major) && \
(DUNE_VERSION_JOIN(module,MINOR) == minor))
#define DUNE_VERSION_EQUAL_REV(module,major,minor,revision) \
( DUNE_VERSION_EQUAL(module,major,minor) && \
(DUNE_VERSION_JOIN(module,REVISION) == revision))
#define DUNE_VERSION_NEWER(module,major,minor,revision) \
((DUNE_VERSION_JOIN(module,MAJOR) > major) \
|| ((DUNE_VERSION_JOIN(module,MAJOR) == major) && (DUNE_VERSION_JOIN(module,MINOR) >= minor)))
#define DUNE_VERSION_NEWER_REV(module,major,minor,revision) \
((DUNE_VERSION_JOIN(module,MAJOR) > major) \
|| ((DUNE_VERSION_JOIN(module,MAJOR) == major) && (DUNE_VERSION_JOIN(module,MINOR) > minor)) \
|| ((DUNE_VERSION_JOIN(module,MAJOR) == major) && (DUNE_VERSION_JOIN(module,MINOR) == minor) \
&& (DUNE_VERSION_JOIN(module,REVISION) >= revision)))
#define DUNE_VERSION_ID(module) \
(unsigned int( \
(DUNE_VERSION_JOIN(module,MAJOR) << 24) + \
(DUNE_VERSION_JOIN(module,MINOR) << 16) + \
(DUNE_VERSION_JOIN(module,REVISION)) \
))
#endif
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