68 |
|
void RestReader::scanFile(){ |
69 |
|
|
70 |
|
std::streampos prevPos; |
71 |
< |
std::streampos currPos; |
71 |
> |
std::streampos currPos; |
72 |
|
|
73 |
|
#ifdef IS_MPI |
74 |
|
|
88 |
|
currPos = inFile_->tellg(); |
89 |
|
if (line.find("<Snapshot>")!= std::string::npos) { |
90 |
|
foundOpenSnapshotTag = true; |
91 |
< |
framePos_ = prevPos; |
91 |
> |
framePos_ = (long long) prevPos; |
92 |
|
} |
93 |
|
prevPos = currPos; |
94 |
|
} |
95 |
|
|
96 |
|
#ifdef IS_MPI |
97 |
|
} |
98 |
< |
MPI_Bcast(&framePos_, 1, MPI_INT, 0, MPI_COMM_WORLD); |
98 |
> |
MPI_Bcast(&framePos_, 1, MPI_LONG_LONG, 0, MPI_COMM_WORLD); |
99 |
|
#endif // is_mpi |
100 |
|
} |
101 |
|
|