Fixing some compiler warnings

This commit is contained in:
Mark Berrill committed 2016-01-12 14:41:22 -05:00
1 parent aca03a5b29
commit 5d139fe9bc
3 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -91,7 +91,7 @@ std::vector<bubble_struct> create_bubbles( int N_bubbles, double Lx, double Ly,
}
}
size_t N_bytes = N_bubbles*sizeof(bubble_struct);
MPI_Bcast(&bubbles[0],N_bytes,MPI_CHAR,0,comm);
MPI_Bcast((char*)&bubbles[0],N_bytes,MPI_CHAR,0,comm);
return bubbles;
}
@@ -297,7 +297,7 @@ int main(int argc, char **argv)
velocity[i].z = bubbles[i].radius*(2*rand2()-1);
}
}
MPI_Bcast(&velocity[0],bubbles.size()*sizeof(Point),MPI_CHAR,0,comm);
MPI_Bcast((char*)&velocity[0],bubbles.size()*sizeof(Point),MPI_CHAR,0,comm);
fillBubbleData( bubbles, Phase, SignDist, Lx, Ly, Lz, rank_info );
fillData.fill(Phase);
fillData.fill(SignDist);