Commit ad573bdc authored by daniele.corallo's avatar daniele.corallo
Browse files

[fixcgcom] fix cg communication

parent f0d7116d
......@@ -136,7 +136,7 @@ void CoarseGeometry::CommunicateGeometry() {
ExchangeBuffer exBuffer;
if (PPM->Master()) {
for (int q = 1; q < PPM->Size(); ++q) {
exBuffer.Send(q) << int(timeSteps.size());
exBuffer.Send(q) << timeSteps.size();
for (double timeStep : timeSteps) {
exBuffer.Send(q) << double(timeStep);
}
......@@ -144,7 +144,7 @@ void CoarseGeometry::CommunicateGeometry() {
}
exBuffer.Communicate();
if (!PPM->Master()) {
int m;
size_t m;
exBuffer.Receive(0) >> m;
timeSteps.resize(m);
for (int i = 0; i < m; i++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment