Skip to content
Snippets Groups Projects
Commit e376e36a authored by Andreas Dedner's avatar Andreas Dedner
Browse files

a test version for version macros

[[Imported from SVN: r5276]]
parent 092a5ab8
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
dvverb << "Called MPI_Init on p=" << rank_ << "!" << std::endl;
dverb << "Called MPI_Init on p=" << rank_ << "!" << std::endl;
}
//! \brief calls MPI_Finalize
~MPIHelper()
......
// -*- 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment