64 |
|
#include "brains/ForceField.hpp" |
65 |
|
#include "utils/simError.h" |
66 |
|
#include "utils/StringUtils.hpp" |
67 |
+ |
#include "utils/Revision.hpp" |
68 |
|
#include "math/SeqRandNumGen.hpp" |
69 |
|
#include "mdParser/MDLexer.hpp" |
70 |
|
#include "mdParser/MDParser.hpp" |
114 |
|
#ifdef IS_MPI |
115 |
|
//broadcasting the stream size |
116 |
|
streamSize = ppStream.str().size() +1; |
117 |
< |
MPI_Bcast(&streamSize, 1, MPI_LONG, masterNode, MPI_COMM_WORLD); |
117 |
> |
MPI_Bcast(&streamSize, 1, MPI_INT, masterNode, MPI_COMM_WORLD); |
118 |
|
MPI_Bcast(static_cast<void*>(const_cast<char*>(ppStream.str().c_str())), |
119 |
|
streamSize, MPI_CHAR, masterNode, MPI_COMM_WORLD); |
120 |
|
|
128 |
|
// MPI::COMM_WORLD.Bcast(&mdFileVersion, 1, MPI::INT, masterNode); |
129 |
|
|
130 |
|
//get stream size |
131 |
< |
MPI_Bcast(&streamSize, 1, MPI_LONG, masterNode, MPI_COMM_WORLD); |
131 |
> |
MPI_Bcast(&streamSize, 1, MPI_INT, masterNode, MPI_COMM_WORLD); |
132 |
|
// MPI::COMM_WORLD.Bcast(&streamSize, 1, MPI::LONG, masterNode); |
133 |
|
char* buf = new char[streamSize]; |
134 |
|
assert(buf); |
273 |
|
version.append("."); |
274 |
|
version.append(OPENMD_VERSION_MINOR); |
275 |
|
|
276 |
< |
std::string svnrev; |
276 |
> |
std::string svnrev(g_REVISION, strnlen(g_REVISION, 20)); |
277 |
|
//convert a macro from compiler to a string in c++ |
278 |
< |
STR_DEFINE(svnrev, SVN_REV ); |
278 |
> |
// STR_DEFINE(svnrev, SVN_REV ); |
279 |
|
version.append(" Revision: "); |
280 |
|
// If there's no SVN revision, just call this the RELEASE revision. |
281 |
|
if (!svnrev.empty()) { |